Skip to main content

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

armature_mcp_analytics-0.1.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

armature_mcp_analytics-0.1.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

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

Hashes for armature_mcp_analytics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 96b4b190aa3b7103baa38f44e441f66022d0ddc76976bab5ccbb70b8270ad099
MD5 88f412503afdca90e26dbeeb012ce6a8
BLAKE2b-256 2dfb43847734befa23bf9172f01335655951c704a62c7076316b334c12129f0a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file armature_mcp_analytics-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for armature_mcp_analytics-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d13aa072aa0b4ae60e1b80a941bf2379339c3ac386aacf481611140a6deafe
MD5 597d8dadd7b601d7202582afee3ad578
BLAKE2b-256 197391e38771a6b6cd8dc4f1d305022bb5eaf5db49e4a39702f3eb91a9b9b057

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page