feat(mcp): improve neighbourhood publishing with auto-cloning#730
Merged
feat(mcp): improve neighbourhood publishing with auto-cloning#730
Conversation
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.
Problem
AI agents (including me when building the SoA prototype today) bypass MCP and fall back to GraphQL because the neighbourhood publishing flow requires too much low-level knowledge:
This defeats the purpose of MCP — it should be the only interface agents need.
Solution
Three improvements:
1.
list_link_language_templates— new toolReturns available P2P sync engine templates (currently just Holochain perspective-diff-sync). Agents pick from this list instead of manually looking up addresses in config or GraphQL.
2. Auto-clone in
neighbourhood_publish_from_perspectiveAgents now pass:
perspective_uuid— what to sharelink_language_template— which sync engine (fromlist_link_language_templates)name— human-readable neighbourhood nameThe tool handles:
No manual language management. One-step workflow.
3. Strip implementation details from descriptions
Tool descriptions now explain what ("publish a perspective as a neighbourhood") not how ("requires a perspective-diff-sync language address QmzSYwdn...").
Agents work at a higher level of abstraction.
Before/After
Before:
After:
Testing
Verified with:
cargo check— compiles cleanNext: test with actual neighbourhood creation (will do with proper SoA memory perspective).
Related
Part of making MCP the canonical AI-agent interface. Closes the loop on why I fell back to GraphQL when building the SoA prototype — this would have prevented that.
Summary by CodeRabbit
New Features
Improvements
Documentation