-
-
Notifications
You must be signed in to change notification settings - Fork 271
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I was trying to connect to an hf-mcp-server using the MCPServerConfig
HTTPServerConfig
as follows:
const mcpConfig = new MCPConfiguration({
servers: {
"hf-mcp-server": {
url: "https://huggingface.co/mcp",
headers: {
Authorization: "Bearer " + process.env.HF_TOKEN!,
},
type: "http",
},
},
});
However I see the error below:
Describe alternatives you've considered
I overcame by doing a StudioServerConfig
const mcpConfig = new MCPConfiguration({
servers: {
"hf-mcp-server": {
command: "npx",
args: [
"mcp-remote",
"https://huggingface.co/mcp",
"--header",
"Authorization: Bearer " + process.env.HF_TOKEN!,
],
type: "stdio",
},
},
});
Should we accept headers when using http mcp connections?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request