Drongo
One config. Every MCP.
Unify · Verify · Protect
Drongo is a declarative Model Context Protocol (MCP) control plane and runtime security gateway. Define your upstream servers once, sync their proxy entries to Codex, Claude Code, and VS Code, and enforce the same tool policy when each client calls them. v0.2 adds stateful governance on top of that static policy: tools can require a one-shot human approval, non-idempotent calls survive a crash without blind retries, and injected secrets are masked on their way out. Drongo supports stdio and remote HTTP/SSE upstreams on Linux and macOS with Python 3.12 or later.
Quick start
Install the console command with uv.
uv tool install mcp-drongo
For a one-off invocation, uvx needs the package name and the console command.
uvx --from mcp-drongo drongo --help
Create the user configuration.
drongo init
In the generated drongo.yaml (normally ~/.config/drongo/drongo.yaml), add the client you want to import. Adjust the path if you use a different Codex configuration file.
clients:
codex:
enabled: true
adapter: codex-toml
config_path:
darwin: "${HOME}/.codex/config.toml"
linux: "${HOME}/.codex/config.toml"
Preview the server definitions, then import the ones in this client by merging its draft. Review the imported commands and export any secret environment variables named on stderr before trusting the server.
drongo import --client codex
drongo import --client codex --write
The following examples use an imported server named filesystem. In drongo.yaml, update the default profile with its actual server name and the tools you intend to allow. Retain the defaults generated by init.
profiles:
default:
description: Read-only filesystem tools
servers: [filesystem]
allow: ["filesystem.read_*", "filesystem.list_*"]
deny: []
A repository can narrow that policy with a .drongo.yaml file.
schema_version: "0.1"
profile: default
extra_deny: ["filesystem.read_sensitive"]
Review the launch configuration before authorizing it. Repeat the trust command for each imported server that you intend to probe. A plan with proposed changes returns status 2.
drongo trust server filesystem
drongo plan --verbose
drongo lock
Preview the client changes. For an existing entry named filesystem, the plan can report an unmanaged-entry conflict until you opt into adoption. Confirm that the imported upstream command, environment references, and settings are in drongo.yaml before applying.
drongo sync --client codex --dry-run --adopt
drongo sync --client codex --adopt
Without a client selector, drongo sync targets every enabled client. When --adopt clears an entry's old launch environment or connection fields, it reports the removed field names on stderr. Drongo keeps private backups of changed client files.
drongo verify
drongo tokens
Stateful governance
v0.2 turns the static allow-list into a three-state policy. require_approval in a profile grants a tool conditionally: every call needs a one-shot human approval, while extra_require_approval in a workspace .drongo.yaml can only tighten what the user already allows. An approval binds the session, the verified tool definition, and the exact arguments; a watchdog denies by default when nobody answers in time.
profiles:
default:
description: Read-only, writes need a human
servers: [filesystem]
allow: ["filesystem.read_*"]
deny: []
require_approval: ["filesystem.write_*"]
Review and decide the queue from any terminal -- no desktop, no daemon.
drongo approve list
drongo approve allow APPROVAL_ID --reason "verified the target path"
drongo approve deny APPROVAL_ID --reason "not on this machine"
drongo approve watch
Every forwarded call is recorded in a private SQLite ledger before it reaches the upstream. If the proxy dies mid-call, the record becomes UNKNOWN on the next start and the same arguments are refused until you check the external system and resolve the record -- a crash can never turn into a blind retry.
drongo state list
drongo state resolve EXEC_ID --note "branch was never deleted"
Tool responses are also scanned on their way back: values Drongo injected as secrets (and their Base64 or URL-encoding variants) are replaced with [REDACTED:SECRET:KEY_NAME] before the client ever sees them.
Remote upstreams and the local daemon
- Remote upstreams. Choose
streamable_httpor legacysse. Drongo checks the locked launch configuration (L1), TLS channel evidence (L2), and the complete tool definitions (L3). HTTPS is the default and redirects are rejected. You can pin the server’s TLS SPKI and provide a CA bundle whose digest is tracked in the lock. Injected authorization values are redacted at egress. A call that loses its response remains unresolved and becomesUNKNOWNduring the next ledger sweep. drongod. Usedrongo daemon start,stop,status, andreloadto manage the daemon. The Unix socket accepts the current user only. Optional loopback Streamable HTTP is off by default and checks Bearer authorization, Host, and Origin. By defaultwrapattaches when the daemon is reachable and falls back to a direct connection when the socket is absent or refuses the connection.--standaloneforces a direct connection and--require-daemonrequires an attachment.- Instance pooling. Choose
per-session(default),per-workspace,per-profile, orshared. Upstream launch changes and secret rotations use distinct pool keys. Each attached session keeps its own governance state. - Progressive discovery. Set
discovery_mode: progressiveon the Profile and explicitly allowdrongo.*or the individual discovery tools. The client sees the permitted search and describe tools. Drongo still verifies all upstream tool definitions and capabilities.drongo tokenscompares the eager and progressive definition budgets. - HTTP endpoint sync. Enable
daemon.http, then pass the loopback origin todrongo sync --endpointordrongo plan --endpoint. The generated entries carry the daemon address and any required transport type. Configure the Bearer token from${DRONGO_STATE_DIR}/drongod.tokenseparately in the client. Sync leaves the plaintext token out of client configuration and plan output.
Architecture and boundaries
- Unify. The control plane manages user configuration, workspace trust, lockfiles, and client sync. Client entries launch
drongo wrap <server>by default. HTTP endpoint mode points them atdrongod. Each workspace policy is bounded by the user's configured permissions. - Verify. The integrity engine records launch configuration, reports the level of execution provenance it can establish, and fingerprints the complete tool and capability snapshots.
- Protect. Each downstream session has its own policy, approvals, and execution ledger. The proxy checks protocol methods in both directions, validates tools before making them available, and applies default-deny policy to calls. Upstream drift can block the session.
Explicit Non-Guarantees
- v0.1 does not provide an OS process sandbox. An upstream server runs as your user and can access files and the network with your account's permissions.
version_pinnedcovers the declared package version. It does not pin transitive dependencies or certify the package's code.- Online probes by
plan,lock, andverifyexecute upstream code. Drongo requires trust for probing. Review the command before authorizing it withdrongo trust server. - Client sync uses atomic replacement per file and a recovery journal across files. Other applications can still edit those files independently.
- An approval is not a semantic review: it confirms the tool, the verified definition, and the exact arguments once. It does not judge whether the call is a good idea, and an approved call that has been sent cannot be recalled.
- Crash recovery is conservative, not exactly-once: a call that died between the ledger write and the upstream write is blocked as
UNKNOWNeven if it never executed, and resolving it cannot undo a side effect that did happen. - A remote upstream can silently change its code while keeping the same TLS identity and tool schema. The integrity lock verifies the channel evidence and tool definitions it can observe.
- Reconnecting to a loopback HTTP SSE stream starts a new stream. Historical events are unavailable for replay.
- Egress redaction matches the injected secret values and common encodings exactly. It does not catch split values, custom encodings, or credentials Drongo never held, and it does not constrain what an upstream sends directly to the network.
Documentation
- Technical specification, v0.2 increment, and v0.3 increment
- Architecture and threat model
- Acceptance tests
- Changelog
Released under the Apache License 2.0.
Metadata
Release files for mcp-drongo 0.3.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 |
|---|---|---|---|---|
| mcp_drongo-0.3.0.tar.gz | 283.4 kB | With provenance | Details for mcp_drongo-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_drongo-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_drongo-0.3.0-py3-none-any.whl |
Total release size: 509.8 kB
Release files / mcp_drongo-0.3.0.tar.gz
| Download URL | mcp_drongo-0.3.0.tar.gz |
|---|---|
| Size | 283.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96c8a994141535a618f13d1a1a68403726fab09c706af27bed05cc9fcc49d06b
|
|
BLAKE2b-256 checksum How to use checksums |
8f3df95d1d06ebdffaae4ecc93969485fc8036a4e17593225719c30bf748a4e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / mcp_drongo-0.3.0-py3-none-any.whl
| Download URL | mcp_drongo-0.3.0-py3-none-any.whl |
|---|---|
| Size | 226.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87a1cb90e8b550fc23688041e8deda03607cb446703c6fab94faeee25f56387f
|
|
BLAKE2b-256 checksum How to use checksums |
a36a4b0bf1b5b6b77dd35718499eae8ec3f5c78d68dab7d0eaee32009aca4986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for mcp-drongo 0.3.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mcp_drongo-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.