Documentation
¶
Overview ¶
Package mcpserver offers the agent tools of package agenttools as an MCP server, over stdio for the efc CLI and over stateless Streamable HTTP at /mcp of the cloud server.
Index ¶
Constants ¶
const Path = "/mcp"
Path is where the cloud server serves remote MCP.
const ServerName = "efc"
ServerName is the name the MCP server reports to clients.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandler ¶
NewHTTPHandler serves remote MCP over stateless Streamable HTTP. Every request must carry "Authorization: Bearer <EFC API token>". Cookies are never read, so a browser on another site cannot act with the session of a signed in user. Tool calls go in process to rpcHandler, the CloudService handler with its auth interceptor, so the token is checked exactly like on a direct API call.
Types ¶
This section is empty.