artifact_connect
Establishes an authenticated named session with Sonatype Nexus 3 or JFrog Artifactory, verifies registry connectivity and credentials, and caches them locally before running artifact workflows.
Instructions
Connect to Sonatype Nexus 3 or JFrog Artifactory and create a named session.
Probes registry system status and version to verify connectivity and credentials. Credentials are automatically cached to ~/.artifact-mcp-cache/credentials.json.
Purpose: Establish an authenticated session before calling any registry tool. When to Use: At the start of an artifact supply chain workflow or to switch between staging/production registries using named sessions. Behavior: Read-Only probe (no artifacts mutated). Side Effects: Caches session credentials locally.
Args: registry_type: 'nexus' (Sonatype Nexus 3) or 'artifactory' (JFrog Artifactory) base_url: Registry base URL (e.g. 'http://localhost:8081' or 'https://myorg.jfrog.io/artifactory') token_or_password: Password, API Token, or Access Token username: Username (e.g. 'admin' or 'ci-agent') session_name: Name for this session, e.g. 'prod', 'staging' (default: 'default')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_url | No | ||
| username | No | ||
| session_name | No | default | |
| registry_type | No | ||
| token_or_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |