{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.ycsmiley/formosa-mcp",
  "slug": "io.github.ycsmiley.formosa-mcp",
  "title": "Formosa MCP — Taiwan data",
  "summary": "Taiwan data for AI agents: THSR/TRA timetables, TWSE/TPEx stocks, invoice lottery, garbage, outages",
  "version": "0.2.0",
  "serverKey": "formosa-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.ycsmiley.formosa-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.ycsmiley.formosa-mcp/install.md",
  "trust": {
    "score": 92,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T17:03:38.408808823Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "formosa-mcp@0.2.0",
        "--toolsets",
        "invoice,stock,garbage,outage"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add formosa-mcp -- npx -y formosa-mcp@0.2.0 --toolsets invoice,stock,garbage,outage"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"formosa-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"formosa-mcp@0.2.0\",\n        \"--toolsets\",\n        \"invoice,stock,garbage,outage\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"formosa-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"formosa-mcp@0.2.0\",\n        \"--toolsets\",\n        \"invoice,stock,garbage,outage\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"formosa-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"formosa-mcp@0.2.0\",\n        \"--toolsets\",\n        \"invoice,stock,garbage,outage\"\n      ],\n      \"command\": \"npx\",\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.formosa-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"formosa-mcp@0.2.0\", \"--toolsets\", \"invoice,stock,garbage,outage\"]"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://formosa-mcp.ycsmiley.workers.dev/mcp",
      "headers": [
        {
          "name": "X-TDX-Client-Id",
          "description": "Optional: your own TDX (Taiwan MOTC Transport Data eXchange) client ID for THSR/TRA tools. Not stored or logged."
        },
        {
          "name": "X-TDX-Client-Secret",
          "description": "Optional: your own TDX client secret, sent together with X-TDX-Client-Id. Not stored or logged.",
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http formosa-mcp https://formosa-mcp.ycsmiley.workers.dev/mcp --header 'X-TDX-Client-Id: <X-TDX-Client-Id>' --header 'X-TDX-Client-Secret: <X-TDX-Client-Secret>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"formosa-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://formosa-mcp.ycsmiley.workers.dev/mcp\",\n        \"--header\",\n        \"X-TDX-Client-Id: <X-TDX-Client-Id>\",\n        \"--header\",\n        \"X-TDX-Client-Secret: <X-TDX-Client-Secret>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"formosa-mcp\": {\n      \"headers\": {\n        \"X-TDX-Client-Id\": \"<X-TDX-Client-Id>\",\n        \"X-TDX-Client-Secret\": \"<X-TDX-Client-Secret>\"\n      },\n      \"url\": \"https://formosa-mcp.ycsmiley.workers.dev/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"formosa-mcp\": {\n      \"headers\": {\n        \"X-TDX-Client-Id\": \"<X-TDX-Client-Id>\",\n        \"X-TDX-Client-Secret\": \"<X-TDX-Client-Secret>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://formosa-mcp.ycsmiley.workers.dev/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.formosa-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://formosa-mcp.ycsmiley.workers.dev/mcp\", \"--header\", \"X-TDX-Client-Id: <X-TDX-Client-Id>\", \"--header\", \"X-TDX-Client-Secret: <X-TDX-Client-Secret>\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "TDX_CLIENT_ID",
      "required": false,
      "secret": false,
      "description": "Only needed for the rail toolset.",
      "help": "Only needed for the rail toolset.",
      "placeholder": "<TDX_CLIENT_ID>"
    },
    {
      "name": "TDX_CLIENT_SECRET",
      "required": false,
      "secret": true,
      "description": "Only needed for the rail toolset.",
      "help": "Only needed for the rail toolset.",
      "placeholder": "<TDX_CLIENT_SECRET>"
    }
  ],
  "expectedTools": [
    "invoice_get_winning_numbers",
    "invoice_check",
    "stock_quote",
    "stock_dividends",
    "garbage_schedule",
    "outage_schedule"
  ],
  "agentSteps": [
    "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).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: invoice_get_winning_numbers, invoice_check, stock_quote, stock_dividends, garbage_schedule, outage_schedule.",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T17:03:38.408808823Z"
}
