Make Cloud MCP actually expose search_docs - #15
Merged
Merged
Conversation
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>
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
search_docsis still missing on Cloud because live tool discovery never starts. Cloud stdio is spawned from the workspace root (/agent), which is root-owned, sopython3 -u .cursor/mcp-diffusers-docs.pycannot open the script. Hub HTTP MCP is the wrong server (OAuth).This change:
diffusers-docs-mcp(Cloud dropdown command)/agent/repos/*andramp-kit/resources/templates/listcalls cannot fail the handshakediffusers-docsonly (no Hub HTTP)startre-runs the installer so snapshot-booted pods still get the shimThis running agent cannot reconnect MCP. A new Cloud Agent with dropdown
diffusers-docs-mcp(not Hub HTTP) getssearch_docs.Convention gate
Launcher / overlay MCP / handshake tests. No scheduler files.
Tests run
python3 tools/docs_mcp_server.py --selftestpython3 -m unittest tests.test_tooling.TestMcpLauncher tests.test_tooling.TestOverlayMcpDefaults tests.test_tooling.TestAttachEmptyMcp -vmake doctorandmake test(54 passed, 8 skipped)Cloud dropdown
Do not enable
https://huggingface.co/mcp.