Skip to main content

Overview

Claude Code is Anthropic’s CLI for developers. It provides built-in commands for managing MCP servers.
For complete Claude Code MCP documentation, see the official MCP guide.
Set your API key once in your shell profile (~/.bashrc, ~/.zshrc, etc.) to reuse across multiple servers:
export STACKONE_AUTH_TOKEN=$(echo -n "{stackone_api_key}:" | base64)
Reload your shell or run source ~/.zshrc (macOS/Linux) to apply.

Setup

1

Add StackOne MCP Server

Run the following command in your terminal:
claude mcp add \
  --transport http \
  --header "Authorization: Basic $STACKONE_AUTH_TOKEN" \
  gsheets \
  "https://api.stackone.com/mcp?x-account-id={account_id}"
Replace:
  • {account_id}: Your StackOne linked account ID
Use short names for easier CLI usage: gsheets, slack, hubspot-sales. You can prefix with stackone- or s1- if you have other MCP servers, but it’s not required.
You can also pass the account ID as a header:
claude mcp add \
  --transport http \
  --header "Authorization: Basic $STACKONE_AUTH_TOKEN" \
  --header "x-account-id: {account_id}" \
  gsheets \
  https://api.stackone.com/mcp
2

Verify Connection

Check the server status:
claude mcp list
claude mcp list output showing multiple connected MCP servers

Screenshots show 'stackone-' prefix — this is optional.

Within a Claude Code session, use the /mcp command to view server details and available tools:
Claude Code /mcp command showing server details including status, URL, capabilities and tool count
Select “View tools” to browse available operations:
Claude Code /mcp command showing list of available tools for googlesheets server

Adding Multiple Accounts

Add additional servers with distinct names:
# Google Sheets account
claude mcp add \
  --transport http \
  --header "Authorization: Basic $STACKONE_AUTH_TOKEN" \
  gsheets \
  "https://api.stackone.com/mcp?x-account-id={google_sheets_account_id}"

# Slack account
claude mcp add \
  --transport http \
  --header "Authorization: Basic $STACKONE_AUTH_TOKEN" \
  slack \
  "https://api.stackone.com/mcp?x-account-id={slack_account_id}"

Scope Options

Control where the configuration is stored:
ScopeFlagStorage LocationUse Case
Local(default).claude.json in current directoryProject-specific
Project--scope project.mcp.json at project rootTeam collaboration (version controlled)
User--scope user~/.claude.jsonPersonal tools across all projects
Example with user scope (available across all projects):
claude mcp add \
  --transport http \
  --scope user \
  --header "Authorization: Basic $STACKONE_AUTH_TOKEN" \
  gsheets \
  "https://api.stackone.com/mcp?x-account-id={account_id}"

Management Commands

claude mcp list                           # View all configured servers
claude mcp get gsheets     # Show details for specific server
claude mcp remove gsheets  # Remove a server

Programmatic Integration

For programmatic integration with Anthropic’s Claude API, see the Anthropic SDK Framework Guide.

Next Steps