Skip to content

feat: MCP server support — load from Cursor config, pass to Agent SDK#7

Merged
dimakis merged 1 commit into
mainfrom
feat/mcp-servers
Apr 1, 2026
Merged

feat: MCP server support — load from Cursor config, pass to Agent SDK#7
dimakis merged 1 commit into
mainfrom
feat/mcp-servers

Conversation

@dimakis
Copy link
Copy Markdown
Owner

@dimakis dimakis commented Apr 1, 2026

Summary

  • Reads MCP server configs from ~/.cursor/mcp.json (existing Cursor config)
  • Optionally reads from MCP_CONFIG_PATH env var for Mitzo-specific overrides
  • Converts Cursor-format stdio entries to Agent SDK mcpServers option
  • Passes them into query() — Claude sessions get all configured MCP tools (Jira, GitLab, etc.)
  • GET /api/config now includes mcpServers array (names only, no secrets)
  • Disabled servers and non-stdio types are excluded

How it works

On server startup, loadMcpServers() reads ~/.cursor/mcp.json:

{
  "mcpServers": {
    "atlassian": {
      "command": "/Users/dsaridak/.local/bin/uvx",
      "args": ["mcp-atlassian", "--jira-url", "https://redhat.atlassian.net", ...]
    }
  }
}

This gets passed to the Agent SDK as:

query({ options: { mcpServers: { atlassian: { command: "...", args: [...] } } } })

Claude in Mitzo sessions can now use jira_search, jira_get_issue, jira_create_issue, etc.

Test plan

  • 81 tests passing (11 new for mcp-config)
  • tsc --noEmit clean
  • ESLint --quiet clean
  • Manual: start a Mitzo chat, ask Claude to search Jira — should use MCP tools

Made with Cursor

Reads MCP server configurations from ~/.cursor/mcp.json (and optionally
MCP_CONFIG_PATH env var). Converts Cursor-format stdio server entries to
Agent SDK mcpServers config and passes them into query() options. Claude
sessions in Mitzo now have access to all configured MCP tools (Jira, etc.)
without any additional setup.

- server/mcp-config.ts: loadMcpServers, loadFromFile, getMcpConfigPaths
- Disabled servers and non-stdio types are excluded
- GET /api/config now includes mcpServers list (names only, no secrets)
- 11 new tests for config loading and edge cases (81 total)

Made-with: Cursor
@dimakis dimakis merged commit 5f9b2fd into main Apr 1, 2026
1 check passed
@dimakis dimakis deleted the feat/mcp-servers branch April 1, 2026 07:15
dimakis added a commit that referenced this pull request Apr 10, 2026
- Add script existence check before exec (was #1 critical)
- Add Zod CalendarResponse schema for stdout validation (#2)
- Check r.ok before parsing fetch response in hook (#3)
- Compute today fresh in handleToday to avoid stale date (#6)
- Extract EventCard + SprintBar to separate component files (#7)
- Extract calendar CSS to dedicated calendar.css (#8)
- Add tests: Day/Week toggle, Today button, EventCard expand,
  milestone expand, non-ok HTTP response handling (#4, #5)

832 tests passing (5 new).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dimakis added a commit that referenced this pull request Apr 10, 2026
- Add script existence check before exec (was #1 critical)
- Add Zod CalendarResponse schema for stdout validation (#2)
- Check r.ok before parsing fetch response in hook (#3)
- Compute today fresh in handleToday to avoid stale date (#6)
- Extract EventCard + SprintBar to separate component files (#7)
- Extract calendar CSS to dedicated calendar.css (#8)
- Add tests: Day/Week toggle, Today button, EventCard expand,
  milestone expand, non-ok HTTP response handling (#4, #5)

832 tests passing (5 new).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dimakis added a commit that referenced this pull request Apr 10, 2026
…sprints (#164)

* feat(calendar): add calendar view with meetings, milestones, and sprints

Unified calendar page that merges Google Calendar events, release
milestones, and sprint boundaries via the mgmt calendar_api.py backend.
Mobile-first day/week view with responsive desktop grid layout.

- GET /api/calendar endpoint shells out to calendar_api.py
- useCalendarData hook with date navigation
- CalendarView page with EventCard expand/collapse
- Sprint bars, milestone badges, attendee chips
- Day/Week toggle, prev/next/today navigation
- 17 tests (5 server + 5 hook + 7 page)
- Quick action added to .mitzo.json
- Route at /calendar behind ProtectedRoute

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(calendar): address all Centaur review findings

- Add script existence check before exec (was #1 critical)
- Add Zod CalendarResponse schema for stdout validation (#2)
- Check r.ok before parsing fetch response in hook (#3)
- Compute today fresh in handleToday to avoid stale date (#6)
- Extract EventCard + SprintBar to separate component files (#7)
- Extract calendar CSS to dedicated calendar.css (#8)
- Add tests: Day/Week toggle, Today button, EventCard expand,
  milestone expand, non-ok HTTP response handling (#4, #5)

832 tests passing (5 new).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(calendar): resolve lint errors and review findings

- Remove unused imports (beforeEach, writeFileSync, result)
- Fix toLocalDate to use local timezone instead of UTC
- Remove dead 'sprint' variant from CalendarEvent.type union

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* style: format global.css with prettier

Also add .claude/worktrees/ to .prettierignore to prevent
worktree artifacts from failing format checks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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