Skip to content

Conversation

@stevenle
Copy link
Member

This PR adds support for the Model Context Protocol (MCP) server to root dev.

Changes:

  • Dependencies: Added @modelcontextprotocol/sdk and zod to packages/root.
  • CLI: Added --mcp flag to root dev command.
  • Server: Implemented createMcpServer in packages/root/src/mcp/server.ts which initializes an McpServer instance.
  • Transport: Integrated SSEServerTransport in packages/root/src/cli/dev.ts to handle MCP requests over SSE at /mcp/sse and /mcp/messages.
  • Plugin API: Extended Plugin interface with configureMcp hook to allow plugins to register tools.
  • Root CMS: Implemented configureMcp in root-cms to register root_cms_read_document, root_cms_write_document, and root_cms_list_documents tools for interacting with CMS content.

Usage:
Run root dev --mcp to start the dev server with MCP support enabled. The MCP SSE endpoint will be available at http://localhost:4007/mcp/sse.


PR created automatically by Jules for task 1070427085167001170 started by @stevenle

- Adds `@modelcontextprotocol/sdk` and `zod` dependencies.
- Implements `McpServer` integration in `root dev` via SSE transport.
- Adds `--mcp` flag to `root dev`.
- Adds `configureMcp` hook to `Plugin` interface.
- Registers `root_cms_read_document`, `root_cms_write_document`, and `root_cms_list_documents` tools in `root-cms` plugin.

Co-authored-by: stevenle <387282+stevenle@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@stevenle stevenle closed this Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant