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 pip
pip install yirifi-ops-mcp-hub

# Using uv (recommended)
uv pip install yirifi-ops-mcp-hub

Quick Start

Claude Code Configuration

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

{
  "mcpServers": {
    "yirifi-ops": {
      "command": "yirifi-ops-mcp-hub",
      "env": {
        "YIRIFI_API_KEY": "your_api_key_here"
      }
    }
  }
}

CLI Options

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

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

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

# HTTP transport (for remote deployment)
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
yirifi-ops-mcp-hub list-tools

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

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

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

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

MIT uv run yirifi-ops-mcp-hub --transport=http --port=5210 --mode=prd

uvx --refresh yirifi-ops-mcp-hub --version uv cache clean --force && uvx --refresh yirifi-ops-mcp-hub --version

⏺ Bash(curl -s -X POST 'https://mcp.ops.yirifi.ai/mcp/message'
-H 'Content-Type: application/json'
-H 'Accept: application/json, text/event-stream'
-H 'X-API-Key: yirifi_ops_8Ne_tU2wslZEtoeaD3TZJXmNuV7oyFT0bh1ZWFbsE9g'
-d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05"," capabilities":{},"clientInfo":{"name":"test","version":"1.0"}},"id":1}' 2>&1)

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.1.tar.gz (95.4 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.1-py3-none-any.whl (87.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yirifi_ops_mcp_hub-0.4.1.tar.gz
  • Upload date:
  • Size: 95.4 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.1.tar.gz
Algorithm Hash digest
SHA256 784a05b3392722133dc2c4a379184a424d8534a0882ad48543a7d8e49c79a9d5
MD5 3b60d79afaa4c9aecf677453d5e10cbb
BLAKE2b-256 852373c2184a37e2181dab8445ccda9d5529b811dc397fa640d4c82a7c592b41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yirifi_ops_mcp_hub-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94c3725ad20d36af40a608213210c56c76f88f3e099117b46b808549b677164c
MD5 0d0c367be9fcce22a578149e9f49bfc7
BLAKE2b-256 481c51ddf0912652b3f4b270ae0874f6dd2bf945df998aef39b6f1196a7e6fcb

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