Sonatype Nexus

v0.2.1
io.github.oomchiller/nexus-mcp-server Checked 1 day ago Published 29 days ago

Read-only-first Sonatype Nexus Repository 3 inspection, audit and documentation.

Values you need

VariableWhat it is
NEXUS_URLrequired Nexus base URL, for example https://nexus.example.com
NEXUS_USERNAMEoptional Nexus user; a read-only account is recommended
NEXUS_PASSWORDoptional secret Password for NEXUS_USERNAME
NEXUS_VERIFY_TLSoptional Verify the Nexus TLS certificate Default: true
NEXUS_MCP_MODEoptional readonly, audit or admin Default: readonly
NEXUS_MCP_ENABLE_WRITE_TOOLSoptional With admin mode, list and allow repository deletion and task runs Default: false
NEXUS_MCP_ENABLE_RAW_APIoptional List the nexus_api_call tool for REST paths under /service/rest/ Default: false

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add nexus-mcp-server -e 'NEXUS_URL=<NEXUS_URL>' -- docker run -i --rm -e NEXUS_URL ghcr.io/oomchiller/nexus-mcp-server:0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "nexus-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "NEXUS_URL",
        "ghcr.io/oomchiller/nexus-mcp-server:0.2.1"
      ],
      "command": "docker",
      "env": {
        "NEXUS_URL": "<NEXUS_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "nexus-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "NEXUS_URL",
        "ghcr.io/oomchiller/nexus-mcp-server:0.2.1"
      ],
      "command": "docker",
      "env": {
        "NEXUS_URL": "<NEXUS_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NEXUS_URL",
      "id": "nexus-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "nexus-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "NEXUS_URL",
        "ghcr.io/oomchiller/nexus-mcp-server:0.2.1"
      ],
      "command": "docker",
      "env": {
        "NEXUS_URL": "${input:nexus-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.nexus-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "-e", "NEXUS_URL", "ghcr.io/oomchiller/nexus-mcp-server:0.2.1"]
env = { "NEXUS_URL" = "<NEXUS_URL>" }

For AI agents

  1. Ask the user for: NEXUS_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: nexus_understand_architecture, nexus_explain_repository, nexus_explain_storage_strategy, nexus_audit_repository_content, nexus_generate_inventory_json, nexus_generate_architecture_md, nexus_generate_repository_catalog_md, nexus_detect_architecture_smells, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json