Skip to content

feat(staged): expose base_branch param in add_project_repo MCP tool - #615

Merged
matt2e merged 1 commit into
mainfrom
add-repo-with-base-branch-via-mcp
Apr 14, 2026
Merged

feat(staged): expose base_branch param in add_project_repo MCP tool#615
matt2e merged 1 commit into
mainfrom
add-repo-with-base-branch-via-mcp

Conversation

@matt2e

@matt2e matt2e commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional base_branch parameter to the add_project_repo MCP tool, allowing callers to specify which branch to branch off from (e.g. "main", "develop")
  • When omitted, the repository's default branch is still detected automatically via the GitHub API
  • Passes the new parameter through to the underlying repo-addition logic instead of hardcoding None

Test plan

  • Verify add_project_repo works without base_branch (auto-detection still functions)
  • Verify add_project_repo with explicit base_branch uses the specified branch

🤖 Generated with Claude Code

Allow project session agents to specify which branch to branch off from
when adding a repo, instead of always auto-detecting via the GitHub API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e
matt2e requested review from baxen and wesbillman as code owners April 14, 2026 03:34
@matt2e
matt2e merged commit 9e41188 into main Apr 14, 2026
5 checks passed
@matt2e
matt2e deleted the add-repo-with-base-branch-via-mcp branch April 14, 2026 04:34
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