Metadata-Version: 2.4
Name: mcp-select
Version: 1.0.3
Summary: CLI for discovering and running MCP Tool Shop tools
Project-URL: Homepage, https://github.com/mcp-tool-shop-org/mcpt
Project-URL: Repository, https://github.com/mcp-tool-shop-org/mcpt
Project-URL: Issues, https://github.com/mcp-tool-shop-org/mcpt/issues
Author-email: mcp-tool-shop <64996768+mcp-tool-shop@users.noreply.github.com>
License-Expression: MIT
License-File: LICENSE
Keywords: cli,discovery,mcp,package-manager,registry,tools
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: platformdirs>=4.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0
Requires-Dist: typer>=0.12
Provides-Extra: dev
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

<div align="center">
  <img src="https://raw.githubusercontent.com/mcp-tool-shop-org/mcpt/main/logo.jpg" alt="MCP Select" width="500" />
</div>

# MCP Select

CLI for discovering and running MCP Tool Shop tools.

> **Install**: `pip install mcp-select` | **Command**: `mcpt`
>
> The official Anthropic `mcp` package exists on PyPI for the Model Context
> Protocol SDK. We use `mcp-select` as the package name to avoid conflicts.
> The CLI command is `mcpt`, and workspace configs use `mcp.yaml` for
> ecosystem compatibility.

## Ecosystem & Backing Registry

`mcpt` is the official client for the **[mcp-tool-registry](https://github.com/mcp-tool-shop-org/mcp-tool-registry)**, the source of truth for the ecosystem.

- **[Public Explorer](https://mcp-tool-shop-org.github.io/mcp-tool-registry/)**: Browse available tools on the web.
- **[Registry Contract](https://github.com/mcp-tool-shop-org/mcp-tool-registry/blob/main/docs/contract.md)**: Understanding stability and metadata guarantees.
- **[Submit a Tool](https://github.com/mcp-tool-shop-org/mcp-tool-registry/issues/new/choose)**: Contribute to the ecosystem.

## Core Philosophy

- **Canonical Files**: We trust the `registry.index.json` artifact as the single source of truth.
- **Rules-Generated Bundles**: Trust tiers are derived from objective rules (Core, Ops, Agents, Evaluation), not manual curation.
- **Least Privilege**: Tools default to zero capability; access is always **opt-in**.

## Registry Compatibility

`mcpt` follows the MCP Tool Registry **v1.x** contract.

- **Supported Artifacts**: `registry.index.json` (v1 schema)
- **Pinning**: Use `mcpt init --registry-ref <git-tag>` to pin to a stable registry version (e.g., `v1.0.0`).

## Installation

```bash
pip install mcp-select
```

## Getting Started

```bash
mcpt list --refresh        # Fetch registry and see available tools
mcpt init                  # Create mcp.yaml in current directory
mcpt add file-compass      # Add a tool to your workspace
mcpt install file-compass  # Install via pip
mcpt run file-compass      # Stub run (safe by default)
```

## Usage

### List available tools

```bash
mcpt list
mcpt list --json
mcpt list --refresh  # Force refresh from remote
```

### Get tool info

```bash
mcpt info <tool-id>
mcpt info file-compass --json
```

### Search for tools

```bash
mcpt search filesystem
mcpt search agents --json
```

### Initialize a workspace

```bash
mcpt init              # Create mcp.yaml in current directory
mcpt init ./my-project # Create in specific directory
mcpt init --force      # Overwrite existing
```

### Add/remove tools from workspace

```bash
mcpt add file-compass
mcpt add tool-compass --ref v1.0.0
mcpt remove file-compass
```

### Install tools

```bash
mcpt install file-compass
mcpt install tool-compass --ref main
mcpt install dev-brain --venv ./venv
```

### Run tools

```bash
mcpt run file-compass           # Stub mode (shows plan)
mcpt run file-compass --real    # Actually execute
mcpt run file-compass -- --help # Pass args to tool
```

### Check configuration

```bash
mcpt doctor
```

## Configuration

MCPT uses `mcp.yaml` for workspace configuration:

```yaml
schema_version: "0.1"
name: "my-mcp-workspace"

registry:
  source: "https://github.com/mcp-tool-shop-org/mcp-tool-registry"
  ref: "v0.1.0"

tools:
  - file-compass
  - id: tool-compass
    ref: v1.0.0

run:
  safe_by_default: true
```

## What Does Pinning Mean?

When you set `registry.ref: v0.1.0` in `mcp.yaml`, you're pinning the **registry metadata**, not tool code.

- **Registry ref** → which version of the tool list you read
- **Tool ref** → pin individual tools with `mcpt add tool-id --ref v1.0.0`

Both matter for reproducibility. Pin the registry for consistent tool discovery, pin tools for consistent behavior.

## Development

```bash
pip install -e ".[dev]"
pytest
```
