MCP-Client verbinden
Gleicher Endpoint überall. VS Code nutzt den JSON-Key servers.
onlinesim mcp muss laufen, solange der Client verbunden ist.
Automatisch verbinden (empfohlen)
Schreibt den HTTP-Endpunkt in IDE-Konfigdateien. Startet den MCP-Server nicht.
Bash
onlinesim mcp install
onlinesim mcp install --client cursor --global
onlinesim mcp install --client vscode --project
onlinesim mcp install --client claude --project
onlinesim mcp install --client all --project
onlinesim mcp install --client codex --globalFlags: --dir <Projekt>, --url <Endpoint>, --force (bestehenden onlinesim-Eintrag überschreiben).
Cursor
Dieses JSON in Cursor mcp.json legen:
~/.cursor/mcp.json— global (alle Projekte).cursor/mcp.json— dieses Projekt
JSON
{
"mcpServers": {
"onlinesim": {
"type": "http",
"url": "http://127.0.0.1:8787/mcp"
}
}
}Claude Code
Claude Code CLI-Scopes:
Bash
claude mcp add --scope user --transport http onlinesim http://127.0.0.1:8787/mcp
claude mcp add --scope project --transport http onlinesim http://127.0.0.1:8787/mcpOder Projektdatei (gleiches JSON wie Cursor): .mcp.json
VS Code
.vscode/mcp.json — Key ist servers (nicht mcpServers):
JSON
{
"servers": {
"onlinesim": {
"type": "http",
"url": "http://127.0.0.1:8787/mcp"
}
}
}Codex
Bash
codex mcp add onlinesim --url http://127.0.0.1:8787/mcpOder url unter [mcp_servers.onlinesim] in ~/.codex/config.toml.
Claude Desktop
Lokales HTTP braucht eine Bridge:
Bash
npx -y mcp-remote http://127.0.0.1:8787/mcp --transport http-only