Files

58 lines
3.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: mcp-servers
description: >-
Chiron MCP inventory (user + project) and unavailability protocol. Use when an
MCP call fails, a namespace is missing/error/loading/needsAuth, or the agent
needs sql-mcp-server, figma-bridge, refactor-mcp, azure, or dotnet-lsp.
Prefer alerting the user to reconnect/restart over working around a dead server.
---
# MCP servers (availability)
Tool **usage** (which MCP for which job) lives in the always-applied rule
`chiron-agent-tools`. This skill covers **inventory + what to do when a server is down**.
## Inventory
### User-level (`~/.cursor/mcp.json`) — all projects
| Config name | Runtime namespace (typical) | Role |
|-------------|------------------------------|------|
| `refactor-mcp` | `user-refactor-mcp` | Roslyn impact analysis + named refactors |
| `azure` | `azure` | Azure resources / docs helpers |
| `dotnet-lsp` | `user-dotnet-lsp` | Symbol search / complexity / deps |
| `figma-bridge` | `user-figma-bridge` | Live Figma Desktop selection + bridge tools |
`figma-bridge` needs **Figma Desktop** running. Selecting nodes in Figma makes them easier for agents to find.
### Project-level (`.cursor/mcp.json`) — this repo
| Config name | Runtime namespace (typical) | Role |
|-------------|------------------------------|------|
| `sql-mcp-server` | `project-0-Chiron-sql-mcp-server` | Read-only live SQL via DAB (`http://localhost:5000/mcp`) |
Requires a separate terminal: `./scripts/start-sql-mcp.ps1` (wraps `dab start --config dab-config.json`; the config is tracked, the server registration is local). Idle disconnects are common.
## When a call fails
1. Treat the server as **unavailable** (missing namespace, `error` / `loading` / `needsAuth`, connection refused, empty tool list after inspect).
2. **Do not** work around it (no substitute SQL clients, no guessing DB state, no skipping Figma reads by inventing layout, no hand-rolling refactors that the MCP was meant to do when the task depended on that MCP).
3. **Stop and tell the user** which server is down and the restart steps below. Wait for them to reconnect/restart before retrying that MCP.
4. Auth-only (`needsAuth`): ask the user to complete MCP auth / `mcp_auth` for that namespace; do not invent credentials.
## Restart / reconnect
| Server | What to ask the user |
|--------|----------------------|
| **sql-mcp-server** | From repo root, run `./scripts/start-sql-mcp.ps1` (or `dab start --config dab-config.json`) in a terminal; then reconnect/toggle **sql-mcp-server** in Cursor Settings → MCP if still unavailable. |
| **figma-bridge** | Open **Figma Desktop** (select relevant nodes if helpful); restart/reconnect **figma-bridge** in Cursor Settings → MCP. |
| **dotnet-lsp** | Rebuild Release, then reconnect: `dotnet build -c Release "%USERPROFILE%\source\mcp\RoslynMCP\RoslynMcpServer\RoslynMcpServer.csproj"` — binary expected at `...\bin\Release\net10.0\RoslynMcpServer.exe`. Toggle **dotnet-lsp** in Cursor Settings → MCP. |
| **refactor-mcp** | Reconnect/toggle **refactor-mcp** in Cursor Settings → MCP. |
| **azure** | Reconnect/toggle **azure**; if auth/subscription errors persist, use the server auth path / https://aka.ms/azmcp/troubleshooting. |
## Message template
Use a short alert, for example:
> **MCP unavailable:** `{server}`. Please {restart steps}. I’ll retry that MCP after you confirm it’s back.