- DEBUGGING-CHECKLIST: gitea test uses gitea_mcp.server (not mcp_server) - debug-mcp skills: generic module placeholder, gitea exception noted - Removed orphan .doc-guardian-queue from projman Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
3.2 KiB
3.2 KiB
name, description
| name | description |
|---|---|
| debug-mcp inspect | Inspect MCP server configuration, dependencies, and tool definitions |
/debug-mcp inspect
Deep inspection of an MCP server's configuration, dependencies, and tool definitions.
Skills to Load
skills/visual-header.mdskills/venv-diagnostics.mdskills/mcp-protocol.md
Agent
Delegate to agents/mcp-debugger.md.
Usage
/debug-mcp inspect <server_name> [--tools] [--deps] [--config]
Arguments:
server_name- Name of the MCP server from .mcp.json
Options:
--tools- List all registered tools with their schemas--deps- Show dependency analysis (installed vs required)--config- Show configuration files and environment variables- (no flags) - Show all sections
Instructions
Execute skills/visual-header.md with context "Server Inspection".
Phase 1: Configuration
- Read
.mcp.jsonand extract the server definition - Display:
- Server name
- Command and arguments
- Working directory
- Environment variable references
## Server: gitea
### Configuration (.mcp.json)
- Command: /path/to/mcp-servers/gitea/.venv/bin/python
- Args: ["-m", "mcp_server.server"]
- CWD: /path/to/mcp-servers/gitea
- Env file: ~/.config/claude/gitea.env
**Note:** The gitea server uses `gitea_mcp.server` (installed from package).
Other servers use `mcp_server.server` (local source).
Phase 2: Dependencies (--deps)
Apply skills/venv-diagnostics.md:
- Read
requirements.txtfrom the server's cwd - Compare with installed packages:
cd <cwd> && .venv/bin/pip freeze - Identify:
- Missing packages (in requirements but not installed)
- Version mismatches (installed version differs from required)
- Extra packages (installed but not in requirements)
### Dependencies
| Package | Required | Installed | Status |
|---------|----------|-----------|--------|
| mcp | >=1.0.0 | 1.2.3 | OK |
| httpx | >=0.24 | 0.25.0 | OK |
| pynetbox | >=7.0 | — | MISSING |
- Missing: 1 package
- Mismatched: 0 packages
Phase 3: Tools (--tools)
Parse the server source code to extract tool definitions:
- Find Python files with
@mcp.tooldecorators orserver.add_tool()calls - Extract tool name, description, and parameter schema
- Group by module/category if applicable
### Tools (42 registered)
#### Issues (6 tools)
| Tool | Description | Params |
|------|-------------|--------|
| list_issues | List issues from repository | state?, labels?, repo? |
| get_issue | Get specific issue | issue_number (required) |
| create_issue | Create new issue | title (required), body (required) |
...
Phase 4: Environment Configuration (--config)
- Locate env file referenced in .mcp.json
- Read the file (mask secret values)
- Check for missing required variables
### Environment Configuration
File: ~/.config/claude/gitea.env
| Variable | Value | Status |
|----------|-------|--------|
| GITEA_API_URL | https://gitea.example.com/api/v1 | OK |
| GITEA_API_TOKEN | ****...a1b2 | OK |
File: .env (project level)
| Variable | Value | Status |
|----------|-------|--------|
| GITEA_ORG | personal-projects | OK |
| GITEA_REPO | leo-claude-mktplace | OK |
User Request
$ARGUMENTS