Skip to content

feat(examples): add mcp-server use case and gemini-cli updates#120

Draft
james-rl wants to merge 4 commits intomainfrom
james/mcp-server-example
Draft

feat(examples): add mcp-server use case and gemini-cli updates#120
james-rl wants to merge 4 commits intomainfrom
james/mcp-server-example

Conversation

@james-rl
Copy link
Copy Markdown
Contributor

@james-rl james-rl commented May 6, 2026

Summary

  • New mcp-server use case (examples/feature-examples/src/use-cases/mcp-server.ts) targeting the public DeepWiki HTTP MCP server. ACP success is observed via a tool_call whose identifier fields reference the server; Claude success is observed via the per-turn system/init payload listing deepwiki in mcp_servers.
  • Scaffold support for two new UseCase fields:
    • acpMcpServers — passed straight to newSession() for ACP agents.
    • extraMountsByAgent — appended to the standard agent_mount / broker_mount pair, with FileMount and ObjectMount types. Used here to mount ~/.gemini/settings.json inline because gemini-cli reads MCP config from settings.json at startup and does not honour ACP newSession.mcpServers.
  • gemini-cli launch args updated to --acp --yolo --skip-trust (upstream renamed --experimental-acp; --skip-trust is required so MCP tools are exposed in untrusted workspaces).
  • Regenerated compatibility.md and added the use case to llms.txt.

Test plan

  • bun run check passes
  • bun run --filter 'feature-examples' typecheck passes
  • (optional) bun run feature-compat — re-run to confirm compatibility.md matches a fresh run

Made with Cursor

james-rl and others added 4 commits May 6, 2026 15:47
Adds a runnable `mcp-server` recipe that attaches the public DeepWiki HTTP
MCP server to a session and verifies the agent can see/use it on both ACP
and Claude paths. Adds the scaffold plumbing required to support it and
brings the gemini-cli launch flags up to date.

- New `mcp-server` use case targeting DeepWiki HTTP MCP. ACP success is
  observed via a `tool_call` whose identifier fields reference the server;
  Claude success is observed via the per-turn `system/init` payload listing
  `deepwiki` in `mcp_servers`.
- Scaffold support for two new `UseCase` fields:
  - `acpMcpServers` — passed to `newSession` for ACP agents.
  - `extraMountsByAgent` — appended to the standard
    `agent_mount` / `broker_mount` pair, with `FileMount` and `ObjectMount`
    types. Used to mount `~/.gemini/settings.json` inline because gemini-cli
    reads MCP config from settings.json at startup and does not honour ACP
    `newSession.mcpServers`.
- gemini-cli launch args updated to `--acp --yolo --skip-trust` to match
  upstream's flag rename and so MCP tools are exposed in untrusted
  workspaces.
- Regenerated `compatibility.md` and registered the new use case in
  `llms.txt`.

Co-authored-by: Cursor <cursoragent@cursor.com>
@james-rl james-rl marked this pull request as draft May 7, 2026 01:10
@james-rl
Copy link
Copy Markdown
Contributor Author

james-rl commented May 7, 2026

Not ready to merge yet:

  • We need to fix the gemini account issue so the compat matrix is more accurate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant