Skip to main content

Drunk MCP Client (STDIO)

A stdio MCP client that connects to the Drunk MCP Proxy server, enabling remote MCP services with agent synchronization and remote resource management.

Features

  • Remote Agent Sync: Automatically sync agents from remote sources
  • Skill Management: Local skill directory synchronization
  • Resource Downloader: Fetch and cache remote MCP resources
  • Agent Execution: Execute agents with permission controls
  • Offline Support: Cached agents for offline use

Installation & Usage

Local Development (from repo root)

uvx --from ./src/drunk_ai_client drunk_ai_client

Published Package

uvx drunk_ai_client

Direct Installation

pip install -e ./src/drunk_ai_client
drunk-ai-client

Configuration

The client supports multiple configuration sources:

Environment Variables

Variable Required Description
DRUNK_API_URL Yes Drunk MCP Proxy server URL (e.g., http://localhost:9123)
DRUNK_API_KEY No Bearer token for authentication
DRUNK_SKILL_DIR No Local directory for synced skills (default: ./skills)
DRUNK_AGENTS_DIR No Local directory for synced agents (default: ./agents)
DRUNK_SYNC_INTERVAL No Sync interval in seconds (default: 300)
DRUNK_ALLOW_OVERWRITE No Overwrite local files during sync (true/false)

Command Line Options

drunk-ai-client --sync --agent-source https://remote.repo/agents.yaml

New Agent Sync Feature

Sync Remote Agents

# Sync from a remote source (new!)
DRUNK_API_URL=http://localhost:9123 \
DRUNK_AGENTS_DIR=./my-agents \
drunk-ai-client --sync-agents --source https://your-agent-repo.com/agents.yaml

Agent Directory Structure

agents/
├── agent1/
│   ├── config.yaml
│   ├── skills/
│   └── resources/
└── agent2/
    └── ...

Skills Sync

# Sync skills from proxy
DRUNK_SKILL_DIR=./skills drunk-ai-client --sync-skills

Usage Examples

Connect to Proxy with Agent Sync

# Start the client with agent sync enabled
DRUNK_API_URL=http://localhost:9123 \
DRUNK_AGENTS_DIR=./agents \
drunk-ai-client --sync --agent-source https://repo.com/agents.yaml

Execute a Remote Agent

Once agents are synced locally, they can be used as standard MCP tools:

// Claude Code or any MCP client can use these tools
{
  "name": "agent_search",
  "description": "Search through synced agents",
  "inputSchema": { ... }
}

Development

Run Tests

python -m pytest tests/

Build and Install Locally

pip install -e ".[dev]"

Notes

  • The stdio bridge logs to stderr by default (FastMCP behavior)
  • Agent sync runs in background if --sync flag is enabled
  • Remote resources are cached locally with automatic refresh
  • Authentication tokens are validated on each request
  • Agents execute with sandboxed permissions

See Also

Metadata

Release files for drunk-ai-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drunk-ai-client 0.1.0
File Size Uploaded
drunk_ai_client-0.1.0.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drunk-ai-client 0.1.0
File Interpreter ABI Platform
drunk_ai_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / drunk_ai_client-0.1.0.tar.gz

Download URL drunk_ai_client-0.1.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
13f2e2d05ee883f0179d4b92de4f772ddcbabb3c0f57d0d3458cdb2d16050572
BLAKE2b-256 checksum
How to use checksums
03a57be0fe82d38ba821a15d45e38f347dfe2ef908e6c29a03cfc7050d9efe34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / drunk_ai_client-0.1.0-py3-none-any.whl

Download URL drunk_ai_client-0.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9d6e34d781b221d0bf5c8a02c5b8dbe302bbeab290101a48467feff4909829d
BLAKE2b-256 checksum
How to use checksums
7708403117bbcb77838a25ac0f0e3394d36cf227119fc5b4858f1b239e6fb986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page