{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_9cnp2s4q8cr2","handle":"mcp-harness","url":"https://wellknown.network/agents/mcp-harness","links":{"self":"https://wellknown.network/agents/mcp-harness/record.json","html":"https://wellknown.network/agents/mcp-harness","markdown":"https://wellknown.network/agents/mcp-harness/record.md","api":"https://wellknown.network/api/v1/agents/mcp-harness","status":"https://wellknown.network/api/v1/agents/mcp-harness/status","claim":"https://wellknown.network/agents/mcp-harness/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/mcp-harness/claim.json","badge":"https://wellknown.network/agents/mcp-harness/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/mcp-harness/history","tools":"https://wellknown.network/api/v1/agents/mcp-harness/tools"},"ard":{"identifier":"urn:air::server:mcp-harness","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"mcp-harness","summary":"Enterprise governance middleware for MCP servers: cost attribution, auth, observability, quotas, audit, and policy — composable around the official MCP Python SDK.","description":"# mcp-harness\n\n**Enterprise governance middleware for MCP servers.** Cost attribution, auth, observability,\nquotas, audit, and policy — composable around the official [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk).\n\n[![CI](https://github.com/nagenshukla/mcp-harness/actions/workflows/test.yml/badge.svg)](https://github.com/nagenshukla/mcp-harness/actions/workflows/test.yml)\n[![PyPI](https://img.shields.io/pypi/v/mcp-harness.svg)](https://pypi.org/project/mcp-harness/)\n[![Python](https://img.shields.io/pypi/pyversions/mcp-harness.svg)](https://pypi.org/project/mcp-harness/)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)\n\n---\n\n## Why this exists\n\nMost public MCP servers are toy examples. The gap between *\"works on my laptop\"* and *\"I can ship\nthis to 500 engineers under SOC 2, GDPR, and a Finance team that wants per-business-unit cost\nallocation\"* is enormous — and almost none of that gap is in the protocol. It's in the boring\nmiddleware around it.\n\n`mcp-harness` **is** that middleware. It doesn't fork the protocol, doesn't reinvent the SDK, and\ndoesn't try to be an agent framework. It's a set of composable decorators and middleware that wrap\nthe official SDK so the resulting server can be safely run inside a company.\n\nThe headline use case: **your CFO asks who's spending the AI budget, and you can answer by end of\nweek one.**\n\n## Install\n\n```bash\npip install mcp-harness            # core pipeline (no MCP SDK required)\npip install 'mcp-harness[server]'  # + the official MCP SDK, to actually serve tools\npip install 'mcp-harness[all]'     # + OpenTelemetry, Prometheus, tiktoken, JWT\n```\n\nThe core middleware pipeline has **no hard dependency** on `mcp`, so you can unit-test all your\ngovernance behaviour without a transport. Install the `server` extra to run a live server.\n\n## Hello, governed world\n\nThe same MCP server you'd write anyway, with the governance layer declared once at the top:\n\n```python\nfrom mcp_harness…","publisher":{"name":"Nagendra Shukla","url":null},"homepage":"https://github.com/nagenshukla/mcp-harness","repository":"https://github.com/nagenshukla/mcp-harness/blob/main/CHANGELOG.md","version":"0.2.0","license":null,"protocols":["mcp"],"tags":["cost-attribution","enterprise","governance","mcp","middleware","model-context-protocol","observability"],"pricing":null,"endpoints":[{"url":"pypi:mcp-harness","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.monitoring","name":"Monitoring & Observability","confidence":1,"provenance":"declared"},{"slug":"dev.ci-cd","name":"CI/CD & Deploy","confidence":0.756,"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":"mcp-harness","registry":"pypi","observedAt":"2026-11-03T13:26:49.462Z","publishedAt":"2026-08-05T17:59:13.593872Z","latestVersion":"0.2.0"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"mcp-harness","url":"https://pypi.org/project/mcp-harness/","firstSeenAt":"2026-09-10T02:22:38.623Z","fetchedAt":"2026-11-03T13:26:08.933Z","normalizedAt":"2026-11-03T13:26:08.933Z"}]},"firstSeenAt":"2026-09-10T02:22:38.623Z","updatedAt":"2026-11-03T13:26:49.462Z"}