Skip to main content

MCP servers for Yirifi Ops - expose REST APIs as MCP tools for AI assistants

Project description

yirifi-ops-mcp-hub

MCP (Model Context Protocol) servers for Yirifi Ops - expose REST APIs as MCP tools for AI assistants like Claude.

Installation

# Using uvx (recommended - no install needed)
uvx yirifi-ops-mcp-hub --version

# Using pip
pip install yirifi-ops-mcp-hub

# Using uv
uv pip install yirifi-ops-mcp-hub

Optional: TOON Format (Compact Responses)

For optimized token-efficient responses, install toon-format (currently in beta):

# Install from GitHub (recommended for beta)
pip install git+https://github.com/toon-format/toon-python.git

# Or clone and install locally
git clone https://github.com/toon-format/toon-python.git
cd toon-python
uv sync

Troubleshooting uvx Cache Issues

If uvx doesn't pick up the latest version after an upgrade:

# Clear cached environments and refresh
rm -rf ~/.cache/uv/environments* && uvx --refresh yirifi-ops-mcp-hub --version

Quick Start

Claude Code Configuration

Add to your Claude Code MCP settings (~/.claude.json or project .mcp.json):

{
  "mcpServers": {
    "yirifi-ops": {
      "command": "uvx",
      "args": ["yirifi-ops-mcp-hub"],
      "env": {
        "YIRIFI_API_KEY": "your_api_key_here"
      }
    }
  }
}

Or with specific options:

{
  "mcpServers": {
    "yirifi-dev": {
      "command": "uvx",
      "args": ["yirifi-ops-mcp-hub", "--mode=dev"],
      "env": {
        "YIRIFI_API_KEY": "your_api_key_here"
      }
    },
    "yirifi-prd": {
      "command": "uvx",
      "args": ["yirifi-ops-mcp-hub", "--mode=prd"],
      "env": {
        "YIRIFI_API_KEY": "your_api_key_here"
      }
    }
  }
}

CLI Options

# Run with all services (default)
YIRIFI_API_KEY=your_key uvx yirifi-ops-mcp-hub

# Run specific service
YIRIFI_API_KEY=your_key uvx yirifi-ops-mcp-hub --service=auth

# Development mode (localhost APIs)
YIRIFI_API_KEY=your_key uvx yirifi-ops-mcp-hub --mode=dev

# HTTP transport (for remote deployment)
uvx yirifi-ops-mcp-hub --transport=http --port=5200

Options:

  • --service: all (default), auth, or reg
  • --mode: dev (localhost) or prd (remote, default)
  • --transport: stdio (default) or http
  • --port: HTTP port (default: 5200)

Utility Commands

# List available tools
uvx yirifi-ops-mcp-hub list-tools

# Test API connection
uvx yirifi-ops-mcp-hub test-connection --service=auth

# Show OpenAPI spec
uvx yirifi-ops-mcp-hub show-spec --service=auth

# Check version
uvx yirifi-ops-mcp-hub --version

Architecture

This package uses a tiered exposure system for safe AI access:

  • DIRECT: Safe, frequent operations exposed as individual MCP tools
  • GATEWAY: Admin/dangerous operations accessible via {service}_api_call gateway tool
  • EXCLUDE: Internal endpoints never exposed

Spec-Driven Catalog (v0.4.0+)

Endpoints can be configured via OpenAPI x-mcp-* extensions or override files:

Extension Type Default Description
x-mcp-tier direct|gateway|exclude gateway Exposure tier
x-mcp-risk-level low|medium|high medium Risk classification
x-mcp-name string operationId Override tool name
x-mcp-description string summary Override description

Environment Variables

  • YIRIFI_API_KEY: API key for authentication (required)
  • AUTH_SERVICE_API_KEY: Service-specific fallback for auth
  • REG_SERVICE_API_KEY: Service-specific fallback for reg

License

Proprietary - Yirifi

Trigger CI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yirifi_ops_mcp_hub-0.4.5.tar.gz (101.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yirifi_ops_mcp_hub-0.4.5-py3-none-any.whl (98.9 kB view details)

Uploaded Python 3

File details

Details for the file yirifi_ops_mcp_hub-0.4.5.tar.gz.

File metadata

  • Download URL: yirifi_ops_mcp_hub-0.4.5.tar.gz
  • Upload date:
  • Size: 101.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for yirifi_ops_mcp_hub-0.4.5.tar.gz
Algorithm Hash digest
SHA256 54634fa3ec0380b9f244a0976bb51ea0c9a41e6b94f10b1810e6c2a8e028eafe
MD5 598c5b098474550cf23c53547d12bf40
BLAKE2b-256 7f27f6fa102b69637989a81fd0d8019b48a5ed22b293e2e5f4a7cf0bdb19174b

See more details on using hashes here.

File details

Details for the file yirifi_ops_mcp_hub-0.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for yirifi_ops_mcp_hub-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 696a9847c5e7fa0376362c1bae95d9f41fa8c3af378c6ba09c5ff122125e2d24
MD5 9450153a2c83c3124d9dcd0337945bf7
BLAKE2b-256 fe68d37cd7c9e571c99394ad25c89997f7edabb4556b49b9247180ef1e3ad8a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page