{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_8sjpwgagdkxx","handle":"dhis2w-mcp-bridge","url":"https://wellknown.network/agents/dhis2w-mcp-bridge","links":{"self":"https://wellknown.network/agents/dhis2w-mcp-bridge/record.json","html":"https://wellknown.network/agents/dhis2w-mcp-bridge","markdown":"https://wellknown.network/agents/dhis2w-mcp-bridge/record.md","api":"https://wellknown.network/api/v1/agents/dhis2w-mcp-bridge","status":"https://wellknown.network/api/v1/agents/dhis2w-mcp-bridge/status","claim":"https://wellknown.network/agents/dhis2w-mcp-bridge/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/dhis2w-mcp-bridge/claim.json","badge":"https://wellknown.network/agents/dhis2w-mcp-bridge/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/dhis2w-mcp-bridge/history","tools":"https://wellknown.network/api/v1/agents/dhis2w-mcp-bridge/tools"},"ard":{"identifier":"urn:air::server:dhis2w-mcp-bridge","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"dhis2w-mcp-bridge","summary":"Single-tool MCP bridge that exposes the d2w CLI for small local models.","description":"# dhis2w-mcp-bridge\n\nA FastMCP server that exposes the entire `d2w` CLI as **one** MCP tool, `dhis2_cli`.\n\nWhere `dhis2w-mcp` registers ~304 typed tools (≈50-65k tokens of schema loaded into the\nmodel's context up front), this server registers a single tool that shells out to the local\n`d2w` binary. A small, context-limited **local model** discovers the command surface\nprogressively with `--help` and runs commands with `--json` — and nothing leaves the host.\n\n## Why this exists\n\nFor sensitive data that must stay on-box, you run a local model (LM Studio, Ollama,\nllama.cpp). Such models can't spare ~53k tokens for tool schemas, and many degrade when\nchoosing among hundreds of tools. One tool + on-demand `--help` fits an 8k-context model and\nkeeps the full DHIS2 surface reachable. Same code as the CLI — the bridge just runs it.\n\nUse `dhis2w-mcp` (the full typed server) for hosts that do progressive tool disclosure\nthemselves (e.g. Claude Code handles all 304 tools fine). Use this bridge for small local\nmodels.\n\n## The tool\n\n```\ndhis2_cli(args: list[str], profile: str | None = None) -> CliResult\nCliResult = { exit_code: int, stdout: str, stderr: str }\n```\n\nThe model is expected to discover, then act:\n\n```\ndhis2_cli([\"--help\"])                                  # list command groups\ndhis2_cli([\"metadata\", \"--help\"])                      # drill into a group\ndhis2_cli([\"metadata\", \"list\", \"dataElements\",\n           \"--filter\", \"name:ilike:malaria\"])          # run a command\n```\n\nContract: `--json` is injected automatically, so on success (`exit_code == 0`) `stdout` is\nJSON. `--help`/`--version` exit 0 with human text. Any non-zero exit is a failure and the\nmessage is on `stderr` (never JSON). `profile` is injected as `-p <profile>`.\n\n## Install & run\n\nThe bridge depends on `dhis2w-cli`, so installing it provides the `d2w` binary.\n\n```bash\n# From a workspace checkout (development)\nuv run dhis2w-mcp-bridge\n\n# From PyPI\nuv tool install dhis2w-mcp-bridge\ndhis2w-mcp-bridge\n```…","publisher":{"name":"Morten Hansen","url":null},"homepage":"https://winterop-com.github.io/dhis2w-mcp/","repository":"https://github.com/winterop-com/dhis2w-mcp","version":"1.38.3","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:dhis2w-mcp-bridge","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi","publisherName":"pypi"}},"derived":{"capabilities":[{"slug":"dev.terminal","name":"Terminal & Shell","confidence":0.745,"provenance":"derived"}],"categories":["dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"dhis2w-mcp-bridge","registry":"pypi","observedAt":"2026-11-09T03:24:40.062Z","publishedAt":"2026-11-01T14:58:37.811349Z","latestVersion":"1.38.3"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"dhis2w-mcp-bridge","url":"https://pypi.org/project/dhis2w-mcp-bridge/","firstSeenAt":"2026-09-09T14:31:34.608Z","fetchedAt":"2026-11-09T03:23:30.013Z","normalizedAt":"2026-11-09T03:23:30.013Z"}]},"firstSeenAt":"2026-09-09T14:31:34.608Z","updatedAt":"2026-11-09T03:24:40.062Z"}