Skip to content

About

The official Judgment plugin for Claude Code and Codex: MCP server + skills for tracing, evals, and agent monitoring

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Judgment plugin

The official Judgment plugin for Cursor, Claude Code, and Codex. One repo installs:

  1. The Judgment MCP server at https://mcp.judgmentlabs.ai: read Issues, traces, judges, labels, datasets, and test runs from your editor. Trace queries go through discover_schema and sql_query. The same server can read current docs with search_docs and read_doc_page, and server procedures with get_skill.

  2. Skills under skills/. Each skill is a SKILL.md that points at the docs:

    Skill When to use it
    judgment-setup Integrate Judgment, add tracing, and check first traces and trace health.
    judgment-mcp Query traces and other live project data from the editor.
    judgment-issues Work an open Issue, a Fix with handoff, or a failure cited in traces.
    judgment-judges-and-tests Create judges, use labels as indexes, build datasets, and run test suites.

Full tool list: MCP tools. Connect and auth: Connect your coding agent.

Install

Cursor

Install this Git repository so Cursor loads the skills and the MCP server together.

Team marketplace

On Teams and Enterprise, an admin adds the marketplace:

  1. Open the Cursor dashboard, then Plugins & MCPs.
  2. Under Team Marketplaces, select Add Marketplace.
  3. Select Import from Repo and paste https://github.com/JudgmentLabs/judgment-plugin.
  4. Add the judgment plugin. Set installation to Default Off, Default On, or Required.
  5. Save. Turn on Auto Refresh if you want pushes to update the marketplace.

With Default Off, developers open Customize and install judgment. Default On and Required install it for them. Each developer then opens the judgment MCP server and completes Sign in in the browser.

Your own Cursor

In agent chat, run:

/add-plugin https://github.com/JudgmentLabs/judgment-plugin

Install judgment from Customize, then Sign in on the judgment MCP server.

Local checkout

Copy this repo to ~/.cursor/plugins/local/judgment, then run Developer: Reload Window. On Enterprise, an admin turns on Allow Local Plugin Imports under Dashboard > Settings > Security & Identity > Marketplace and Plugins. Use a real copy, because a symlink loads only when its target stays inside ~/.cursor/plugins/local.

Claude Code

claude plugin marketplace add JudgmentLabs/judgment-plugin
claude plugin install judgment@judgment-plugin

Start a new session, run /mcp, select plugin:judgment:judgment, and select Authenticate.

If you previously added the Judgment MCP by hand, remove it so you don't end up with two servers:

claude mcp remove judgment
claude mcp remove judgment-mcp

Codex

codex plugin marketplace add JudgmentLabs/judgment-plugin

Open /plugins in Codex, select the judgment marketplace, and select Install plugin. To install from the shell instead, run codex plugin add judgment@judgment. Start a new thread, then sign in:

codex mcp login judgment

Authentication

The shipped .mcp.json contains only the production server URL. OAuth is the way to sign in. On first use the client opens a browser, you authorize Judgment, and the client stores the access token. No API key is committed in this repo.

During OAuth, select the organization and leave Project set to All Projects in This Organization. A project-specific grant hides cross-project discovery tools.

API key when OAuth is unavailable

Use a personal API key from Settings > Personal API Keys. MCP doesn't accept ingest API keys. Copy the organization ID, then export both values:

export JUDGMENT_API_KEY="<your-personal-api-key>"
export JUDGMENT_ORG_ID="<your-organization-id>"

The key has the same permissions as your role. A Viewer key can read. Writes need Developer. The client sends Authorization: Bearer <key> and pins the connection to one organization with X-Organization-Id.

Cursor

Add this to ~/.cursor/mcp.json (every workspace) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "judgment": {
      "url": "https://mcp.judgmentlabs.ai",
      "headers": {
        "Authorization": "Bearer ${env:JUDGMENT_API_KEY}",
        "X-Organization-Id": "${env:JUDGMENT_ORG_ID}"
      }
    }
  }
}

Claude Code

Run:

claude mcp add --transport http judgment https://mcp.judgmentlabs.ai \
  --header "Authorization: Bearer $JUDGMENT_API_KEY" \
  --header "X-Organization-Id: $JUDGMENT_ORG_ID"

Codex

Add this to ~/.codex/config.toml:

[mcp_servers.judgment]
url = "https://mcp.judgmentlabs.ai"
bearer_token_env_var = "JUDGMENT_API_KEY"
env_http_headers = { "X-Organization-Id" = "JUDGMENT_ORG_ID" }

Pin one project

To pin one project as well, add an X-Project-Id header with the project ID. It requires X-Organization-Id. A project-bound connection hides organization-level tools such as list_projects.

Reload the client after changing MCP config. A 401 with an API key usually means JUDGMENT_API_KEY is missing from the environment the client runs in.

Confirm the connection by asking the agent to call list_organizations, then list_projects, and to return the IDs without making changes.

SDK tracing still needs its own organization ingest key (JUDGMENT_API_KEY starting with jli_) and JUDGMENT_ORG_ID. OAuth for MCP doesn't replace those SDK credentials. See Set up tracing.

What's inside

judgment-plugin/
├── .cursor-plugin/plugin.json   # Cursor manifest (skills + .mcp.json)
├── .claude-plugin/              # Claude Code plugin + marketplace
├── .codex-plugin/               # Codex plugin manifest
├── .agents/plugins/             # Codex marketplace manifest
├── .mcp.json                    # Judgment MCP (prod URL), for every client
├── assets/                      # logo and composer icon
└── skills/                      # judgment-setup, judgment-mcp,
                                 # judgment-issues, judgment-judges-and-tests

All three clients load .mcp.json, which points at https://mcp.judgmentlabs.ai.

Each client invokes a skill with its own prefix:

Client Invoke judgment-setup
Claude Code /judgment:judgment-setup
Codex $judgment-setup
Cursor /judgment-setup

The other three skills follow the same pattern. Claude Code namespaces MCP tools as mcp__plugin_judgment_judgment__<tool> (for example mcp__plugin_judgment_judgment__list_issues). Use the full name in permission rules or subagent tool lists.

Local development

claude --plugin-dir .        # load this checkout for one session
claude plugin validate .     # schema-check the Claude Code plugin

License

Apache-2.0. Privacy policy.

About

The official Judgment plugin for Claude Code and Codex: MCP server + skills for tracing, evals, and agent monitoring

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors