Sessions get the MCP servers the city configures #5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mcp-servers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Based on #4 (
feat/claude-otel), itself based on #3; neither is merged. Retarget to main as they merge.New
[[mcp_servers]]list:name(unique),transport(httporsse),url, optionalagents(limit to those agents; default all), and[[mcp_servers.headers]]entries withnameand exactly one offile(path in the pod) orenv(variable of the host's environment); there is no inline value key. The Job puts the agent's servers inAKEPHALOS_MCP_SERVERS(paths and variable names only). The host reads the values and adds the servers to ACPsession/new,session/resumeandsession/load; claudeacp turns them into Claude's--mcp-config. A transport the agent does not offer is skipped with a log line. A header with an unreadable file or empty value ends the host before the agent starts, naming server and header.The city must provide:
[[mcp_servers]]in akephalos.toml; for a secret header, a Secret mounted through[kube].secretsor[agents.<name>].secrets(mount_pathis the header'sfile, or the Secret'senvnames the variable the header'senvreads). Note: claudeacp passes the resolved header values to Claude on its command line inside the pod.Tests: a session with one HTTP server has it in Claude's
--mcp-configwith the header read from a file; a resumed session too; none configured means no--mcp-config; failing header; Job env per agent; config validation (inline values are rejected as unknown keys).fa83289decd6100fe93bdd4ef1e73d3de26059e33de26059e3ea63b8cb09