Skip to content

Make Cloud MCP actually expose search_docs - #15

Merged
alex-16moro merged 1 commit into
mainfrom
cursor/mcp-search-docs-available-3eed
Sep 20, 2026
Merged

alex-16moro merged 1 commit into
mainfrom
cursor/mcp-search-docs-available-3eed

Conversation

@alex-16moro

Copy link
Copy Markdown
Owner

Summary

search_docs is still missing on Cloud because live tool discovery never starts. Cloud stdio is spawned from the workspace root (/agent), which is root-owned, so python3 -u .cursor/mcp-diffusers-docs.py cannot open the script. Hub HTTP MCP is the wrong server (OAuth).

This change:

  • PATH shim diffusers-docs-mcp (Cloud dropdown command)
  • Launcher also searches /agent/repos/* and ramp-kit/
  • Advertise tools only so extra resources/templates/list calls cannot fail the handshake
  • Overlay default is stdio diffusers-docs only (no Hub HTTP)
  • start re-runs the installer so snapshot-booted pods still get the shim

This running agent cannot reconnect MCP. A new Cloud Agent with dropdown diffusers-docs-mcp (not Hub HTTP) gets search_docs.

Convention gate

Launcher / overlay MCP / handshake tests. No scheduler files.

Tests run

  • python3 tools/docs_mcp_server.py --selftest
  • python3 -m unittest tests.test_tooling.TestMcpLauncher tests.test_tooling.TestOverlayMcpDefaults tests.test_tooling.TestAttachEmptyMcp -v
  • make doctor and make test (54 passed, 8 skipped)

Cloud dropdown

diffusers-docs-mcp

Do not enable https://huggingface.co/mcp.

Open in Web Open in Cursor 

Cloud spawns MCP from /agent, not the git repo, so
`python3 -u .cursor/mcp-diffusers-docs.py` never starts. Advertise tools
only, install a PATH shim (`diffusers-docs-mcp`), and ship overlay
stdio diffusers-docs (no Hub HTTP).

Co-authored-by: ale93.moro <ale93.moro@gmail.com>
@alex-16moro
alex-16moro marked this pull request as ready for review September 20, 2026 11:12
@alex-16moro
alex-16moro merged commit 7bb180a into main Sep 20, 2026
1 check failed
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.

2 participants