xiaohongshu
xiaohongshu
mcp-uninstall
Remove magnet-local and/or magnet-canary MCP server configurations from project and global locations. Use when user says "uninstall mcp", "remove mcp", "delete mcp config", or "clean up mcp".
Full skill instructions
This skill helps users remove Magnet MCP server configurations (magnet-local and/or magnet-canary) from their system.
Use this skill when the user requests:
Use AskUserQuestion to determine which configuration(s) to remove:
Question: "Which MCP server configuration do you want to remove?" Options:
Check for MCP configurations in project and client-specific locations:
Project location (magnet-app):
# Find magnet-app directory
MAGNET_APP_DIR=$(ls -d ~/magnet-app 2>/dev/null || ls -d ~/Projects/magnet-app 2>/dev/null || ls -d ~/Code/magnet-app 2>/dev/null)
# Check for .mcp.json
if [ -n "$MAGNET_APP_DIR" ] && [ -f "$MAGNET_APP_DIR/.mcp.json" ]; then
echo "Found project config: $MAGNET_APP_DIR/.mcp.json"
cat "$MAGNET_APP_DIR/.mcp.json"
fi
Cursor:
if [ -f ~/.cursor/mcp.json ]; then
echo "Found Cursor config: ~/.cursor/mcp.json"
cat ~/.cursor/mcp.json
fi
Claude Desktop (macOS):
if [ -f ~/Library/Application\ Support/Claude/claude_desktop_config.json ]; then
echo "Found Claude Desktop config"
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json
fi
Global Claude Code locations (~/.claude/):
# Check for global MCP configs
if [ -f ~/.claude/settings.json ]; then
echo "Found ~/.claude/settings.json"
grep -l "mcpServers" ~/.claude/settings.json 2>/dev/null && cat ~/.claude/settings.json
fi
if [ -f ~/.claude/settings.local.json ]; then
echo "Found ~/.claude/settings.local.json"
cat ~/.claude/settings.local.json
fi
Report what was found to the user:
Use AskUserQuestion to confirm before making changes:
Question: "Found [config-name] in [locations]. Do you want to remove it?" Options:
For each location where the configuration exists:
Removing from .mcp.json:
# Use jq to remove specific server entry (if jq is available)
# Otherwise, use node/JavaScript to parse and modify JSON
# Example with node:
node -e "
const fs = require('fs');
const path = '$MAGNET_APP_DIR/.mcp.json';
const config = JSON.parse(fs.readFileSync(path, 'utf8'));
delete config.mcpServers['magnet-local']; // or 'magnet-canary'
fs.writeFileSync(path, JSON.stringify(config, null, 2));
console.log('Removed magnet-local from', path);
"
Important behaviors:
mcpServers becomes empty after removal, remove the mcpServers key{}, optionally inform user they can delete the fileAfter removal, report:
Example output:
Removed configurations:
- magnet-local from ~/magnet-app/.mcp.json
- magnet-canary from ~/magnet-app/.mcp.json
Not found:
- No global configurations in ~/.claude/
Please restart Claude Code to apply the changes.
If the requested configuration doesn't exist:
The magnet-local configuration was not found in any of the checked locations:
- ~/magnet-app/.mcp.json (file exists but doesn't contain magnet-local)
- ~/.claude/settings.json (no mcpServers section)
No changes were made.
If removing the last server entry:
// After removal, check if mcpServers is empty
if (Object.keys(config.mcpServers).length === 0) {
delete config.mcpServers;
// Inform user: "The mcpServers section is now empty"
}
If unable to modify the file:
Error: Unable to modify ~/magnet-app/.mcp.json
Please check file permissions or remove the configuration manually.
User: "Remove the local MCP server"
Actions:
User: "Clean up all Magnet MCP configurations"
Actions:
User: "Remove the canary server"
Actions:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience