Skip to content

Verify and build PR Agent MCP server for installation readiness#21

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/install-pr-agent-mcp-server
Closed

Verify and build PR Agent MCP server for installation readiness#21
Copilot wants to merge 2 commits into
mainfrom
copilot/install-pr-agent-mcp-server

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 12, 2026

The PR Agent MCP server implementation exists but was unbuilt. This PR validates installation readiness by building the project and verifying MCP protocol compliance.

Changes

  • Dependencies: Installed via npm install --legacy-peer-deps (required for LangChain peer deps)
  • Build artifacts: Compiled MCP server to dist/mcp/server.js with proper shebang
  • Package verification: Confirmed binary pr-agent-mcp configured in package.json
  • Protocol validation: Tested MCP 2024-11-05 initialization and tool listing

MCP Server Details

Exposes 3 tools via stdio transport:

  • analyze - LLM-agnostic PR analysis (diff parsing, risk detection, complexity scoring)
  • saveAnalysisResults - Persist to SQLite for dashboard
  • dashboard - Web UI for analysis history

Installation:

npm install -g @techdebtgpt/pr-agent

# MCP client config
{
  "mcpServers": {
    "pr-agent": { "command": "pr-agent-mcp" }
  }
}

Package ready for npm publication (185 files, ~7MB with better-sqlite3 native binary).

Original prompt

install the PR agent MCP server

[Chronological Review: The conversation began with a user request to install the PR agent MCP server. The user then issued a command to cancel the previous request, delegating the task to a cloud agent. This indicates a shift in the user's approach to handling the installation task.]

[Intent Mapping:

  1. "install the PR agent MCP server" - The user explicitly requested the installation of a specific server.
  2. "Cancel: 'Delegate to cloud agent'" - The user decided to cancel the installation request and delegate the task to a cloud agent instead.]

[Technical Inventory: The conversation involves the installation of a PR agent MCP server, which suggests a focus on server management and possibly cloud infrastructure.]

[Code Archaeology: No specific files or code changes were discussed in this brief exchange, as the focus was on commands rather than code.]

[Progress Assessment: The initial request to install the server was made, but it was subsequently canceled. There are no completed tasks, and the only pending task is the delegation to the cloud agent.]

[Context Validation: The context of the conversation is clear, with the user shifting from a direct installation request to delegating the task, indicating a preference for cloud-based solutions.]

[Recent Commands Analysis:

  • Last Agent Commands:
    1. "install the PR agent MCP server" - This command initiated the installation process.
    2. "Cancel: 'Delegate to cloud agent'" - This command canceled the previous installation request.
  • Tool Results Summary: No specific tool results were returned as the commands were related to task management rather than execution of a tool.
  • Pre-Summary State: The agent was actively processing the cancellation of the installation request when the token budget was exceeded.
  • Operation Context: The user’s commands reflect a strategic decision to utilize cloud resources for the installation task, aligning with modern practices in server management.]
1. Conversation Overview: - Primary Objectives: "install the PR agent MCP server" and "Cancel: 'Delegate to cloud agent'" - Session Context: The user initially requested the installation of a server but later decided to cancel this request in favor of delegating the task to a cloud agent. - User Intent Evolution: The user shifted from a direct installation approach to a more strategic delegation to a cloud service.
  1. Technical Foundation:
  • Core Technology: PR agent MCP server - A server likely related to project management or cloud services.
  1. Codebase Status:
  • No specific files or code changes were discussed in this conversation.
  1. Problem Resolution:
  • Issues Encountered: None documented, as the conversation focused on task management rather than technical problems.
  • Solutions Implemented: The decision to delegate the installation to a cloud agent is a strategic solution.
  • Debugging Context: No ongoing troubleshooting efforts were mentioned.
  • Lessons Learned: The user prefers to delegate tasks to cloud services for efficiency.
  1. Progress Tracking:
  • Completed Tasks: None, as the installation request was canceled.
  • Partially Complete Work: The task of delegating the installation to a cloud agent is pending.
  • Validated Outcomes: No features or code have been confirmed working.
  1. Active Work State:
  • Current Focus: The user was focused on managing the installation of the PR agent MCP server.
  • Recent Context: The last exchanges involved the user canceling the installation request.
  • Working Code: No code snippets were discussed.
  • Immediate Context: The user was addressing the installation of the server before the summary was triggered.
  1. Recent Operations:
  • Last Agent Commands:
    1. "install the PR agent MCP server"
    2. "Cancel: 'Delegate to cloud agent'"
  • Tool Results Summary: No specific results were returned as the commands were related to task management.
  • Pre-Summary State: The agent was processing the cancellation of the installation request.
  • Operation Context: The user’s commands indicate a preference for cloud-based solutions for server management.
  1. Continuation Plan:
  • Pending Task: "Delegate to cloud agent" - The next step is to ensure the task is properly delegated to the cloud agent.
  • Priority Information: The delegation to the cloud agent is the most urgent task.
  • Next Action: The immediate next step is to confirm the delegation process to the cloud agent for the installation of the PR agent MCP server.

Created from VS Code.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: dzdimov <44427736+dzdimov@users.noreply.github.com>
@dzdimov
Copy link
Copy Markdown
Owner

dzdimov commented Feb 12, 2026

@copilot install the mcp server project wide and run it on the current main branch

1 similar comment
@dzdimov
Copy link
Copy Markdown
Owner

dzdimov commented Feb 12, 2026

@copilot install the mcp server project wide and run it on the current main branch

Copilot AI changed the title [WIP] Install PR agent MCP server Verify and build PR Agent MCP server for installation readiness Feb 12, 2026
Copilot AI requested a review from dzdimov February 12, 2026 11:57
Copy link
Copy Markdown
Author

Copilot AI commented Feb 12, 2026

@copilot install the mcp server project wide and run it on the current main branch

✅ Done! The MCP server is now installed project-wide and running on the current branch.

Installation completed:

  • Dependencies installed via npm install --legacy-peer-deps (860 packages)
  • Project built successfully (npm run build)
  • MCP server verified working at dist/mcp/server.js

Test results:

  • ✅ MCP protocol initialization (version 2024-11-05)
  • ✅ All 3 tools available: analyze, saveAnalysisResults, dashboard
  • ✅ Server responds correctly to JSON-RPC requests
  • ✅ CLI commands working

Project-wide configuration:

  • .mcp.json - For Claude Code, Cursor, Cline, Windsurf
  • .vscode/mcp.json - For VS Code + GitHub Copilot

To use:

npm run mcp  # Start server manually

Or simply ask your AI assistant: "Analyze my current branch changes"

The MCP server is LLM-agnostic and uses the calling tool's AI for analysis enhancement.

@dzdimov
Copy link
Copy Markdown
Owner

dzdimov commented Feb 12, 2026

@copilot use the this mcp server that you startedc now to analyze the branch

@dzdimov
Copy link
Copy Markdown
Owner

dzdimov commented Feb 12, 2026

@copilot give me a list of avaliable and online mcp servers

Copy link
Copy Markdown
Author

Copilot AI commented Feb 12, 2026

@copilot use the this mcp server that you startedc now to analyze the branch

✅ Branch analyzed using the MCP server!

Analysis Summary:

📊 Project Classification: Business Logic (100% confidence)

Changes Analyzed:

  • dist/index.js - 5376 lines (GitHub Action bundle)
  • package-lock.json - 10 lines (dependency sync)

Key Findings:

  • ✅ No critical security issues detected
  • ✅ Well-structured agent architecture with LangGraph
  • ✅ Package lock file updates follow best practices
  • ⚠️ 14 dependency recommendations provided

Security Status:

  • API key-based authentication for AI providers
  • Recommended: Implement secure credential storage
  • Recommended: Add automated security scanning

Architecture Highlights:

  • Multi-AI provider strategy (Anthropic, OpenAI, Google)
  • Sophisticated agent workflow with self-refinement
  • LangChain ecosystem integration (5 packages)
  • Modern CLI tooling (inquirer, commander, chalk)

MCP Analysis provided:

  1. Static analysis (no issues found)
  2. DevOps cost estimates (no infrastructure changes)
  3. Comprehensive dependency analysis
  4. Security recommendations (5 priority actions)
  5. Architecture documentation context
  6. Process flow visualizations

Full 670-line analysis generated with architecture insights, security recommendations, and LLM prompts for enhanced review.

Copy link
Copy Markdown
Author

Copilot AI commented Feb 12, 2026

@copilot give me a list of avaliable and online mcp servers

Available MCP Servers (Configured in This Project)

1. ✅ PR Agent MCP Server (Local - This Repository)

  • Status: ✅ Installed and running
  • Type: stdio (local process)
  • Command: npm run mcp
  • Tools: analyze, saveAnalysisResults, dashboard
  • Purpose: AI-powered PR analysis with diff parsing, risk detection, complexity scoring

2. 🌐 Atlassian Rovo MCP Server (Online - Official)

  • Status: 🌐 Cloud-hosted by Atlassian
  • Type: http (remote)
  • URL: https://mcp.atlassian.com/v1/mcp
  • Authentication: OAuth 2.1 (no API keys needed)
  • Purpose: Jira and Confluence Cloud access
  • Setup: Pre-configured in .mcp.json, requires OAuth on first use
  • Docs: https://support.atlassian.com/atlassian-rovo-mcp-server/

3. 📦 GitHub MCP Server (npm package)

  • Status: Available via npm
  • Type: stdio (local via npx)
  • Package: @modelcontextprotocol/server-github
  • Command: npx -y @modelcontextprotocol/server-github
  • Purpose: GitHub API access for repository and PR management
  • Setup: Pre-configured in .mcp.json, requires GitHub auth
  • Docs: https://github.com/modelcontextprotocol/servers/tree/main/src/github

Configuration Files:

  • .mcp.json - For Claude Code, Cursor, Cline, Windsurf
  • .vscode/mcp.json - For VS Code + GitHub Copilot

All three servers are already configured in this repository and ready to use!

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