secure-helpdesk-mcp
README.md
# secure-helpdesk-mcp
An MCP server for an internal IT helpdesk that treats every tool call and every
piece of ticket content as untrusted.
Work in progress. Right now the server runs over stdio against a local mock helpdesk
API. OAuth, the HTTP transport and the hardening features are next.
## Running it locally
You need [uv](https://docs.astral.sh/uv/) and Python 3.12+.
```bash
uv sync
cp .env.example .env
```
Start the mock helpdesk API (it creates and seeds `helpdesk.db` on first start):
```bash
uv run uvicorn helpdesk_api.main:create_app --factory --port 8001
```
Then open the MCP server in the [MCP Inspector](https://github.com/modelcontextprotocol/inspector):
```bash
npx @modelcontextprotocol/inspector uv run helpdesk-mcp
```
Until OAuth lands, the server acts as the fixed user in `HELPDESK_MCP_DEV_IDENTITY`
(for example `sam.sullivan:employee`). Swap in `melinda.morgan:agent` or
`lisa.lawson:admin` to see what the other roles can do.
### Claude Desktop
Add this to `claude_desktop_config.json`, with your own path:
```json
{
"mcpServers": {
"helpdesk": {
"command": "uv",
"args": ["run", "--directory", "/path/to/secure-helpdesk-mcp", "helpdesk-mcp"],
"env": {
"HELPDESK_MCP_SERVICE_TOKEN": "change-me-demo-service-token",
"HELPDESK_MCP_DEV_IDENTITY": "sam.sullivan:employee"
}
}
}
}
```
## Tests
```bash
uv run pytest
```
`tests/attacks/` holds the security tests: scope escalation, malformed input, and
direct attempts against the backend's own access rules.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues