Nexara Connect docs0.1.0

stdio clients (nexara mcp-proxy)

Some MCP clients only launch local stdio servers and cannot talk to a remote HTTP server. nexara mcp-proxy is a stdio MCP server that forwards every JSON-RPC message unchanged to the remote /mcp (or /w/<workspace>/mcp) with your agent key.

Install the CLI

The nexara CLI (package nexara-cli, folder cli/) is not published to npm yet. Build it from the repository; it is a single file with no runtime dependencies and needs Node 22:

cd nexara-connect/cli
npm install && npm run build      # writes dist/nexara.js
npm link                          # puts `nexara` on your PATH (or call node /path/to/cli/dist/nexara.js)
nexara login --url https://dev.nexara.ac --key "$NEXARA_KEY"
nexara doctor                     # checks config, /healthz, the key and an MCP initialize

login saves the URL and key to ~/.config/nexara/config.json (mode 0600). NEXARA_URL and NEXARA_KEY in the environment override it.

Configure the client

{
  "mcpServers": {
    "nexara": {
      "command": "nexara",
      "args": ["mcp-proxy"],
      "env": { "NEXARA_URL": "https://dev.nexara.ac", "NEXARA_KEY": "nxc_..." }
    }
  }
}

Leave out env if you ran nexara login. Add "--workspace", "<slug>" to args to pin /w/<slug>/mcp. Codex can use it too: codex mcp add nexara -- nexara mcp-proxy.

The proxy writes diagnostics only to stderr (stdout carries the protocol). If the key is rejected it answers with JSON-RPC error -32001; if the server is unreachable, -32000. The client never hangs.

Other CLI commands

whoami, bundle, search, get, tree, propose, log, capture, inbox, doctor. See cli/README.md for flags and exit codes. Not yet: browser OAuth login, keychain storage, write, archive, sync.

Verify

printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"context_whoami","arguments":{}}}' | nexara mcp-proxy
Generated from connect/stdio.md by docs/site/build.mjs. Edit the Markdown, then rebuild.