Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

623 B
Raw Blame
"""MCP fixture verifies secrets reach only the connector process."""
import json
import os
import sys
for line in sys.stdin:
    msg = json.loads(line)
    if 'id' not in msg:
        continue
    if os.environ.get('API_KEY') != 'test-private-key':
        print(json.dumps({'jsonrpc':'2.0','id':msg['id'],'error':{'message':'invalid key'}}),flush=True)
        continue
    result = {'protocolVersion':'2025-06-18','capabilities':{'tools':{}},'serverInfo':{'name':'fixture','version':'1'}} if msg['method']=='initialize' else {'tools':[]}
    print(json.dumps({'jsonrpc':'2.0','id':msg['id'],'result':result}),flush=True)