You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Hosted MCP servers: url and headers in mcp.yaml #1755
A hosted MCP server such as AgentMail (https://mcp.agentmail.to/mcp, authenticated with an x-api-key header) cannot be configured today. MCPServerEntry in config/mcp.go builds the endpoint from scheme, host, port and path and has no way to send a request header, so there is no place for an API key.
Add two optional fields to a server entry in mcp.yaml:
url replaces the built endpoint when set. headers are sent on every request under the protocol's own headers. ${VAR} expansion already applies to the whole file, so the credential stays in the worker's environment and never in the file. A server whose expanded header is empty is skipped with a warning, so a process without the credential starts without that server instead of failing discovery.
This replaces the per-thread mcp_servers on the resume_conversation frame asked for in #1754: the server is configuration of the computer the agent runs on, not of a client's frame.
Acceptance Criteria
MCPServerEntry accepts url and headers, and GetURL() returns url when set.
The MCP client sends the configured headers on every request. A configured header never overrides Content-Type, Accept or the MCP protocol headers.
The supervisor skips an enabled server with an empty header value and logs which headers were unresolved.
docs/mcp-integration.md documents both fields with a hosted-server example, and internal/protocols/mcp/README.md mentions them.
Tests cover GetURL with url, header injection, and the skip rule.
Activity
inference-gateway-releaser commentedon Nov 8, 2026
🎉 This issue has been resolved in version 0.248.0 🎉
The release is available on:
Your semantic-release bot 📦🚀