@octri/cli
OfficialThis server exposes the Octri CLI as MCP tools, letting an assistant inspect a project's session, specs, SDKs, docs and production monitoring — and push specs, change SDK settings, trigger/retry/wait on builds, and triage issues.
Session & projects — confirm the signed-in user, org, plan, API URL and selected project (
octri_whoami), and list all org projects.Specs — list uploaded OpenAPI specs, push raw spec text (JSON/YAML), import from a public URL, and run the generator's validator first.
SDK config — list the language catalogue and its preference keys, list parsed operations, and read/write SDK Studio settings (writes are revision-checked).
SDK preview — generate one language without spending a build, returning emitted paths and optionally file contents (with a path filter).
Builds — trigger a build for one or more languages, list recent builds, poll a build, block until terminal state, and retry only named/failed languages.
Artifacts & inspection — fetch and extract build artifacts into the local cache, list generated files with sizes, read a single generated file, and diff two builds file-by-file.
Repo links — list per-language GitHub repositories linked to the project's SDKs.
Docs & MCP catalogue — list generated documentation pages, fetch one by slug, and list the MCP tools the project publishes to its own customers.
Monitoring reads — health summary, grouped issues (filterable by status, level, range), a single issue with stack frames and de-minification status, raw logs, per-release error rates/regressions, and slowest transactions plus suspected N+1 patterns.
Issue triage — resolve, ignore or reopen an issue.
Scoping — every tool accepts an optional
project_idthat falls back to the CLI's selected project.Guardrails — only non-destructive operations are exposed; irreversible actions (publishing, deleting) are not in this tool set.
Allows connecting and syncing GitHub repositories with Octri, checking the connection status, and enabling or disabling auto-sync.
@octri/cli
octri is the command line for your Octri project. It does what the dashboard
does: push a spec, build SDKs, publish docs, and work through the errors those
SDKs report from production.
Octri takes an OpenAPI spec and gives you a documentation site, client libraries in ten languages, an MCP server, and monitoring for the API behind all of it. See octri.dev.
Node 20 or newer.
Install
npm install -g @octri/cli
octri --helpRelated MCP server: sufetch
Start here
octri auth login
octri projects use
octri specs push ./openapi.yamlauth login prompts for your email and password, and for your authenticator
code if you have two-factor on. projects use with no argument opens a picker.
specs push waits for the pipeline, not the upload. Your spec parses in about a
second, then the doc pages, search index and changelog get written behind it.
The spinner names the stage it is on.
Build an SDK
octri sdk audit # what is costing you, scored
octri sdk build --lang go,typescript --downloadIn a terminal, sdk build draws a lane per language and repaints it through
generating, verifying, packaging, installing, ready. Piped or under
CI it prints append-only lines instead, and exits non-zero if any language
fails, so it works as a build step with no extra flags.
sdk audit scores the spec and marks which findings the generator can fix on
its own. octri sdk audit apply <key> writes one in.
For a look at real generator output without spending a build:
octri sdk preview --lang go
octri sdk preview --lang go --show client.goPublish docs
octri docs versions publish <specId>
octri docs versions label <specId> "Stable"
octri docs domain set docs.example.comdocs domain prints the CNAME and TXT records to create, then docs domain verify checks them.
The site's structure is drafted like it is in the API Studio. Redirects, the home page and draft endpoints wait for a publish; nav buttons apply on save:
octri docs redirects add /old-guide /guides/install
octri docs home set <guideId>
octri docs nav publish
octri docs endpoints add POST /refunds --summary "Refund a payment"
octri docs endpoints publish
octri docs components push ./components/Banner.jsx
octri docs buttons add "Sign up" https://app.example.com --style primaryA component file holds the markup alone: one root element, HTML attribute
names (class, not className), and props written as {name}.
The sidebar itself round-trips through a file, and is drafted like the rest:
octri docs nav --json > nav.json
octri docs nav set nav.json
octri docs nav publishAppearance, SEO, social links, page feedback, the API playground and custom
code have no draft: each set is live when it returns. Keys are spelled as in
the API, @file reads a value from a file, and an empty value clears a link:
octri docs theme set primaryColor=#ff6a00 colorScheme=dark codeTheme=nord
octri docs seo set metaDescription="Payments API reference" indexable=true
octri docs socials set github=https://github.com/acme x=
octri docs feedback on
octri docs playground set enabled=true allowedOrigins=https://acme.com
octri docs custom-code set css=@docs.css enabled=trueIn Git Bash on Windows, a lone argument starting with / is rewritten into a
Windows path before the CLI sees it. Set MSYS_NO_PATHCONV=1, or use
PowerShell, for commands that take docs paths.
Monitoring
Reads and triage run on your session, so they need nothing but a login:
octri monitoring summary
octri monitoring issues --status unresolved
octri monitoring issue <id>
octri monitoring resolve <id>monitoring issue prints the stack and marks which frames resolved against
uploaded source maps. When none of them did, the release those errors came from
has no symbols, and the CLI says so.
The two upload commands work differently. They talk to the monitoring service directly with an ingest token, because a CI job has one secret and no way to log in:
# CI
octri monitoring sourcemaps upload ./dist \
--url "$MONITORING_URL" --token "$MONITORING_TOKEN" \
--environment "$MONITORING_ENVIRONMENT" --release "$GIT_SHA"
# your own machine, already signed in
octri monitoring sourcemaps upload ./distRun octri monitoring config for the three values to store as CI secrets. The
release you upload under has to equal the release your SDK reports at runtime,
or the service has nothing to pair a trace with.
Commands
Group | What |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Run octri <group> --help for one group on its own.
Global flags: --project <id>, --profile <name>, --api-url <url>, --json,
--quiet, --plain, --no-color.
Output
Mode | When | What you get |
Interactive | A terminal | Colour, spinners, live build lanes, tables |
Plain | Piped, or | Append-only lines, no escape sequences |
| You ask for it | One JSON document on stdout, errors on stderr |
--json is the one to script against:
octri sdk builds --json | jq '.[0].status'
octri monitoring issues --status unresolved --json | jq 'length'NO_COLOR and FORCE_COLOR are both honoured.
Configuration
State lives in ~/.octri/config.json, mode 0600, since it holds session
tokens. OCTRI_CONFIG_DIR moves it.
Profiles keep environments side by side:
octri config use prod --api-url api.octri.dev
octri config set defaultLanguages go,rust,swiftEvery value resolves flag first, then environment, then the stored profile.
Variable | Effect |
| Profile to use |
| API root ( |
| Bearer token, bypassing the stored session |
| API key for the public routes |
| Default project |
| Where config and the artifact cache live |
| Print stack traces on failure |
Behind a proxy
The CLI and octri mcp serve read the standard proxy variables, in upper or
lower case, with no extra Node flag. https:// requests use HTTPS_PROXY, or
HTTP_PROXY when that is the only one set. Hosts listed in NO_PROXY, and
their subdomains, connect directly; * turns the proxy off.
export HTTPS_PROXY=http://user:password@proxy.internal:3128
export NO_PROXY=localhost,127.0.0.1,corp.example
octri specs push ./openapi.yamlIf the proxy inspects TLS with its own certificate authority, point Node at
that CA with NODE_EXTRA_CA_CERTS=/path/to/ca.pem.
MCP clients usually start servers with a minimal environment, so set these in
the server's env block rather than relying on your shell.
MCP server
octri mcp serveThis speaks MCP over stdio and offers the same commands as typed tools. An assistant can push a spec, wait for the build, read the generated Go, and then read the production error that build caused.
To add it to Cursor or VS Code in one click, through npx so no global install
is needed:
The server uses the profile from octri auth login, so sign in first, or set
OCTRI_API_KEY in its environment. An API key reaches the public routes only:
the docs, webhook and MCP-management tools need the signed-in profile. Listed
in the official MCP Registry as dev.octri/cli.
// Claude Desktop / Cursor
{
"mcpServers": {
"octri": {
"command": "octri",
"args": ["mcp", "serve"]
}
}
}Credentials come from your stored profile and the assistant never sees them. Reads are open. The operations you cannot take back are refused unless you start the server with the flag for them:
octri mcp serve --allow-publish # publishing SDKs, your MCP package, or the drafted docs nav
octri mcp serve --allow-delete # deleting specs, components or webhooksTool failures come back as tool results rather than protocol errors, so an assistant can read the message and correct itself.
Notes
Build progress is polled, not streamed. The
/ws/sdksocket authenticates from a header or cookie, which Node's built-inWebSocketcannot set, and a WebSocket dependency would buy about a second of latency on a build that takes minutes.Artifact archives are extracted by hand-rolled
tarandzipreaders, so neither binary needs to be installed. Both refuse entries that would write outside the destination directory.@modelcontextprotocol/sdkis the only runtime dependency. Colour, spinners, progress bars, tables and prompts are all local.
The rest of Octri
Product | What it does |
Your OpenAPI spec becomes a hosted documentation site with a live request playground, editable page by page. | |
The same spec becomes client libraries for ten languages, versioned and released together. | |
Your endpoints and docs become tools an AI assistant can call, generated from the same spec. | |
Errors, traces, uptime and releases for the API, joined to the SDK calls that reached it. |
Monitoring runtimes
Node · Python · Go · Ruby · Rust · PHP · Java · Kotlin · Swift · Dart
Documentation · Pricing · Changelog
MIT licensed.
Available Tools
31 toolsoctri_diff_buildsA
Compare two fetched builds file-by-file per language: which emitted files were added, removed or changed. The primary way to judge a generator change.
Inputs: to_build_id (required), from_build_id (required), language, project_id.
octri_fetch_artifactsB
Download and extract a build's artifacts into the local cache so their files can be listed and read. Returns per-language file counts and a content fingerprint.
Inputs: build_id (required), languages, project_id.
octri_get_buildB
One build's current state, including each language's lifecycle phase and any failure message.
Inputs: build_id (required), project_id.
octri_get_doc_pageC
One documentation page by slug.
Inputs: slug (required), project_id.
octri_get_issueC
One issue with its stack frames and recent events. A frame with resolved=true was de-minified against an uploaded source map; if none are, the symbols for that release were never uploaded.
Inputs: issue_id (required), project_id.
octri_get_sdk_settingsA
The project's persisted SDK Studio settings, per-endpoint overrides, revision, and last published release. The revision is required to write settings back.
Inputs: project_id.
octri_import_spec_urlC
Import an OpenAPI spec from a public URL.
Inputs: url (required), project_id.
octri_list_buildsC
Recent SDK builds with per-language status.
Inputs: page, project_id.
octri_list_doc_pagesC
Documentation pages generated for the project.
Inputs: project_id.
octri_list_generated_filesA
List the files of a previously fetched build+language, with sizes. Call octri_fetch_artifacts first.
Inputs: build_id (required), language (required), project_id.
octri_list_issuesB
Grouped production errors, newest first. Each issue has an id usable with octri_get_issue.
Inputs: level, limit, range, status, +1 more.
octri_list_languagesB
The SDK generator's language catalogue and the preference keys each language accepts.
Inputs: project_id.
octri_list_mcp_toolsC
The MCP tool catalogue this project publishes to its own customers, derived from its SDK config.
Inputs: project_id.
octri_list_operationsB
Every operation the parser found in the current spec, with method, path, operationId and deprecation, the list the SDK Studio renders.
Inputs: project_id.
octri_list_projectsC
All projects in the organisation, with ids.
Inputs: project_id.
octri_list_sdk_reposC
Per-language GitHub repositories linked to the project's SDKs.
Inputs: project_id.
octri_list_specsC
OpenAPI specs uploaded to a project, newest first.
Inputs: project_id.
octri_monitoring_performanceC
Slowest transactions (p50/p95) and suspected N+1 query patterns for the project.
Inputs: range, project_id.
octri_monitoring_releasesB
Error rate, new issues and regressions per release. This is how you tell whether a deploy made things worse.
Inputs: range, project_id.
octri_monitoring_summaryA
Production health for the project: event count, error count, error rate and distinct issues over a window. Call this before reading issues. It tells you whether there is anything to look at.
Inputs: range, project_id.
octri_preview_sdkA
Generate one language WITHOUT spending a build, and return the emitted file paths (and optionally contents). This is the fast loop for generator changes.
Inputs: language (required), project_id, path_filter, include_content.
octri_push_specB
Upload OpenAPI spec text (JSON or YAML) as the project's new current spec. Returns the created spec id.
Inputs: content (required), project_id.
octri_query_logsB
Raw production events, unaggregated. Use when an issue's grouped view is not enough, e.g. to see every occurrence across releases.
Inputs: level, limit, query, range, +1 more.
octri_read_generated_fileB
Read one generated file from a fetched build. This is how to inspect what the generator actually emitted.
Inputs: path (required), build_id (required), language (required), max_bytes, +1 more.
octri_retry_buildA
Re-run only the named languages of an existing build, in place. Omit languages to retry exactly the ones that failed.
Inputs: build_id (required), languages, project_id.
octri_set_issue_statusB
Triage an issue: resolve it, ignore it, or reopen it (status unresolved).
Inputs: status (required), issue_id (required), project_id.
octri_set_sdk_settingsA
Write SDK Studio settings. Pass a full settings object (read it first with octri_get_sdk_settings and modify), plus the revision you read. A stale revision is rejected.
Inputs: revision (required), settings (required), version, changelog, +1 more.
octri_trigger_buildA
Queue an SDK build for one or more languages. Returns a build id immediately; poll with octri_get_build or block with octri_wait_for_build.
Inputs: languages (required), version, project_id.
octri_validate_specA
Run the generator's validator against the project's current spec. Cheap; do this before spending a build.
Inputs: project_id.
octri_wait_for_buildA
Block until every language of a build reaches a terminal state, then return the final per-language result. Use after octri_trigger_build.
Inputs: build_id (required), project_id, timeout_seconds.
octri_whoamiA
The signed-in user, org, plan, API URL and currently selected project. Call this first to confirm which environment the session is pointed at.
Inputs: project_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Most tools have crisp, distinct purposes (e.g. preview_sdk vs trigger_build, push_spec vs import_spec_url vs validate_spec). The only mild overlap clusters are the monitoring_* trio and the build lifecycle tools, but their descriptions clearly delineate when to reach for each.
Nearly all tools follow an octri_ + verb_noun snake_case pattern (list_projects, get_build, push_spec, trigger_build). A few deviate by prefixing a namespace noun instead of a verb (octri_monitoring_summary, octri_monitoring_releases, octri_whoami, octri_diff_builds), but the convention stays readable and predictable.
31 tools is on the heavy side and exceeds the comfortable range. The scope is genuinely broad (specs, SDK settings, builds, artifacts, monitoring, docs), so most tools arguably earn their place, but the surface is large enough that selection burden is real.
The surface covers the full lifecycle well: spec ingestion/validation, settings read/write, build trigger/poll/retry/fetch, artifact inspection, monitoring, issues, logs, docs, and MCP discovery. Minor gaps exist (no delete/cleanup for specs or builds, no project creation), but core workflows are complete.
Maintenance
Related MCP Connectors
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server for AI access to Swagger by SmartBear.
Related MCP Servers
- AlicenseAqualityDmaintenanceA clone-and-own MCP server that exposes OpenAPI/Huma contract intelligence to AI agents by turning API specifications into deterministic endpoint metadata, schemas, validation facts, and TypeScript declarations.6MIT
- AlicenseBqualityDmaintenanceMCP server that enables AI assistants to explore and generate code for type-safe OpenAPI clients from various cloud APIs like DigitalOcean, Hetzner Cloud, and Ory.714 npm19MIT
- AlicenseBqualityDmaintenanceComprehensive API development and testing MCP server for Claude Code. Integrates OpenAPI parsing, testing, SDK generation, and documentation generation into Claude workflows.81MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for loading and exploring OpenAPI/Swagger specifications, enabling AI assistants to dynamically browse API contracts by loading specs, searching endpoints, inspecting schemas, and retrieving operations.22 npm3MIT