feat(examples): add mcp-server use case and gemini-cli updates#120
Draft
feat(examples): add mcp-server use case and gemini-cli updates#120
Conversation
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>
Contributor
Author
|
Not ready to merge yet:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcp-serveruse case (examples/feature-examples/src/use-cases/mcp-server.ts) targeting the public DeepWiki HTTP MCP server. ACP success is observed via atool_callwhose identifier fields reference the server; Claude success is observed via the per-turnsystem/initpayload listingdeepwikiinmcp_servers.UseCasefields:acpMcpServers— passed straight tonewSession()for ACP agents.extraMountsByAgent— appended to the standardagent_mount/broker_mountpair, withFileMountandObjectMounttypes. Used here to mount~/.gemini/settings.jsoninline because gemini-cli reads MCP config from settings.json at startup and does not honour ACPnewSession.mcpServers.--acp --yolo --skip-trust(upstream renamed--experimental-acp;--skip-trustis required so MCP tools are exposed in untrusted workspaces).compatibility.mdand added the use case tollms.txt.Test plan
bun run checkpassesbun run --filter 'feature-examples' typecheckpassesbun run feature-compat— re-run to confirmcompatibility.mdmatches a fresh runMade with Cursor