Chuyển đến nội dung chính
Checked against Claude Code 2.1.329 on 2026-11-20. Command syntax changes between versions: if a command fails, use the JSON below.

Steps

  1. Put the key in your shell profile so it survives restarts (an export typed inside an agent’s tool shell is lost when that shell exits, and the client then gets 401):
    Open a new terminal and start claude from there.
  2. Add the server:
    Single quotes keep ${SOCIAL_MONITOR_KEY} unexpanded, so the key is not written to the config file. Claude Code expands it at connect time. claude mcp add does not validate credentials: a wrong key only fails later.
  3. Restart the session, then verify:
    Inside a session run /mcp. social-monitor must show Connected.
  4. Ask the agent to call list_channels and report the channels.

Scope

If the command fails: JSON config

Add to .mcp.json (project) or ~/.claude.json:

Troubleshooting