agentleFS
giantswarmgiantswarm/mcp-teleport/.cursor/rules/mcp-debugging.mdc

mcp-teleport / rules

Cursor rule7 starsChanged 17 months agoApache-2.0Archived repositoryView on GitHub

mcp-debug provides core debugging tools to test and explore the functionality implemented in the aggregated MCP server. This guide focuses on mcp-debugs internal debugging capabilities. mcp-debug exposes these categories of internal tools for debugging the aggregated mcp server end-to-end: list_tools: list all the tools exposed by the aggregated mcp server describe_tool: describe a tool exposed by the aggregated mcp server call_tool: execute a tool exposed by the aggregated mcp server "CallTool not implemented" errors - This means the MCP client…

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 4,144 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this mcp-debugging.mdc into the rules it gives an agent

11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start by checking the overall health of the system:

    line 21
  2. Distinctive:

    Verify that all expected MCP servers are properly registered with the aggregator:

    line 27
  3. Distinctive:

    If a service shows as unhealthy:

    line 33
  4. Very specific:

    Check its detailed status: core_service_status

    line 34
  5. Distinctive:

    Check if its MCP client is attached in the service list

    line 36
  6. Very specific:

    Check core_service_list to see if the service shows a client

    line 50
  7. Very specific:

    Check logs in the mcp-teleport TUI (if available)

    line 54
  8. Very specific:

    Use core_service_status for detailed information

    line 55
  9. Very specific:

    Use core_workflow_validate to check syntax

    line 59
  10. Very specific:

    Ensure tool names exist (check with mcp_mcp-debug_list_tools)

    line 60
  11. Distinctive:

    Verify argument schemas match the tool requirements

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
mcp-debugging.mdc
---
description: 
globs: 
alwaysApply: true
---
## Debugging mcp-teleport via mcp-debug

mcp-debug provides core debugging tools to test and explore the functionality implemented in the aggregated MCP server. This guide focuses on mcp-debugs internal debugging capabilities.

## Core Debugging Tools

mcp-debug exposes these categories of internal tools for debugging the aggregated mcp server end-to-end:

list_tools: list all the tools exposed by the aggregated mcp server
describe_tool: describe a tool exposed by the aggregated mcp server
call_tool: execute a tool exposed by the aggregated mcp server

## Debugging Workflow

### 1. Verify All Services Are Running
Start by checking the overall health of the system:
```
mcp_mcp-debug_call_tool(name="core_service_list", arguments={})
```

### 2. Check MCP Server Registration
Verify that all expected MCP servers are properly registered with the aggregator:
```
mcp_mcp-debug_call_tool(name="core_mcp_server_list", arguments={})
```

### 5. Troubleshoot Connection Issues
If a service shows as unhealthy:
1. Check its detailed status: `core_service_status`
2. Try restarting it: `core_service_restart`
3. Check if its MCP client is attached in the service list

## Important Notes

- The prefix `x_` is configurable via `EnvctlPrefix` in the aggregator config
- Tool names from individual MCP servers get prefixed to avoid conflicts
- The agent automatically handles tool name resolution and routing
- Service health is continuously monitored and reflected in the status
- Workflows provide a way to test complex multi-step operations

## Common Issues and Solutions

**"CallTool not implemented" errors**
- This means the MCP client is not properly attached to the service
- Check `core_service_list` to see if the service shows a client
- The fix involves ensuring `GetServiceData()` returns the MCP client

**Service shows as unhealthy**
- Check logs in the mcp-teleport TUI (if available)
- Use `core_service_status` for detailed information
- Try `core_service_restart` to recover

**Workflow validation fails**
- Use `core_workflow_validate` to check syntax
- Ensure tool names exist (check with `mcp_mcp-debug_list_tools`)
- Verify argument schemas match the tool requirements

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.