Skip to content

feat: add GitHub PR MCP server for remote merge requests#2

Draft
Copilot wants to merge 3 commits intodevfrom
copilot/merge-requests-to-remote
Draft

feat: add GitHub PR MCP server for remote merge requests#2
Copilot wants to merge 3 commits intodevfrom
copilot/merge-requests-to-remote

Conversation

Copy link
Copy Markdown

Copilot AI commented Nov 26, 2025

Adds an MCP server to create pull requests on GitHub repositories directly from DeepChat.

Changes

  • New MCP Server (githubPRServer.ts)

    • github_create_pull_request - Create PRs with title, body, head/base branches
    • github_list_repositories - List authenticated user's repos
    • github_list_branches - List branches for a repo
    • github_get_repository - Get repo details
    • github_list_pull_requests - List PRs for a repo
  • Server Registration (builder.ts)

    • Registered as deepchat-inmemory/github-pr-server
  • i18n - Added zh-CN and en-US translations

Usage

Configure with GitHub personal access token in the server's env.token:

// Example: Creating a PR via the MCP tool
{
  owner: "jasonwang82",
  repo: "deepchat", 
  title: "feat: new feature",
  head: "feature-branch",
  base: "main",
  draft: false
}

Security

  • Uses token auth scheme per GitHub API docs
  • API version pinned to 2022-11-28
  • Error messages sanitized to prevent information disclosure

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.sheetjs.com
    • Triggering command: /usr/local/bin/node node /usr/local/bin/pnpm install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

发起到远端的合并请求


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Nov 26, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI and others added 2 commits November 26, 2025 04:56
Co-authored-by: jasonwang82 <35647809+jasonwang82@users.noreply.github.com>
Co-authored-by: jasonwang82 <35647809+jasonwang82@users.noreply.github.com>
Copilot AI changed the title [WIP] Submit merge request to remote repository feat: add GitHub PR MCP server for remote merge requests Nov 26, 2025
Copilot AI requested a review from jasonwang82 November 26, 2025 05:03
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.

2 participants