Armature analytics wrapper SDK for Python MCP servers.
Project description
armature-mcp-analytics
Armature analytics for Python MCP servers. The v1 integration is FastMCP-first:
instrument a FastMCP instance, keep writing normal tools, and Armature records
tool calls with MCP-specific telemetry.
Install:
pip install "armature-mcp-analytics[fastmcp]"
import os
from fastmcp import FastMCP
from armature_mcp_analytics import instrument_fastmcp
mcp = FastMCP("Customer MCP")
instrument_fastmcp(
mcp,
{
"armature": {
"api_key": os.getenv("ANALYTICS_INGEST_API_KEY"),
"delivery": "await",
}
},
)
@mcp.tool
def lookup_customer(customer_id: str) -> dict:
"""Look up a customer by id."""
return {"customer_id": customer_id, "status": "active"}
if __name__ == "__main__":
mcp.run()
Agents see an optional telemetry object on each tool input schema. The SDK
strips that object before your handler runs, then emits an authenticated batch
to Armature.
Environment variables:
| Variable | Purpose |
|---|---|
ANALYTICS_INGEST_API_KEY |
Armature ingest API key. Missing keys no-op for local development. |
ANALYTICS_INGEST_URL |
Optional ingest endpoint override. |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file armature_mcp_analytics-0.1.1.tar.gz.
File metadata
- Download URL: armature_mcp_analytics-0.1.1.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96b4b190aa3b7103baa38f44e441f66022d0ddc76976bab5ccbb70b8270ad099
|
|
| MD5 |
88f412503afdca90e26dbeeb012ce6a8
|
|
| BLAKE2b-256 |
2dfb43847734befa23bf9172f01335655951c704a62c7076316b334c12129f0a
|
Provenance
The following attestation bundles were made for armature_mcp_analytics-0.1.1.tar.gz:
Publisher:
publish.yml on armature-tech/mcp-analytics-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
armature_mcp_analytics-0.1.1.tar.gz -
Subject digest:
96b4b190aa3b7103baa38f44e441f66022d0ddc76976bab5ccbb70b8270ad099 - Sigstore transparency entry: 2047807517
- Sigstore integration time:
-
Permalink:
armature-tech/mcp-analytics-python@f5ad0cf10ddbecb2752af3c3e5e279457413c0f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/armature-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5ad0cf10ddbecb2752af3c3e5e279457413c0f0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file armature_mcp_analytics-0.1.1-py3-none-any.whl.
File metadata
- Download URL: armature_mcp_analytics-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8d13aa072aa0b4ae60e1b80a941bf2379339c3ac386aacf481611140a6deafe
|
|
| MD5 |
597d8dadd7b601d7202582afee3ad578
|
|
| BLAKE2b-256 |
197391e38771a6b6cd8dc4f1d305022bb5eaf5db49e4a39702f3eb91a9b9b057
|
Provenance
The following attestation bundles were made for armature_mcp_analytics-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on armature-tech/mcp-analytics-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
armature_mcp_analytics-0.1.1-py3-none-any.whl -
Subject digest:
f8d13aa072aa0b4ae60e1b80a941bf2379339c3ac386aacf481611140a6deafe - Sigstore transparency entry: 2047807531
- Sigstore integration time:
-
Permalink:
armature-tech/mcp-analytics-python@f5ad0cf10ddbecb2752af3c3e5e279457413c0f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/armature-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5ad0cf10ddbecb2752af3c3e5e279457413c0f0 -
Trigger Event:
push
-
Statement type: