Skip to content

feat: add MCP server with ccpr_list tool#56

Merged
hidetzu merged 1 commit into
mainfrom
feat/mcp-list
May 4, 2026
Merged

feat: add MCP server with ccpr_list tool#56
hidetzu merged 1 commit into
mainfrom
feat/mcp-list

Conversation

@hidetzu
Copy link
Copy Markdown
Owner

@hidetzu hidetzu commented May 4, 2026

Summary

  • Add a new ccpr-mcp binary under cmd/ccpr-mcp/ that exposes ccpr list as an MCP tool named ccpr_list over stdio.
  • Extract the list use case into internal/app so the CLI and MCP paths share validation, config/profile/region resolution, and the PR summary output schema.
  • Update docs/use-cases.md (UC-11), docs/requirements.md (FR-18), docs/spec.md, docs/json-schema.md, and the READMEs to document the MCP server and the shared list use case.

Type of change

  • Bug fix (fix:)
  • New feature (feat:)
  • Breaking change
  • Documentation (docs:)
  • Refactor / chore (refactor: / chore:)
  • Test (test:)

(Primary type: feat:. Documentation updates are part of the spec-driven flow.)

Test plan

  • make build / make build-mcp / make test / make vet / make lint all pass
  • All command examples and flag names match current implementation
  • Smoke test ccpr-mcp end-to-end via Claude Code MCP registration

Spec-driven checklist

  • docs/use-cases.md, docs/requirements.md, docs/spec.md updated before code
  • No breaking changes to JSON output (see docs/versioning.md); the CLI list path now reuses app.ListPullRequest (same field names and date format), and the MCP tool returns the same schema

Related issues

Closes #55

Expose a new ccpr-mcp binary that surfaces ccpr list as the
ccpr_list MCP tool. Share the list use case via internal/app so the
CLI and MCP paths stay in sync, preserving the existing JSON output
schema.
@hidetzu hidetzu merged commit 4de120b into main May 4, 2026
3 checks passed
@hidetzu hidetzu deleted the feat/mcp-list branch May 4, 2026 06:01
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.

[Feature] Add MCP server exposing ccpr list as a tool

1 participant