mcp
9 questions
- AI
How do I build a small MCP server my team can use?
Use @modelcontextprotocol/sdk with stdio transport for local servers and Streamable HTTP for remote. Tools need a name, a description (what the LLM reads), and a Zod input schema. Wire to Claude Code with `claude mcp add` or a `.mcp.json` entry.
- AI
How do I make Claude Code react to a webhook without losing events?
Channels deliver events only while a session is open: at-most-once, no retry. Run Claude in a persistent terminal or background process, design idempotent handlers, and surface failures via a sender that does its own retry, because the channel layer will not.
- AI
How do I get Claude to react to a Sentry alert while I sleep?
Channels are MCP servers that push events into your already-running Claude Code session — webhooks from CI or Sentry, DMs from your phone, anything that can speak HTTP. Here's the webhook-receiver pattern end to end, plus the sender-gating footgun that bites people.
- AI
How do I let Claude query my Postgres database?
Run a Postgres MCP server through a read-replica with a role that has only the column-level SELECT grants you actually want, plus row-level security on every multi-tenant table. The npm reference server is archived; vendor a known-good copy or write a thin wrapper.
- AI
How do I run a hook around an MCP tool call without breaking the session?
Match `mcp__<server>__<tool>` on PreToolUse / PostToolUse, return structured JSON for clean permission decisions, and put logging or telemetry hooks in async mode so they never block the session.
- AI
How do I use the Claude Code JetBrains plugin?
Install from JetBrains Marketplace, use Cmd+Esc to open and Cmd+Option+K to insert file references. The /ide command connects an external terminal to the running IDE MCP server. WSL2 and remote dev have specific setup steps.
- AI
How do I add, remove, and debug MCP servers from the command line?
claude mcp add takes transport (http/stdio/sse), scope (local/project/user), and env vars. All options must come before the server name. mcpServers in settings.json is silently ignored: use .mcp.json or the CLI instead.
- AI
Should this be a skill, a plugin, a subagent, or an MCP server?
Skills are reusable prompts. Subagents are isolated research workers. MCP servers are persistent stateful tools. Plugins bundle the three for distribution. Pick by asking which property you actually need: persistence, isolation, or reusability.
- AI
Should I use the Claude Code VS Code extension or run the CLI in the integrated terminal?
The VS Code extension adds graphical diffs, a plugin manager, and a Remote tab for cloud sessions. The CLI keeps full tab completion, bash shortcuts, and every command. Run both at once: the extension connects to whatever the CLI starts.