Repository avatar
Version Control
v0.0.1
active

circuittwin

ai.circuittwin/circuittwin

Run unmodified embedded firmware on digital twins of MCU boards; read the console and verdict.

Documentation

@circuittwin/mcp

Local stdio Model Context Protocol server for CircuitTwin. Zero runtime dependencies, Node.js 18+.

Connects automatically using whichever mode is available:

  • Local engine mode: If the ct binary is installed (PATH, ~/.local/bin/ct, or %LOCALAPPDATA%\Programs\CircuitTwin\ct.exe), spawns ct mcp serve --allow-cloud for local ELF runs plus cloud suites.
  • Cloud bridge mode: If ct is not installed (or --cloud-only is passed), speaks MCP stdio locally and bridges directly to https://app.circuittwin.ai/mcp.

MCP Client Configuration

Add this entry to your MCP client configuration (Cursor, Windsurf, VS Code, Cline, Zed, Codex, or desktop MCP hosts):

{
  "mcpServers": {
    "circuittwin": {
      "command": "npx",
      "args": ["-y", "@circuittwin/mcp"]
    }
  }
}

Pass --cloud-only to bypass a local ct binary, or --tools all to expose the full cloud toolset (default is --tools core):

{
  "mcpServers": {
    "circuittwin": {
      "command": "npx",
      "args": ["-y", "@circuittwin/mcp", "--cloud-only", "--tools", "core"],
      "env": {
        "CIRCUITTWIN_TOKEN": "ctk_..."
      }
    }
  }
}

Sign In

Authenticate once and save your personal access token to the standard CircuitTwin credentials file:

npx @circuittwin/mcp --login

This opens https://app.circuittwin.ai/app/settings, verifies the ctk_... token against /api/v1/me, and stores it alongside ct login credentials (~/.config/circuittwin/credentials.json on Linux, ~/Library/Application Support/CircuitTwin/credentials.json on macOS, %APPDATA%\CircuitTwin\credentials.json on Windows).

You can also pass a token via environment variable without running --login:

export CIRCUITTWIN_TOKEN="ctk_..."

Desktop Extension Bundle (.mcpb)

Download circuittwin-mcp.mcpb and open it with any MCP desktop host that supports .mcpb bundles. Configure your optional token and server_url in the extension settings, or leave token blank to use saved ct login credentials.

To build the bundle from source:

npm run build:mcpb

CLI Options

circuittwin-mcp [options]

  --login               Sign in and save a personal access token
  --status              Check local ct detection, server URL, and sign-in state
  --local               Require local ct binary (ct mcp serve --allow-cloud)
  --cloud-only          Force HTTPS bridge to the CircuitTwin cloud endpoint
  --no-allow-cloud      When using local ct, run without --allow-cloud
  --server <url>        Server origin (default: CIRCUITTWIN_SERVER or https://app.circuittwin.ai)
  --tools <groups>      Cloud tool group filter (default: core; use "all" for full toolset)
  -v, --version         Print package version
  -h, --help            Show help

Documentation: https://circuittwin.ai/docs/agents

No installation packages available.

Remote