Skip to main content

ccMonet MCP server for forwarding messages from clients like Claude to ccMonet API

Project description

ccMonet MCP Server

This is a server using the Model Context Protocol (MCP) to forward messages from clients like the Claude desktop application to the ccMonet API.

Quick Start

# Install the package
pip install mcp-ccmonet

# Configure Claude Desktop (edit claude_desktop_config.json)
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %AppData%\Claude\claude_desktop_config.json

# Add this configuration:
{
    "mcpServers": {
        "ccMonet": {
            "command": "uvx",
            "args": ["--from", "mcp-ccmonet", "ccMonet"],
            "env": {
                "CCMONET_ORG_ID": "your-org-id",
                "CCMONET_AUTH_TOKEN": "your-auth-token"
            }
        }
    }
}

# Restart Claude Desktop and use the tool!

Features

  • Provides an MCP tool send_message for sending messages to the ccMonet API and receiving replies
  • Supports session management (via thread_id and response_message_id)
  • Can be integrated with MCP clients such as the Claude desktop application

Requirements

  • Python 3.11 or higher
  • Poetry package manager

Installation

Option 1: Install from PyPI (Recommended)

The easiest way to install is directly from PyPI:

pip install mcp-ccmonet

After installation, you can run the server using:

ccMonet

Option 2: Install from Repository

# Clone repository
git clone https://github.com/PlatoX-Type/mcp_ccmonet.git
cd mcp_ccmonet

# Install dependencies
poetry install

Usage

Run Server Directly

If installed from PyPI:

# Run directly using the entry point
ccMonet

# Or using uvx
uvx --from mcp-ccmonet ccMonet

If installed from repository:

# From project root
poetry run python mcp_ccmonet/main.py

# Or using the compatibility script
poetry run python run.py

Run with VS Code

The project includes VS Code launch configurations for direct execution:

  1. Open the project in VS Code
  2. Select "Run MCP Server" (uses the new module structure) or "Run MCP Server (Compatibility)" (uses compatibility script) in the "Run and Debug" panel
  3. Click the "Start Debugging" button (F5) to launch

You can also use VS Code tasks:

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS)
  2. Type "Tasks: Run Task" and select it
  3. Choose "Run MCP Server" or "Run API Test"

Integration with Claude Desktop Application

  1. Make sure you have the latest version of the Claude desktop application installed
  2. Edit the Claude desktop application configuration file:

macOS:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows:

code $env:AppData\Claude\claude_desktop_config.json
  1. Add the server configuration:

Option 1: Using Local Repository (Development)

{
    "mcpServers": {
        "ccMonet": {
            "command": "poetry",
            "args": [
                "run",
                "python",
                "/absolute/path/to/mcp_ccmonet/main.py"
            ]
        }
    }
}

Option 2: Using PyPI Package (Recommended for Production)

First install the package from PyPI:

pip install mcp-ccmonet

Then configure Claude Desktop:

{
    "mcpServers": {
        "ccMonet": {
            "command": "uvx",
            "args": ["--from", "mcp-ccmonet", "ccMonet"],
            "env": {
                "CCMONET_ORG_ID": "your-org-id",
                "CCMONET_AUTH_TOKEN": "your-auth-token"
            }
        }
    }
}
  1. Restart the Claude desktop application
  2. Access the ccMonet tool using the MCP tools icon (hammer icon)

Configuration

The configuration file is located at mcp_ccmonet/ccmonet_server/config.py, where you can modify the following settings:

  • API_URL: The URL of the ccMonet API
  • API_HEADERS: API request headers, including authentication information
  • SERVER_NAME: MCP server name
  • REQUEST_TIMEOUT: API request timeout (seconds)

Environment Variable Configuration

The server supports configuration of authentication information via environment variables, without modifying the code:

  • CCMONET_ORG_ID: Organization ID for API authentication
  • CCMONET_AUTH_TOKEN: Authentication token, without the "Bearer" prefix

Examples:

When Using Local Repository

# Linux/macOS
export CCMONET_ORG_ID="your-org-id"
export CCMONET_AUTH_TOKEN="your-auth-token"
poetry run python mcp_ccmonet/main.py

# Windows PowerShell
$env:CCMONET_ORG_ID="your-org-id"
$env:CCMONET_AUTH_TOKEN="your-auth-token"
poetry run python mcp_ccmonet/main.py

When Using PyPI Package

After installing the package using pip install mcp-ccmonet:

# Linux/macOS
export CCMONET_ORG_ID="your-org-id"
export CCMONET_AUTH_TOKEN="your-auth-token"
ccMonet

# Windows PowerShell
$env:CCMONET_ORG_ID="your-org-id"
$env:CCMONET_AUTH_TOKEN="your-auth-token"
ccMonet

# Using uvx (alternative)
uvx --from mcp-ccmonet ccMonet

When integrating with the Claude desktop application, you can include environment variables in the configuration:

{
    "mcpServers": {
        "ccMonet": {
            "command": "poetry",
            "args": [
                "run",
                "python",
                "/absolute/path/to/mcp_ccmonet/main.py"
            ],
            "env": {
                "CCMONET_ORG_ID": "your-org-id",
                "CCMONET_AUTH_TOKEN": "your-auth-token"
            }
        }
    }
}

Development

Project Structure

mcp_ccmonet/
├── .vscode/             # VS Code configuration
│   ├── launch.json      # Launch configuration
│   ├── settings.json    # Editor settings
│   └── tasks.json       # Tasks configuration
├── mcp_ccmonet/         # Main package directory
│   ├── __init__.py      # Package initialization
│   ├── main.py          # Main entry point
│   └── ccmonet_server/  # Server subpackage
│       ├── __init__.py  # Subpackage initialization
│       ├── config.py    # Configuration file
│       └── server.py    # MCP server implementation
├── docs/
│   └── FAQ.md           # Frequently asked questions
├── tests/               # Test directory
│   └── test_import.py   # Import tests
├── poetry.lock          # Poetry lock file
├── pyproject.toml       # Poetry project configuration
├── README.md            # This file
└── test_api.py          # API test script

Adding New Features

To add new API functionality, create a new tool function in mcp_ccmonet/ccmonet_server/server.py and register it using the @mcp.tool() decorator.

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

mcp_ccmonet-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

mcp_ccmonet-0.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_ccmonet-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_ccmonet-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/23.5.0

File hashes

Hashes for mcp_ccmonet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 754fa132aa569c7f9e1f24c7b3330ddafa3161d1c564996e15c429102fa3fab4
MD5 866cc8f02b0fce4068cdf8dac0687e6a
BLAKE2b-256 20b32b2817cfe1e2a5807347fb0f8d4fdf57a104e7e44a325522b14ce4facfb4

See more details on using hashes here.

File details

Details for the file mcp_ccmonet-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_ccmonet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/23.5.0

File hashes

Hashes for mcp_ccmonet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec530334d0b4be153fb05b839fa4624ba866f02ac63be4b13090f30b67b7e2f0
MD5 13121dea923101801a2202eb8eea2616
BLAKE2b-256 7126bade41d2384078b0fb69751910d31315c1b5827fde9b75a42213d8c74a5c

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