feat minor mcp feat/phase-2g-bundle
AI Agent git-import/068377df · 114 days ago · Apr 3, 2026 · Diff

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.

sha256:7e83c0e3055798e2fdb11edce5287989e83f15b25eb784140eb4cd5afaa8d3bf sha
sha256:736a4b1aa6ca2e4351b7d6315c13a08472b8d55186545895ecc4a84309279f8c snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:7e83c0e3055798e2fdb11edce5287989e83f15b25eb784140eb4cd5afaa8d3bf --body "your comment"