Mcp setup

From vargasjr-dev/mycadet-temp · View interactive version

Mcp setup is an AI agent skill from the GitHub repository vargasjr-dev/mycadet-temp. Add, authenticate, list, and remove MCP (Model Context Protocol) servers — connect any external tool or service that publishes an MCP endpoint to the assistant

How to use this skill

Skill file

Configure MCP servers to give the assistant access to any external tool or service that publishes an MCP endpoint.

DO NOT run exploratory commands. Do not check available CLI commands, search for bun/npx/node, or investigate transport types. Follow the steps below exactly and stop when done. (Looking up a service's MCP endpoint URL in its own documentation is allowed when the service is not in the recipe table, per Step 3.)

When to Use

USE THIS SKILL WHEN:

Prefer Native OAuth Integration (check this first)

Many services have built-in OAuth integrations that are simpler and more reliable than MCP. Before setting up MCP, check whether the service already has a native OAuth provider:

assistant oauth providers list

If the service appears in that list, connect it natively instead of using MCP:

assistant oauth connect <provider>

Only use MCP when:

Step 1 — Detect your environment

Before doing anything else, determine which environment you are in.

Try host_bash:

echo "desktop ok"

Both environments fully support MCP. The only difference is which tool runs the commands.

Step 2 — Check the recipe table

Check this table before doing anything else. If the service is listed, run the command shown and do nothing else — no exploration, no checking available commands, no looking up documentation.

| Service | Command | After? |

| --------------- | -------------------------------------------------------------------------------------- | ------------------------------- |

| Context7 (docs) | assistant mcp add context7 -t streamable-http -u https://mcp.context7.com/mcp -r low | Done — no auth needed |

| Linear | assistant mcp add linear -t streamable-http -u https://mcp.linear.app/mcp | Run assistant mcp auth linear |

| Figma | assistant mcp add figma -t streamable-http -u https://mcp.figma.com/mcp | Run assistant mcp auth figma |

If the service is not in this table, go to Step 3.

Step 3 — Unknown service

Find the MCP endpoint URL in the service's documentation, then run:

assistant mcp add <name> -t streamable-http -u <url>

Then run assistant mcp list. If it shows ! Needs authentication, run assistant mcp auth <name>.


Reference: All Commands

Run list, add, remove, and reload via bash on both environments. Run auth via host_bash on desktop, or via bash on the web app.

List servers

assistant mcp list
assistant mcp list --json   # machine-readable output

Shows each server's connection status, transport, and URL/command. Status indicators:

Add a server

assistant mcp add <name> -t <transport> -u <url>

Transport types:

Examples:

assistant mcp add linear -t streamable-http -u https://mcp.linear.app/mcp
assistant mcp add context7 -t streamable-http -u https://mcp.context7.com/mcp
assistant mcp add local-db -t stdio -c npx -a -y @my/mcp-server

Authenticate (OAuth)

assistant mcp auth <name>

Tokens are saved automatically. Use when:

Remove a server

assistant mcp remove <name>

Removes config and cleans up stored OAuth credentials.

Reload

assistant mcp reload

Manually signals the assistant to reconnect all MCP servers from disk. Normally not needed — the assistant detects changes automatically after add, remove, and auth. Use this only if a server's tools aren't appearing after ~10 seconds.

Advanced Configuration

mcp add covers the common cases. For stdio environment variables, edit $CADET_WORKSPACE_DIR/mcp.json under mcpServers.<name>.env. Auth headers for remote servers go through assistant mcp add -H or the settings UI, not mcp.json.

SKILL COMPLETE WHEN

Match the completion condition to the task:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.