Not loaded · from fastmcp-engineering
Design production observability for FastMCP systems with trace/log/metric correlation, OpenTelemetry, safe redaction, MCP/agent/tool/database diagnostics and actionable failure taxonomy.
Claude Code won't load this skill
It ships in fastmcp-engineering at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Make every production failure diagnosable across the complete request path without logging secrets, credentials, sensitive prompts, private tool results, or uncontrolled payloads.
Scope / When to use: production observability for FastMCP systems with trace/log/metric correlation, OpenTelemetry, safe redaction, MCP/agent/tool/database diagnostics and actionable failure taxonomy.
Trigger: designing or changing tracing, logging, metrics, redaction, error taxonomy, or diagnostics across the request path.
Upstream / Prerequisite: AGENTS.md and repository engineering contracts read; identified exact versions; evidence recorded before coding.
Mission / Goal: make every production failure diagnosable across the complete request path without logging secrets, credentials, sensitive prompts, private tool results, or uncontrolled payloads.
Research / Evidence: read official FastMCP observability/middleware/lifecycle documentation and llms material; read official PydanticAI instrumentation/observability documentation where applicable; read official OpenTelemetry Python documentation and relevant semantic conventions; inspect relevant official examples and source/tests when behavior is ambiguous.
Decision / Selection rules: use a stable correlation strategy rather than inventing unrelated IDs at every layer; design traces, metrics and structured logs deliberately; capture safe MCP/agent/database diagnostics; distinguish error classes; define a centralized redaction policy with sensitive fields identified by contract and prefer allowlisting; use bounded metric labels; separate liveness, readiness and dependency health; define SLOs from user-visible behavior.
Version / Compatibility: identify exact FastMCP, Python, OpenTelemetry, ASGI/server, PydanticAI, SQLAlchemy and logging versions.
Deliverables / Artifacts: observability research package, telemetry data model, trace topology, metric catalog, logging schema, redaction policy, error taxonomy, implementation, telemetry tests, operational dashboard/alert specification and architecture re-check. Verification / Testing: test correlation propagation, redaction, error classification, metric label cardinality, trace creation, cancellation, exception paths and graceful shutdown; include tests proving sensitive values never reach logs/telemetry exporters. Failure / Stop conditions: reject if trace/log correlation is inconsistent, telemetry leaks secrets or full sensitive payloads, labels are unbounded, error classes are indistinguishable, instrumentation changes business behavior, or observability depends on a single local logger. Positive scenario: every production failure is diagnosable with correlated traces/logs/metrics and no sensitive values leak. Negative scenario: telemetry leaks secrets or full sensitive payloads to logs or exporters.
Before implementation:
trace_id
└── MCP request/span
├── application use case
├── agent run
│ ├── model call
│ └── tool call
├── database operation
└── external API operation
Use a stable correlation strategy rather than inventing unrelated IDs at every layer. Do not use user-controlled identifiers as trusted trace identity.
Design all three deliberately:
Avoid using logs as a substitute for metrics or traces.
Capture safe metadata for:
Never dump complete MCP payloads by default.
Where PydanticAI is used, correlate agent runs and model/tool operations. Capture provider/model identity, latency, token/usage metadata and outcome when supported, but redact prompt content, credentials, private user data and sensitive tool results. Make high-cardinality labels an explicit design decision.
Correlate database spans with the application trace. Never emit raw secrets or full SQL parameters. SQL statement capture must follow the security posture of the target environment and use safe normalization/redaction.
Distinguish at minimum:
Map each class to appropriate logs, metrics, traces and client-visible errors.
Define a centralized redaction policy. Sensitive fields must be identified by contract, not by ad-hoc logger calls. Prefer allowlisting metadata over denylisting arbitrary keys. Never log API keys, access tokens, cookies, passwords, authorization headers, raw secrets, or unrestricted prompt/tool payloads.
Define bounded labels only. Useful metrics may include request count/error rate, latency distributions, active streams/tasks, tool outcomes, dependency latency/errors, DB pool saturation, agent/model latency and usage, subject to privacy and cardinality constraints.
Separate liveness, readiness and dependency health. Define SLOs from user-visible behavior rather than infrastructure vanity metrics. Alert on symptoms and sustained saturation, not every transient error.
Test correlation propagation, redaction, error classification, metric label cardinality, trace creation, cancellation, exception paths and graceful shutdown. Include tests proving sensitive values never reach logs/telemetry exporters.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (evgenygurin/fastmcp-engineering) — no native marketplace selected
npx claudepluginhub p/evgenygurin-fastmcp-engineering58 skills in this plugin
/pydantic-ai-agent-integrationEngineer PydanticAI agents behind explicit application boundaries and integrate them with FastMCP without leaking agent state, prompts, model concerns, or provider details into domain logic./api-contract-schema-engineeringEvidence-first API and MCP contract engineering with Pydantic v2 and JSON Schema./api-lifecycle-versioningEvidence-first API lifecycle, schema evolution and compatibility engineering for FastMCP/MCP servers.Other plugins' skills for the same job