MCP Server Integration
MCP Server Integration
Section titled “MCP Server Integration”@agentic/triage includes a Model Context Protocol (MCP) server, enabling integration with Claude Desktop, Cursor, and other MCP-compatible clients.
What is MCP?
Section titled “What is MCP?”The Model Context Protocol is an open standard for connecting AI models to external tools and data sources. With MCP, you can give Claude Desktop or Cursor access to triage tools without writing any code.
Quick Start
Section titled “Quick Start”For Claude Desktop
Section titled “For Claude Desktop”Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{ "mcpServers": { "triage": { "command": "npx", "args": ["@jbcom/agentic", "mcp-server"] } }}For Cursor
Section titled “For Cursor”Add to your Cursor MCP configuration:
{ "mcpServers": { "triage": { "command": "npx", "args": ["@jbcom/agentic", "mcp-server"] } }}With Environment Variables
Section titled “With Environment Variables”{ "mcpServers": { "triage": { "command": "npx", "args": ["@jbcom/agentic", "mcp-server"], "env": { "GH_TOKEN": "your-github-token", "GITHUB_REPOSITORY": "owner/repo" } } }}Available Tools
Section titled “Available Tools”Once configured, these tools are available to the AI:
Issue Management
Section titled “Issue Management”| Tool | Description |
|---|---|
list_issues | List issues with filtering |
get_issue | Get a specific issue |
create_issue | Create a new issue |
update_issue | Update an existing issue |
close_issue | Close an issue |
search_issues | Search issues by query |
add_labels | Add labels to an issue |
remove_labels | Remove labels from an issue |
Code Review
Section titled “Code Review”| Tool | Description |
|---|---|
get_pr_comments | Get comments on a PR |
add_pr_comment | Add a comment to a PR |
approve_pr | Approve a pull request |
request_changes | Request changes on a PR |
Project Management
Section titled “Project Management”| Tool | Description |
|---|---|
get_sprints | Get all sprints |
get_current_sprint | Get the current sprint |
get_sprint_issues | Get issues in a sprint |
move_to_sprint | Move issue to a sprint |
Usage Examples
Section titled “Usage Examples”In Claude Desktop
Section titled “In Claude Desktop”After configuring the MCP server, you can ask Claude:
“List all open bugs in my repository and prioritize them by severity”
Claude will use the list_issues and search_issues tools to fetch issues and provide analysis.
“Create an issue for the login bug we discussed, label it as ‘critical’ and assign it to @developer”
Claude will use create_issue and add_labels to create the issue.
“Review PR #123 and add a comment about the authentication changes”
Claude will use get_pr_comments and add_pr_comment to review and comment.
In Cursor
Section titled “In Cursor”In Cursor’s AI chat, you can:
“Triage all open issues and create a sprint plan”
Cursor will use the triage tools to analyze issues and suggest a sprint plan.
Configuration Options
Section titled “Configuration Options”Using Local Installation
Section titled “Using Local Installation”If you prefer to install globally:
npm install -g @jbcom/agenticThen configure:
{ "mcpServers": { "triage": { "command": "agentic-triage", "args": ["mcp-server"] } }}With Specific Provider
Section titled “With Specific Provider”{ "mcpServers": { "triage": { "command": "npx", "args": ["@jbcom/agentic", "mcp-server", "--provider", "github"], "env": { "GH_TOKEN": "your-token", "GITHUB_REPOSITORY": "owner/repo" } } }}For Jira
Section titled “For Jira”{ "mcpServers": { "triage-jira": { "command": "npx", "args": ["@jbcom/agentic", "mcp-server", "--provider", "jira"], "env": { "JIRA_HOST": "your-company.atlassian.net", "JIRA_EMAIL": "your-email@company.com", "JIRA_API_TOKEN": "your-api-token", "JIRA_PROJECT": "PROJ" } } }}For Linear
Section titled “For Linear”{ "mcpServers": { "triage-linear": { "command": "npx", "args": ["@jbcom/agentic", "mcp-server", "--provider", "linear"], "env": { "LINEAR_API_KEY": "your-api-key", "LINEAR_TEAM_ID": "your-team-id" } } }}Running the Server Manually
Section titled “Running the Server Manually”For development or testing:
# Run the MCP servernpx @jbcom/agentic mcp-server
# With debug loggingDEBUG=triage:* npx @jbcom/agentic mcp-server
# With specific providernpx @jbcom/agentic mcp-server --provider githubDebugging
Section titled “Debugging”Check Server Status
Section titled “Check Server Status”# Test the server starts correctlynpx @jbcom/agentic mcp-server --test
# List available toolsnpx @jbcom/agentic mcp-server --list-toolsView Logs
Section titled “View Logs”In Claude Desktop, check the logs at:
- macOS:
~/Library/Logs/Claude/ - Windows:
%APPDATA%\Claude\logs\
Common Issues
Section titled “Common Issues”Server not starting:
# Check Node.js version (requires 18+)node --version
# Reinstall the packagenpm install -g @jbcom/agenticAuthentication errors:
# Verify your token worksGH_TOKEN=your-token gh api userRepository not found:
# Ensure GITHUB_REPOSITORY is set correctlyexport GITHUB_REPOSITORY="owner/repo"Security Considerations
Section titled “Security Considerations”Token Scopes
Section titled “Token Scopes”For GitHub, your token needs:
repo- Full repository accessread:org- Read organization data (optional)
Best Practices
Section titled “Best Practices”- Use fine-grained tokens - Create tokens with minimal necessary permissions
- Rotate regularly - Update tokens periodically
- Don’t commit tokens - Use environment variables or secure storage
- Review tool calls - Claude will ask before executing destructive operations
Next Steps
Section titled “Next Steps”- Vercel AI SDK Integration - Programmatic usage
- @agentic/triage Package - Full package reference
- GitHub Actions Integration - CI/CD integration