feat(mcp): complete MCP supercharge D2/D3 + F2-F5
Sampling infrastructure (F2-F5): - Extract generic trySampling()/trySamplingJson() helpers into mcp/sampling.mjs - F2: enrich tool (auto-tag, categorize, title via sampling with server LLM fallback) - F3: opt-in index enrichment (per-note ai_summary via sampling, --enrich flag) - F4: search reranking via sampling (post-search LLM rerank for better relevance) - F5: prompt prefill (sampling-based assistant draft on search-and-synthesize, project-summary, knowledge-gap prompts) - Refactor summarize tool to use shared sampling helper
Hub MCP gateway (D2): - Session pool with JWT auth, per-user rate limiting (60 req/min), 30-min TTL - Hosted McpServer variant backed by canister (notes CRUD) and bridge (search/index) - Role-based tool ACL (viewer: read-only, editor: +write, admin: +index/export) - Netlify guard: /mcp returns 503 on serverless (requires persistent server)
OAuth 2.1 for MCP (D3): - KnowtationOAuthProvider implementing MCP SDK OAuthServerProvider interface - Dynamic client registration, PKCE authorization via Hub OAuth flow - MCP-scoped JWT access tokens with vault:read/write/admin scopes - Auth callbacks extended for MCP state passthrough (mcp: prefix in OAuth state)
70 tests across 7 test files, all passing.
0 comments
muse hub commit comment sha256:7e83c0e3055798e2fdb11edce5287989e83f15b25eb784140eb4cd5afaa8d3bf --body "your comment"
No comments yet. Be the first to start the discussion.