Skip to content
VS Code

Rohan Protocol MCP for VS Code

io.github.rohan-protocol/mcp

Stateless zero-knowledge trust gateway and WebMCP shield for AI agents on Midnight.

client:VS Code transport:stdio runtime:npm

Install Rohan Protocol MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "rohan-agent-private-key",
      "description": "ROHAN_AGENT_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "rohan-contract-address",
      "description": "ROHAN_CONTRACT_ADDRESS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "rohan-relayer-url",
      "description": "ROHAN_RELAYER_URL",
      "password": true
    }
  ],
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@rohan-protocol/mcp"
      ],
      "env": {
        "ROHAN_AGENT_PRIVATE_KEY": "${input:rohan-agent-private-key}",
        "ROHAN_CONTRACT_ADDRESS": "${input:rohan-contract-address}",
        "ROHAN_RELAYER_URL": "${input:rohan-relayer-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Rohan Protocol MCP in other clients