# Triage Agent Mcp

> Blame the right commit, not just the right file — MCP server walks a stack trace through git blame and PR context to surface root cause and author.

- **Type:** MCP server
- **Install:** `agentstack add mcp-rahulnayanegali-triage-agent-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [rahulnayanegali](https://agentstack.voostack.com/s/rahulnayanegali)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [rahulnayanegali](https://github.com/rahulnayanegali)
- **Source:** https://github.com/rahulnayanegali/triage-agent-mcp

## Install

```sh
agentstack add mcp-rahulnayanegali-triage-agent-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# triage-agent-mcp

MCP server that guides an AI agent through stack trace triage — from raw error to the commit and PR that introduced it.

## How it works

Three tools, called in sequence by the agent:

| Tool | Input | Output |
|------|-------|--------|
| `blame_stack_trace` | raw stack trace | instructions to identify the source file and line |
| `submit_trace_location` | file path + line range | `git blame` command to run + instructions to gather commit context |
| `submit_git_context` | commit message, PR info, comments | structured triage result as JSON |

## Example

```
Use mcp__triage-agent-mcp__blame_stack_trace to analyze this error:

Uncaught TypeError: Cannot read properties of null (reading 'useContext')
  at e.useContext (_virtual_mf___mfe_internal__remote__loadShare__react__loadShare__.mjs)
  at app-xaIRccHv.js:3:17698
```

The agent calls all three tools in sequence and returns the commit message, PR, and reviewer comments linked to the fault.

## Usage

Add to your MCP client config (e.g. Claude Desktop `claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "triage-agent-mcp": {
      "command": "node",
      "args": ["/path/to/triage-agent-mcp/dist/index.js"]
    }
  }
}
```

## Development

```bash
npm install
npm test         # tsc type-check + smoke test
npm run build    # tsc → dist/
```

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [rahulnayanegali](https://github.com/rahulnayanegali)
- **Source:** [rahulnayanegali/triage-agent-mcp](https://github.com/rahulnayanegali/triage-agent-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-rahulnayanegali-triage-agent-mcp
- Seller: https://agentstack.voostack.com/s/rahulnayanegali
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
