mcp-ts-template

v3.0.9
io.github.cyanheads/mcp-ts-template Checked 9 hours ago Published 8 months ago

TypeScript template for building MCP servers with declarative tooling, observability, and auth.

Values you need

VariableWhat it is
MCP_LOG_LEVELoptional Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-ts-template -- npx -y mcp-ts-template@3.0.9 run start:stdio
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-ts-template": {
      "args": [
        "-y",
        "mcp-ts-template@3.0.9",
        "run",
        "start:stdio"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-ts-template": {
      "args": [
        "-y",
        "mcp-ts-template@3.0.9",
        "run",
        "start:stdio"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-ts-template": {
      "args": [
        "-y",
        "mcp-ts-template@3.0.9",
        "run",
        "start:stdio"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-ts-template]
command = "npx"
args = ["-y", "mcp-ts-template@3.0.9", "run", "start:stdio"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: template_cat_fact, template_code_review_sampling, template_echo_message, template_image_test, template_madlibs_elicitation, template_data_explorer, template_async_countdown.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json