# Octri CLI

Exposes Octri OpenAPI workflows to AI agents for SDK generation across ten languages, API documentation publishing, and production error monitoring.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 3
- Author: OctriDev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/OctriDev/octri-cli
- Updated: 2026-10-12
- HTML: https://affpapa.org/en/nevibecode/mcp/octri-cli

## What it does

The server runs via `octri mcp serve` through standard I/O. It supplies typed tools covering the Octri API. Agents can submit OpenAPI schema files, inspect audit findings, preview generated code, and trigger SDK compilation for target languages.

Documentation lifecycle and runtime telemetry connect directly to the session. You can publish release versions or view production issue traces with mapped frames. For source mapping to succeed, uploaded symbol releases must match runtime SDK identifiers. Running the tool requires Node 20 or newer.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `OCTRI_API_KEY`, `OCTRI_PROJECT_ID`, `OCTRI_PROFILE`, `HTTPS_PROXY`, `NO_PROXY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env OCTRI_API_KEY=<OCTRI_API_KEY> --env OCTRI_PROJECT_ID=<OCTRI_PROJECT_ID> --env OCTRI_PROFILE=<OCTRI_PROFILE> --env HTTPS_PROXY=<HTTPS_PROXY> --env NO_PROXY=<NO_PROXY> --transport stdio octri-cli -- npx -y @octri/cli
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add octri-cli --env OCTRI_API_KEY=<OCTRI_API_KEY> --env OCTRI_PROJECT_ID=<OCTRI_PROJECT_ID> --env OCTRI_PROFILE=<OCTRI_PROFILE> --env HTTPS_PROXY=<HTTPS_PROXY> --env NO_PROXY=<NO_PROXY> -- npx -y @octri/cli
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "octri-cli": {
            "command": "npx",
            "args": [
                "-y",
                "@octri/cli"
            ],
            "env": {
                "OCTRI_API_KEY": "<OCTRI_API_KEY>",
                "OCTRI_PROJECT_ID": "<OCTRI_PROJECT_ID>",
                "OCTRI_PROFILE": "<OCTRI_PROFILE>",
                "HTTPS_PROXY": "<HTTPS_PROXY>",
                "NO_PROXY": "<NO_PROXY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "octri-cli": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@octri/cli"
            ],
            "env": {
                "OCTRI_API_KEY": "<OCTRI_API_KEY>",
                "OCTRI_PROJECT_ID": "<OCTRI_PROJECT_ID>",
                "OCTRI_PROFILE": "<OCTRI_PROFILE>",
                "HTTPS_PROXY": "<HTTPS_PROXY>",
                "NO_PROXY": "<NO_PROXY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e OCTRI_API_KEY=<OCTRI_API_KEY> -e OCTRI_PROJECT_ID=<OCTRI_PROJECT_ID> -e OCTRI_PROFILE=<OCTRI_PROFILE> -e HTTPS_PROXY=<HTTPS_PROXY> -e NO_PROXY=<NO_PROXY> octri-cli npx -y @octri/cli
```
Replace <…> with your own values

## When to use it
- Upload OpenAPI specs to trigger documentation and SDK builds
- Compile client SDK libraries across multiple languages
- Publish hosted API reference pages with custom domains
- Triage runtime errors reported by client SDKs in production

## Example prompts
- Push openapi.yaml to the project and check build status
- Run an audit on the OpenAPI schema and preview the Go SDK output
- List unresolved production issues from client SDK monitoring

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40459
- [OpenWork MCP Gateway](https://affpapa.org/en/nevibecode/mcp/openwork-mcp-gateway.md) — MCP server · ★ 24271
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18779
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [basebalance.cloud — x402 RPC & MCP gateway](https://affpapa.org/en/nevibecode/mcp/basebalancecloud-x402-rpc-mcp-gateway.md) — MCP server · ★ 7548

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
