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.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

nexus_understand_architecture

Start here: overview of the whole Nexus instance. Returns object counts, repositories grouped by format and type (hosted, proxy, group), how many repositories each blob store serves, members of every group repository and offline repositories, each with evidence. Use nexus_explain_repository for one repository and nexus_explain_storage_strategy for blob store detail. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unreachable.

nexus_explain_repository

Explain one repository: format, type, the blob store it writes to, the cleanup policies applied to it and the group repositories it belongs to. Returns an object with an 'error' field if no repository has that name; list names with nexus_understand_architecture first. For the components stored in the repository use nexus_audit_repository_content. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unreachable.

ParameterTypeDescription
name *stringExact repository name as shown by nexus_understand_architecture or the nexus://repositories resource, for example 'maven-central'.

nexus_explain_storage_strategy

List every blob store with its type and the repositories that write to it, with relationship evidence. Use it to answer which repositories share storage or which blob store is unused; it does not report disk usage, which the REST API does not expose. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unreachable.

nexus_audit_repository_content

List the components and assets stored in one repository, with size, last modified and last downloaded dates, by paging through the Nexus component API on the server. The result states whether the inventory is complete; when a page or component limit is reached it is marked incomplete and must not be used to decide that content is unused. Use it for cleanup or retirement questions about one repository; use nexus_explain_repository for its configuration. Slow on large repositories: one request per page. Errors if Nexus is not configured, rejects the credentials or is unreachable.

ParameterTypeDescription
repository *stringExact repository name as shown by nexus_understand_architecture or the nexus://repositories resource, for example 'maven-central'.
max_componentsintegerMost components to return (1-5000).
max_pagesintegerMost component pages to read from Nexus (1-100).

nexus_generate_inventory_json

Export repositories, blob stores, cleanup policies and routing rules as one JSON document, plus collector metadata and limitations. Use it to save a baseline, feed another tool, or build a declared state for nexus_compare_live_state_with_declared_state; for a readable summary use nexus_understand_architecture. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unreachable.

nexus_generate_architecture_md

Generate a short Markdown architecture document for the instance: Nexus version, repository and blob store counts, and how many repositories each blob store serves. Use it when the user wants a document to save or share; for questions answered in conversation use nexus_understand_architecture. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unreachable.

nexus_generate_repository_catalog_md

Generate a Markdown catalog with one section per repository: type, format, online status, blob store and the groups it belongs to. Use it for a per-repository reference document; nexus_generate_architecture_md gives the overview. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unreachable.

nexus_detect_architecture_smells

Run rule-based checks and return findings with severity, confidence, affected objects, evidence and a suggested action. Four rules: blob stores no repository uses, group repositories without members, offline repositories and cleanup policies applied to no repository. Returns an empty list when nothing is found. It is not a security audit; for a full Markdown report use nexus_generate_audit_report. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unr…

nexus_generate_audit_report

Generate a configuration audit report: a Markdown document plus structured summary counts, the findings of nexus_detect_architecture_smells, blob store usage and limitations. Use it when the user asks for an audit or a report to keep; use nexus_detect_architecture_smells for findings only. It covers REST-visible configuration, not vulnerabilities or a full security assessment. Errors if Nexus is not configured, rejects the credentials or is unreachable.

nexus_compare_live_state_with_declared_state

Compare live repositories with a declared state, for example one exported from Terraform or Puppet data by the user. Returns repositories missing in Nexus, repositories present only in Nexus, and repositories whose format or type differ. Only name, format and type are compared. Ask the user for the declared state before calling; to produce one from the live instance use nexus_generate_inventory_json. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is…

ParameterTypeDescription
declared_state *objectDeclared configuration as {"repositories": {"<name>": {"format": "maven2", "type": "proxy"}}}. Other keys are ignored.

nexus_openapi_list_operations

List every REST operation the instance publishes in its OpenAPI document, with path, method, operation ID, summary and tags. Use it to check whether this Nexus version or edition offers an endpoint; nexus_generate_capability_map groups the same operations by domain. Errors if Nexus is not configured, rejects the credentials or is unreachable.

nexus_generate_capability_map

Group the instance's REST operations by domain: repositories, blob stores, components and assets, tasks, security, system, lifecycle and other. Use it for an overview of what the API of this Nexus can do; use nexus_openapi_list_operations for the flat list with operation IDs. Errors if Nexus is not configured, rejects the credentials or is unreachable.