finding-duplicate-func…
Use when auditing a codebase for semantic duplication - functions that do the same thing but have different names or implementations. Especially useful for…
Use MCP servers on-demand via the mcp CLI tool - discover tools, resources, and prompts without polluting context with pre-loaded MCP integrations
$ npx -y skills add obra/superpowers-lab --skill mcp-cli --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mcp-cliContext preview
The summary Claude sees to decide when to auto-load this skill.
Use MCP servers on-demand via the mcp CLI tool - discover tools, resources, and prompts without polluting context with pre-loaded MCP integrations
name: mcp-cli description: Use MCP servers on-demand via the mcp CLI tool - discover tools, resources, and prompts without polluting context with pre-loaded MCP integrations
Use the `mcp` CLI tool to dynamically discover and invoke MCP server capabilities without pre-configuring them as permanent integrations.
Use this skill when you need to:
The `mcp` CLI must be installed at `~/.local/bin/mcp`. If not present:
# Clone and build cd /tmp && git clone --depth 1 https://github.com/f/mcptools.git cd mcptools && CGO_ENABLED=0 go build -o ~/.local/bin/mcp ./cmd/mcptools
Always ensure PATH includes the binary:
export PATH="$HOME/.local/bin:$PATH"
mcp tools <server-command>
**Examples:**
# Filesystem server mcp tools npx -y @modelcontextprotocol/server-filesystem /path/to/allow # Memory/knowledge graph server mcp tools npx -y @modelcontextprotocol/server-memory # GitHub server (requires token) mcp tools docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server # HTTP-based server mcp tools https://example.com/mcp
mcp resources <server-command>
Resources are data sources the server exposes (files, database entries, etc.).
mcp prompts <server-command>
Prompts are pre-defined prompt templates the server provides.
# For full schema details including parameter types mcp tools --format json <server-command> mcp tools --format pretty <server-command>
mcp call <tool_name> --params '<json>' <server-command>
**Read a file:**
mcp call read_file --params '{"path": "/tmp/example.txt"}' \
npx -y @modelcontextprotocol/server-filesystem /tmp**Write a file:**
mcp call write_file --params '{"path": "/tmp/test.txt", "content": "Hello world"}' \
npx -y @modelcontextprotocol/server-filesystem /tmp**List directory:**
mcp call list_directory --params '{"path": "/tmp"}' \
npx -y @modelcontextprotocol/server-filesystem /tmp**Create entities (memory server):**
mcp call create_entities --params '{"entities": [{"name": "Project", "entityType": "Software", "observations": ["Uses TypeScript"]}]}' \
npx -y @modelcontextprotocol/server-memory**Search (memory server):**
mcp call search_nodes --params '{"query": "TypeScript"}' \
npx -y @modelcontextprotocol/server-memoryFor nested objects and arrays, ensure valid JSON:
mcp call edit_file --params '{
"path": "/tmp/file.txt",
"edits": [
{"oldText": "foo", "newText": "bar"},
{"oldText": "baz", "newText": "qux"}
]
}' npx -y @modelcontextprotocol/server-filesystem /tmp# Table (default, human-readable)
mcp call <tool> --params '{}' <server>
# JSON (for parsing)
mcp call <tool> --params '{}' -f json <server>
# Pretty JSON (readable JSON)
mcp call <tool> --params '{}' -f pretty <server># List available resources mcp resources <server-command> # Read a specific resource mcp read-resource <resource-uri> <server-command> # Alternative syntax mcp call resource:<resource-uri> <server-command>
# List available prompts
mcp prompts <server-command>
# Get a prompt (may require arguments)
mcp get-prompt <prompt-name> <server-command>
# With parameters
mcp get-prompt <prompt-name> --params '{"arg": "value"}' <server-command>If using a server frequently during a session:
# Create alias
mcp alias add fs npx -y @modelcontextprotocol/server-filesystem /home/user
# Use alias
mcp tools fs
mcp call read_file --params '{"path": "README.md"}' fs
# List aliases
mcp alias list
# Remove when done
mcp alias remove fsAliases are stored in `~/.mcpt/aliases.json`.
mcp tools --auth-user "username:password" https://api.example.com/mcp
mcp tools --auth-header "Bearer your-token-here" https://api.example.com/mcp
mcp tools docker run -i --rm \ -e GITHUB_PERSONAL_ACCESS_TOKEN="$GITHUB_TOKEN" \ ghcr.io/github/github-mcp-server
mcp tools npx -y @modelcontextprotocol/server-filesystem /tmp
mcp tools https://example.com/mcp
mcp tools http://localhost:3001/sse # Or explicitly: mcp tools --transport sse http://localhost:3001
# Allow access to specific directory mcp tools npx -y @modelcontextprotocol/server-filesystem /path/to/allow
mcp tools npx -y @modelcontextprotocol/server-memory
export GITHUB_PERSONAL_ACCESS_TOKEN="your-token" mcp tools docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
export BRAVE_API_KEY="your-key" mcp tools npx -y @anthropic/mcp-server-brave-search
mcp tools npx -y @anthropic/mcp-server-puppeteer
Before calling tools, run `mcp tools` to understand what's available and the exact
Experimental skills for Claude Code Superpowers - new techniques and tools under active development.
Repo: obra/superpowers-lab
Use when auditing a codebase for semantic duplication - functions that do the same thing but have different names or implementations. Especially useful for…
Use when you need to run interactive CLI tools (vim, git rebase -i, Python REPL, etc.) that require real-time input/output - provides tmux-based approach for…
Create, manage, or connect to a headless Windows 11 VM running in Docker with SSH access. Use when the user wants to spin up, stop, restart, or SSH into a…