MCP server

rorix mcp runs a Model Context Protocol server over stdio so an assistant (Claude Code, Claude Desktop, Cursor, VS Code and other MCP clients) can audit dependency manifests, generate SBOMs, list license exceptions, start project scans and authorized pentests, inspect pentest runs and read a project's insights: the score breakdown, findings, ranked next actions, release-note evidence for upgrades and advisory usage correlation.

The local server is part of the Node.js Rorix CLI (the cli/ package, which also provides rorix insights and rorix findings), not the .NET global tool. It needs Node.js 18 or later. A remote, read-only endpoint needs nothing installed.

What it can and cannot do

  • Some tools change data. update_project_policy replaces the repository policy and opens a pull request by default (or commits when explicitly requested). scan_project starts and saves a scan; start_pentest starts a pentest on an existing verified target. Fix pull requests and license exception tools also modify project data. Manifest audits and SBOM generation send the supplied manifest contents to the configured Rorix server. Tools call the existing Rorix API; the MCP server never connects to a database.
  • Your credential, your tenant. Authenticated requests use your configured API key; SBOM generation is a public endpoint. The API checks that the project belongs to the key's organisation; a project or scan from another organisation fails with the API's own 404/403, exactly as it does for the CLI.
  • Package text is untrusted. Tool results are data. Package names, advisory summaries and release-note excerpts come from upstream registries and repositories; each tool description tells the assistant not to follow them as instructions.

Setup

Create a dashboard API key with API read scope (plus mcp.read and/or mcp.write for project management, and pentest.run and/or pentest.read for pentest tools), then give it to the server through the environment (or run rorix login <key> with the Node CLI, which stores it in ~/.config/rorix/config.json).

| Variable | Purpose | | --- | --- | | RORIX_API_KEY | API key (rxk_…) with the scopes required by the tools you use | | RORIX_PROJECT_ID | Default project, used when a tool call does not pass projectId | | RORIX_URL | Base URL (default https://rorix.io) |

Claude Code

claude mcp add rorix \
  --env RORIX_API_KEY=rxk_your_api_key \
  --env RORIX_PROJECT_ID=your-project-id \
  -- node /path/to/rorix/cli/bin/rorix.mjs mcp

Other MCP clients

Most clients (Claude Desktop, Cursor, VS Code) accept the same mcpServers entry:

{
  "mcpServers": {
    "rorix": {
      "command": "node",
      "args": ["/path/to/rorix/cli/bin/rorix.mjs", "mcp"],
      "env": {
        "RORIX_API_KEY": "rxk_your_api_key",
        "RORIX_PROJECT_ID": "your-project-id"
      }
    }
  }
}

Install the CLI's dependencies once with npm install in the cli/ folder.

Remote server (HTTP)

Connect to the Rorix MCP server over Streamable HTTP at this URL:

https://rorix.io/api/mcp

The remote endpoint serves four read-only tools: get_organization, list_projects, list_project_scans and get_vulnerability_summary. For list_project_scans, provide the project UUID and optionally a scan UUID.

Every request must carry Authorization: Bearer <key> with a Rorix API key that has the mcp.read scope and was created by a user in the organization. Cookies and other credentials are not accepted. Each tool also checks its current Authaz permission (projects:read, scans:read or vulnerabilities:read), as listed below. The endpoint is stateless and answers with JSON; responses are not cached.

Claude Code (HTTP)

Set RORIX_API_KEY in the environment where Claude Code runs. Register the endpoint using a reference to that variable:

claude mcp add-json rorix '{"type":"http","url":"https://rorix.io/api/mcp","headers":{"Authorization":"Bearer ${RORIX_API_KEY}"}}'

Or, in a project .mcp.json, where Claude Code expands ${RORIX_API_KEY} from the environment when it starts:

{
  "mcpServers": {
    "rorix": {
      "type": "http",
      "url": "https://rorix.io/api/mcp",
      "headers": { "Authorization": "Bearer ${RORIX_API_KEY}" }
    }
  }
}

Authorization

Management-scoped keys are tied to their creator’s Authaz identity. Every management request checks the current permission in the key’s organization; a revoked permission or unavailable authorization service denies the request. Existing keys must be replaced to use these scopes. The API key creator must also have a GitHub connection to read or change a repository policy.

Tools

| Tool | Arguments | Returns | | --- | --- | --- | | create_fix_pull_request | projectId?, packages | Fix packages: with the GitHub App, the same validated run as the Fix button (returns jobId, statusUrl); without it, a draft manifest-only PR. Reuses an open Rorix PR. Requires mcp.write and projects:scan | | create_license_exception | projectId?, ecosystem, packageId, versionRange, license, reason, evidence, expiresAt | Accept a license exception; requires mcp.write and suppressions:create | | revoke_license_exception | projectId?, exceptionId | Revoke an exception; requires mcp.write and suppressions:delete | | list_projects | — | List the key organization’s projects; requires mcp.read and projects:read | | get_project_policy | projectId? | Read repository policy; requires mcp.read and settings:read | | update_project_policy | projectId?, policies, delivery? | Replace policy via pull request (default) or commit; requires mcp.write and settings:update | | start_pentest | targetId, authorizationConfirmed, idempotencyKey, profileId?, ref? | Start an authorized safe pentest on a verified target; requires pentest.run | | get_pentest_run | runId, threshold?, enforce? | Status, coverage, report and CI policy; requires pentest.read | | scan_project | projectId? | Starts and saves a project scan; requires an API key and the key creator’s GitHub connection | | audit_manifest | content, filename, targetFramework?, licensePolicy? | Vulnerability and license audit; requires an API key | | generate_sbom | content, filename, format?, projectName? | CycloneDX or SPDX document | | list_license_exceptions | projectId?, activeOnly? | Project license exception history, or active exceptions only | | get_insights | projectId?, scan? | The full insights response (schema version 3), unchanged | | list_findings | projectId?, scan?, kind? | {schemaVersion, scan, findings}; kind is a comma-separated list of vulnerability, license, deprecated, outdated | | get_finding | projectId?, scan?, findingId | {schemaVersion, scan, finding} for one stable finding id | | next_actions | projectId?, scan? | {schemaVersion, scan, nextActions}, ranked by expected score gain |

scan is latest (default) or a scan ID. Results are returned both as JSON text and as structured content.

Registry, Code Security, and organization tools

The following tools also use the key's organization. Management operations require mcp.read or mcp.write and the current Authaz permission shown below. Mutations run the same validation and admission workflows as the dashboard.

| Tools | Permission | Purpose | | --- | --- | --- | | list_project_scans, export_project_sbom | scans:read / scans:export | Read saved scans and export an SBOM from a saved inventory | | get_dependency_graph, get_upgrade_preview | projects:read | Inspect dependency relationships and preview updates | | get_vulnerability_summary | vulnerabilities:read | Read the organization vulnerability summary | | start_remediation, get_remediation_status | projects:scan / projects:read | Start remediation and inspect jobs, proposals and blockers | | list_package_risks | settings:read | Inspect package risk evidence and policy | | start_package_static_analysis, get_package_static_analysis | settings:update / settings:read | Queue and follow static analysis of an exact public npm or NuGet package without registry approval or publication | | start_package_static_analysis_batch, start_package_static_analysis_file_batch, wait_package_static_analysis | settings:update / settings:read | Queue up to five public packages or local archives with per-item results, or wait up to 60 seconds for signed evidence | | cancel_package_static_analysis, delete_package_static_analysis, get_package_static_advisories | settings:update / settings:read | Cancel or delete isolated analyses, or explicitly authorize an external OSV lookup | | update_package_risk_policy, create_package_risk_exception, revoke_package_risk_exception | settings:update | Manage risk policy and temporary exceptions; confirmed malware cannot be excepted | | get_npm_publication | settings:read | Inspect an npm publication and its evidence | | withdraw_npm_publication, retry_npm_publications, retry_nuget_admission | settings:update | Withdraw or retry registry admissions | | get_organization | projects:read | Read the key's organization | | get_registry_overview, get_registry_settings, list_trusted_packages, get_npm_registry | settings:read | Read registry status, settings and approved packages | | update_registry_settings, approve_trusted_package, remove_trusted_package, approve_npm_lockfile | settings:update | Configure the registry and manage approvals | | get_code_analysis_overview, list_code_analysis_runs | code_analysis_runs:read | Read analysis and run status | | start_code_analysis, cancel_code_analysis | code_analysis_runs:start / cancel | Start an idempotent baseline run or cancel a run | | list_code_analysis_findings, get_code_analysis_finding | code_analysis_findings:read | Read findings and occurrences | | triage_code_analysis_finding | code_analysis_findings:triage | Change finding state or adjudicate an occurrence | | get_code_analysis_settings, update_code_analysis_settings | code_analysis_settings:read / manage | Read or update analysis settings | | get_organization_webhook_secret_status | webhooks:read | Check GitHub webhook secret status | | rotate_organization_webhook_secret, delete_organization_webhook_secret | webhooks:manage | Rotate or remove the GitHub webhook secret |

Rotating a webhook secret returns the new secret in the tool result and requires updating GitHub. The Code Security start tool runs a static baseline for an activated project. The Rorix api.read scope also continues to permit project scans for compatibility with existing CI keys.

For a standalone package analysis, call start_package_static_analysis with ecosystem, name and an exact version, then poll get_package_static_analysis with the returned requestId. The response reports reused: true if an existing workspace request was preserved; it does not imply a fresh scan. The scanner uses static inspection in an isolated sandbox and reports its coverage and limitations in signed evidence.

Use start_package_static_analysis_batch for up to five packages. Each entry is submitted separately and returns its own result or error; ordinary rate limits still apply. wait_package_static_analysis waits for signed evidence or a terminal result and returns timedOut: true when its bounded wait expires, so the same request can be checked again without creating another analysis. Public package submission distinguishes missing packages, oversized artifacts, unverifiable packages and temporary service failures.

Membership, invitations, role administration and ownership transfers still require a dashboard session: Authaz management calls require a human access token and cannot use the MCP API key as one. Assigning a finding to a member likewise requires the dashboard session.

Release-note evidence (upgradeNotes)

Next actions and findings that move a package to a newer version carry an optional upgradeNotes object:

{
  "fromVersion": "7.2.0",
  "toVersion": "10.3.10",
  "majorBump": true,
  "breakingLikely": true,
  "primaryUrl": "https://github.com/isaacs/node-glob/releases/tag/v8.0.0",
  "repositoryUrl": "https://github.com/isaacs/node-glob",
  "releases": [
    { "version": "8.0.0", "url": "https://github.com/isaacs/node-glob/releases/tag/v8.0.0", "source": "github-release", "breaking": true, "excerpt": "BREAKING CHANGES …" }
  ],
  "truncated": false,
  "checkedAt": "2026-11-04T12:00:00.000Z",
  "limitations": []
}

Rorix reads the repository named in the package's registry metadata, then its GitHub Releases (or CHANGELOG.md when it has none), using public unauthenticated requests only. Excerpts are short plain-text lines, never whole documents. breakingLikely is set for a major version step or when release notes name a breaking change. Results are cached for a day; when notes could not be read, limitations says why. rorix insights prints the same evidence as a one-line Breaking changes likely: <link> under each action.

Advisory usage correlation (usage)

When an advisory names the functions or modules it affects, the repository scan searches your source for imports and uses of them and records the result on the vulnerability finding:

{
  "status": "referenced",
  "evidence": [{ "path": "src/render.ts", "line": 4 }],
  "symbols": ["lodash.template"],
  "reason": "Application code references the affected function of lodash (1 place)."
}

status is referenced, not-found (every candidate source file was searched) or unknown (the advisory names no functions, the search was cut short, or the package is only a transitive dependency). Usage is advisory: it never changes the score, policy results, blocking or the order of next actions.

To force a new static inspection of a public package, pass fresh: true to start_package_static_analysis. To inspect a private archive, call start_package_static_analysis_from_file with an absolute local path, ecosystem, name, and exact version; npm accepts .tgz and NuGet accepts .nupkg. The archive is sent to Rorix and must be at most 20 MiB; files larger than 2 MiB are transferred in bounded chunks. Both operations produce a separate request which can be checked with get_package_static_analysis or wait_package_static_analysis. The package identity in the archive is checked against the supplied identity, and mismatches yield partial coverage.

These isolated results contain signed static scanner evidence, not registry admission decisions or vulnerability intelligence, and do not modify registry decisions. Uploaded bytes are held in the database while queued or running and removed from the active record on completion or terminal failure; database backups and logs have their own retention policies. The scanner runs with network access disabled.

For several local archives, use start_package_static_analysis_file_batch with up to five entries. Each succeeds or fails independently. Uploads expire after one hour and are cleaned automatically; at most three uploads may be in progress per organization. Results expose attempts, retry timing and cancellation status. cancel_package_static_analysis cancels queued work or requests that a running sandbox stop; delete_package_static_analysis deletes a terminal isolated result. Terminal results are automatically removed after 30 days. Backups have independent retention.

New scanner evidence includes the package's declared license and direct dependency requirements when available. Its CycloneDX SBOM contains declarations, not resolved or transitive versions; sbomCoverage reports whether the list was truncated. Results also include matches from Rorix's local malware feed when fresh; this feed is not a comprehensive vulnerability database. get_package_static_advisories requires allowExternalLookup: true, which sends the selected package name, version and ecosystem to OSV; the archive itself is never sent. Confirm with the user before authorizing this lookup for a private package.