feat(mcp): expose Jerry tools as MCP server (Phase 2 Slice 3) - #7
Merged
Conversation
Add stdio CLI proxy and worker /v1/mcp endpoint so Cursor and other MCP clients can call summarize_activity, search_memory, and schedule_followup. Co-authored-by: Cursor <cursoragent@cursor.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
summarize_activity,search_memory, andschedule_followupas an MCP server for external clients (Cursor, Claude Desktop, other agents).jerry mcp/jerry-mcpproxies MCP over stdin/stdout to the worker's/v1/mcpendpoint (worker owns DB and vector index).POST /v1/mcpvia sharedcreateJerryMcpServerin@mieweb/jerry-tools/mcp.docs/mcp-server.md), README quick start, and manual §18 acceptance walkthrough.Test plan
pnpm typecheckpnpm --filter @mieweb/jerry-tools test -- server.testpnpm --filter @mieweb/jerry-app test -- mcp-handlerpnpm dev), configure Cursor MCP withjerry-mcp, invokesummarize_activitycurl -X POST http://localhost:8787/v1/mcpwithtools/listandtools/callNotes
schedule_followupreturns a clear error over hosted/v1/mcp(no Durable Object session); works in normal Jerry agent sessions.Made with Cursor