Skip to content
Development
Command

/setup-mcp

Configure MCP server API keys in .env

From plugin
solana-ai-kit
10130 skills15 agents30 commands7 MCP
Install
> /plugin marketplace add solanabr/solana-ai-kit
> /plugin install solana-ai-kit@stbr

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/setup-mcp

Context preview

What this command does when you run it.

Configure MCP server API keys in .env

Command definition

setup-mcp.md
description: "Configure MCP server API keys in .env"

You are guiding the user through MCP API key setup. All secrets go in `.env` (never in `mcp.json`).

Step 1: Ensure .env exists

Check if `.env` exists in the project root. If not, copy from `.env.example`:

if [ ! -f ".env" ] && [ -f ".env.example" ]; then
  cp .env.example .env
  echo "Created .env from .env.example"
elif [ ! -f ".env" ]; then
  touch .env
  echo "Created empty .env"
else
  echo "Found existing .env"
fi

Step 2: Configure secrets

For each key below, ask the user to paste a value or say "skip":

1. **HELIUS_API_KEY** — Helius RPC + DAS API (get one at https://dev.helius.xyz) 2. **COLOSSEUM_COPILOT_PAT** — Colosseum Copilot for startup research (optional, get at https://arena.colosseum.org/copilot) 3. **MISTRAL_API_KEY** — QEDGen formal verification (optional, get at https://console.mistral.ai)

For each value provided, write or update the line in `.env`. Skip means leave it empty.

**Note — Surfpool MCP is keyless** (no `.env` entry), but its server (`surfpool mcp`) requires the `surfpool` CLI binary on PATH. Install is the user's responsibility — do not run it for them: `curl -L https://surfpool.run/install | sh` or `brew install txtx/taps/surfpool`. Verify with `command -v surfpool`.

Step 3: Summary

Print which keys are configured vs skipped:

MCP secrets (.env):
  HELIUS_API_KEY        [configured / skipped]
  COLOSSEUM_COPILOT_PAT [configured / skipped]
  MISTRAL_API_KEY       [configured / skipped]

Remind the user: restart Claude Code to pick up changes.

Read more
Ships withsolana-ai-kit

Production-ready Claude Code configuration for full-stack Solana development. Combines best practices from multiple sources into an agent-optimized, token-efficient config you can install and adapt to your specific project.

Get the whole plugin

Other commands on solana-ai-kit.