agentleFS
TehseenTechTehseenTech/manus-skills/skills/integration-skills/mcp-auto-recovery/SKILL.md

mcp-auto-recovery

Skill0 starsChanged 3 months agoMITView on GitHub

Automatically diagnose and recover from MCP server connection issues. Use when any `manus-mcp-cli` command fails due to connection, authentication, or availability errors. Apply automatically when the request matches; the user does not need to mention this skill.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow these steps sequentially.

    line 28
  2. Very specific:

    After following the recommendation from the diagnostic report, retry the original manus-mcp-cli command that failed.

    line 60
  3. Distinctive:

    If the issue persists, consult the reference file for common error messages and their solutions.

    line 64
  4. Distinctive:

    Take action: Check spelling, verify MCP is enabled in session settings

    line 96
  5. Distinctive:

    Retry: Run the original command again

    line 98
  6. Distinctive:

    If all diagnostics pass but the command still fails, the issue is with the specific tool call parameters, not the MCP connection

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

Overview

Automatically diagnose and recover from MCP server connection issues. Use when any manus-mcp-cli command fails due to connection, authentication, or availability errors. Apply automatically when the request matches; the user does not need to mention this skill.

This skill should apply automatically when the request matches; the user does not need to mention this skill.

MCP Auto-Recovery

This skill provides a systematic workflow to diagnose and resolve common issues when interacting with Model Context Protocol (MCP) servers via the manus-mcp-cli tool.

When to Use This Skill

Trigger this skill immediately if a manus-mcp-cli command fails with errors related to:

  • Connection refused / timeout
  • Server not found
  • Authentication required / token expired
  • Permission denied
  • Any unexpected non-zero exit code

The Workflow

Follow these steps sequentially. Do not skip steps.

Step 1: Identify the Failing Server

From the failed command, identify the server name specified with the --server flag. For example, in manus-mcp-cli tool list --server supabase, the server name is supabase.

Step 2: Run the Diagnostic Script

Execute the bundled diagnostic script, passing the server name as an argument. This script will perform a series of automated checks and provide a summary report with recommended actions.

Command:

python3 /home/ubuntu/skills/mcp-auto-recovery/scripts/diagnose_mcp.py <server_name>

Example:

python3 /home/ubuntu/skills/mcp-auto-recovery/scripts/diagnose_mcp.py supabase

Step 3: Interpret the Diagnostic Report

The script will output a clear summary. Follow its recommendation:

Report OutcomeRecommended Action
Server Not AvailableCheck the server name for typos against the list of available servers provided. Retry the command with the correct name.
Authentication FailedFollow the interactive OAuth prompts if they appear. The script cannot do this for you. After authenticating, retry the original command.
All Checks PassThe issue is not with the connection. The problem lies with the specific tool call itself. Carefully review the tool's required parameters, your input JSON, and any necessary permissions (e.g., does the user have access to the requested resource?).

Step 4: Retry the Original Command

After following the recommendation from the diagnostic report, retry the original manus-mcp-cli command that failed. If it still fails, do not run the diagnostic script again. Instead, inform the user about the persistent failure and the steps you've already taken.

Advanced: Common Error Patterns

If the issue persists, consult the reference file for common error messages and their solutions.

Command:

cat /home/ubuntu/skills/mcp-auto-recovery/references/common_errors.md

Example Usage

Scenario: Supabase Connection Fails

Failed Command:

manus-mcp-cli tool call execute_sql --server supabase --input '{"query": "SELECT * FROM users"}'

Error:

Error: failed to get server config: server 'supabase' not found

Recovery Steps:

  1. Identify server: supabase
  2. Run diagnostic:
python3 /home/ubuntu/skills/mcp-auto-recovery/scripts/diagnose_mcp.py supabase
  1. Read report: Script shows server is not available and lists all configured servers
  2. Take action: Check spelling, verify MCP is enabled in session settings
  3. Retry: Run the original command again

Notes

  • The diagnostic script is non-destructive and safe to run multiple times
  • It only performs read operations to check server status
  • Authentication flows must be completed interactively by the user
  • If all diagnostics pass but the command still fails, the issue is with the specific tool call parameters, not the MCP connection

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.