Skip to main content

DIDLogic MCP server

Project description

Didlogic MCP Server

Trust Score A Model Context Protocol (MCP) server implementation for the Didlogic API. This server allows Large Language Models (LLMs) to interact with Didlogic services through a standardized interface.

Features

  • Full access to Didlogic API through MCP tools
  • Specialized prompts for common operations
  • Balance management tools
  • SIP account (sipfriends) management
  • IP restriction management
  • Purchases management
  • Call hisory access
  • Transaction history access

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run didlogic_mcp.

Using PIP

Alternatively you can install didlogic_mcp via pip:

pip install didlogic_mcp

After installation, you can run it as a script using:

DIDLOGIC_API_KEY=YOUR_DIDLOGIC_KEY python -m didlogic_mcp

Transport Modes

The server supports three transport modes:

STDIO Mode (Default)

For local integration with Claude Desktop or similar tools. Uses the DIDLOGIC_API_KEY environment variable for authentication.

# Using uvx (recommended)
DIDLOGIC_API_KEY=your_key uvx didlogic_mcp

# Using uv run
DIDLOGIC_API_KEY=your_key uv run didlogic_mcp

# As Python module
DIDLOGIC_API_KEY=your_key python -m didlogic_mcp --transport stdio

HTTP Mode

For remote access and web clients. Requires Bearer token in Authorization header for each request.

# Using default port (8000)
python -m didlogic_mcp --transport http

# Custom port via environment variable
PORT=9000 python -m didlogic_mcp --transport http

# Custom host and port
python -m didlogic_mcp --transport http --host 0.0.0.0 --port 9000

# With debug logging
python -m didlogic_mcp --transport http --log-level DEBUG

Environment Variables:

Note: In HTTP mode, clients must provide their API key as a Bearer token in the Authorization header.

SSE Mode (Server-Sent Events)

For streaming communication with persistent connections. Ideal for real-time updates and streaming scenarios. Requires Bearer token in Authorization header for each request.

# Using default port (8000)
python -m didlogic_mcp --transport sse

# Custom port via environment variable
PORT=9000 python -m didlogic_mcp --transport sse

# Custom host and port
python -m didlogic_mcp --transport sse --host 0.0.0.0 --port 9000

# With debug logging
python -m didlogic_mcp --transport sse --log-level DEBUG

Environment Variables:

Note: In SSE mode, clients must provide their API key as a Bearer token in the Authorization header for persistent streaming connections.

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx

"mcpServers": {
  "didlogic": {
    "command": "uvx",
    "args": ["didlogic_mcp"],
    "env": {
      "DIDLOGIC_API_KEY": "YOUR_DIDLOGIC_KEY"
    }
  }
}

Using pip installation

"mcpServers": {
  "didlogic": {
    "command": "python",
    "args": ["-m", "didlogic_mcp"],
    "env": {
      "DIDLOGIC_API_KEY": "YOUR_DIDLOGIC_KEY"
    }
  }
}

Configure for Claude Code

For Claude Code, you can connect to a running SSE server instance:

claude mcp add didlogic --transport sse http://localhost:8000/sse --header "Authorization: Bearer YOUR_DIDLOGIC_API_KEY"

Prerequisites:

  1. Start the server in SSE mode: python -m didlogic_mcp --transport sse
  2. Run the above command, replacing YOUR_DIDLOGIC_API_KEY with your actual API key
  3. The server must be running and accessible at the specified URL

Custom configuration:

  • To use a different port: Change http://localhost:8000/sse to match your server's PORT setting
  • To connect to a remote server: Replace localhost with the server's hostname or IP address

License

MIT

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

didlogic_mcp-1.0.4.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

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

didlogic_mcp-1.0.4-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file didlogic_mcp-1.0.4.tar.gz.

File metadata

  • Download URL: didlogic_mcp-1.0.4.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.24

File hashes

Hashes for didlogic_mcp-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ff2497a1e441997ef5be9a81221b39e14630a414ba8253462116a5526ce03bcd
MD5 a759c316260bbcc4954b174e9a79672d
BLAKE2b-256 137b1473fcc0db04bd85313f64a812cf105fdb89bc29ef849cb976a9dc056d10

See more details on using hashes here.

File details

Details for the file didlogic_mcp-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for didlogic_mcp-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 82726b25b911940255db9a840ac30a40401a90b80c5cebf3807d7f2ba44f74a9
MD5 2098f2e7d74f975db00f181f31d6525f
BLAKE2b-256 1bc475c1c2f7c010939ddf5f5a53a90bd2fbf1162adf4120001da08b98d36e9a

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