Skip to content

feat: MCP server — AI agents call parsec as a tool #241

@erishforG

Description

@erishforG

Vision (v1.0: AI agent Git interface)

AI agents (Claude Code, Cursor, VS Code Copilot) call parsec directly as an MCP tool to autonomously perform ticket→PR→merge workflows.

Proposal

Run parsec as an MCP (Model Context Protocol) server:

parsec mcp serve    # start MCP server

Exposed tools

Tool Description
`parsec_start` Create worktree from ticket
`parsec_list` List active worktrees
`parsec_ship` Push + PR + cleanup
`parsec_ci` Check CI status
`parsec_merge` Merge PR
`parsec_conflicts` Cross-worktree conflict detection
`parsec_board` Sprint board query
`parsec_status` Workspace status

Leverages existing strengths

  • `--json` output already structured — reuse as MCP responses
  • Error codes (E001-E013) let agents precisely identify failures
  • `doctor --ai` rules embedded in MCP server description

Reference

GitButler: `but mcp` — exposes `gitbutler_update_branches` tool

Milestone

v1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions