Metadata-Version: 2.4
Name: mcp-observatory-sdk
Version: 1.0.0
Summary: Tiny SDK that instruments MCP servers with Prometheus metrics + OpenTelemetry spans.
Author-email: vellankikoti <vellankikoti@gmail.com>
License: Apache-2.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.11
Requires-Dist: opentelemetry-api>=1.25
Requires-Dist: prometheus-client>=0.20
Provides-Extra: dev
Requires-Dist: fastmcp>=3.0; extra == 'dev'
Requires-Dist: opentelemetry-sdk>=1.25; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.2; extra == 'dev'
Description-Content-Type: text/markdown

# mcp-observatory-sdk

Tiny SDK that instruments MCP servers with Prometheus metrics + OpenTelemetry spans.

One-line adoption in a FastMCP server:

```python
from fastmcp import FastMCP
from observatory_sdk import instrument

server = FastMCP("my-server")
instrument(server, service_name="my-server", prometheus_port=9090)
# ... register tools as usual ...
```

Zero runtime deps beyond `prometheus-client` and `opentelemetry-api`.

Companion project: [**mcp-observatory**](https://github.com/vellankikoti/mcp-observatory) — the query-router MCP server that consumes the metrics this SDK emits.
