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
Follow-up to #191 (epic). Phase 1 (#200) added mcp.mode: env (the agent discovers the proxy via BBOX_MCP_URL). This issue adds the second generic mode, mcp.mode: config, so a custom/BYO agent whose harness only reads a config file can be wired to the proxy declaratively — without a per-agent Go MCPInjector.
Scope
Declaratively patch a JSON/JSONC/TOML/YAML config file in the guest home:
Config shape (inject entries: guest_path, format, merge tree) stays pure domain data in pkg/domain/config / pkg/domain/agent.
The generic merge implementation lives in internal/infra — reuse pkg/clients/internal/configio (JSON/TOML/YAML merge) and the JSONC support already in internal/infra/settings.
ValidateCustomAgent currently rejectsmcp.mode: config with "not supported in this version" — flip that to accept + validate the inject entries (safe relative guest_path, known format).
Built-ins keep their bespoke Plugin.MCPConfig(); this is only for data-only agents.
Acceptance criteria
A data-only agent with mcp.mode: config boots with its config file patched to point at the in-VM proxy, with no pkg/clients/ package.
Activity
Add generic mcp.mode:config declarative MCP injection (#202) (#212)