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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| drunk_ai_client-0.1.0.tar.gz | 9.9 kB | Without provenance | Details for drunk_ai_client-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drunk_ai_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for drunk_ai_client-0.1.0-py3-none-any.whl |
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}
|
Security for drunk-ai-client 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.