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
--syncflag is enabled - Remote resources are cached locally with automatic refresh
- Authentication tokens are validated on each request
- Agents execute with sandboxed permissions
See Also
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drunk_ai_client-0.1.0.tar.gz
(9.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drunk_ai_client-0.1.0.tar.gz.
File metadata
- Download URL: drunk_ai_client-0.1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13f2e2d05ee883f0179d4b92de4f772ddcbabb3c0f57d0d3458cdb2d16050572
|
|
| MD5 |
053c17292db0d8940d9a82b3b7191f23
|
|
| BLAKE2b-256 |
03a57be0fe82d38ba821a15d45e38f347dfe2ef908e6c29a03cfc7050d9efe34
|
File details
Details for the file drunk_ai_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: drunk_ai_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9d6e34d781b221d0bf5c8a02c5b8dbe302bbeab290101a48467feff4909829d
|
|
| MD5 |
aac2d2736c60e05c1679783c5aec9edf
|
|
| BLAKE2b-256 |
7708403117bbcb77838a25ac0f0e3394d36cf227119fc5b4858f1b239e6fb986
|