Skip to main content

MCPStat Python SDK

Python SDK for MCPStat telemetry.

Installation

pip install mcpstat-sdk

Requires Python 3.10+. There are no runtime dependencies.

Quick start

import os

from mcpstat_sdk import Client

client = Client(os.environ["MCPSTAT_COUNTER_KEY"], environment="production")

with client.tool_call("search", transport="streamable_http") as call:
    results = search(query)
    call.success(result_count=len(results))

# Run after completing the application response, at a point chosen by your application.
result = client.flush()

search and query belong to your application. The synchronous flush() sends the batch once; your application decides when to call it. It is not an automatic background task.

Documentation

License

MIT.

Metadata

Release files for mcpstat-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpstat-sdk 0.1.0
File Size Uploaded Provenance Actions
mcpstat_sdk-0.1.0.tar.gz 13.7 kB With provenance Details for mcpstat_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcpstat-sdk 0.1.0
File Interpreter ABI Platform Actions
mcpstat_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for mcpstat_sdk-0.1.0-py3-none-any.whl

Total release size: 20.0 kB

Release files / mcpstat_sdk-0.1.0.tar.gz

Download URL mcpstat_sdk-0.1.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
168145d8a6f34f086fd3c151a24bdd051c6c7989d67561c36e40c828eb259dc9
BLAKE2b-256 checksum
How to use checksums
be999c857a83d7b40c9413549e1067061f24fb76f5a31187b0bf0065464415be
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 30, 2026.

Transparency log

Release files / mcpstat_sdk-0.1.0-py3-none-any.whl

Download URL mcpstat_sdk-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb22b604c10a67f29ba492c26695cac505aae8f25e764554638a9d2ad2b04a16
BLAKE2b-256 checksum
How to use checksums
a715e8b2e2f61ee3d40ae4b3d5c477a89b205f0dfb60c0da50bc231dcdcfc81d
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 30, 2026.

Transparency log

Security for mcpstat-sdk 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcpstat_sdk-0.1.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 30, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page