协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
observability-integrations【开发与工程】Configure mcp-agent logging, OpenTelemetry tracing, token accounting, streaming, provider extras, local OpenAI-compatible providers, and LangChain/CrewAI tool adapters.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves mcp-agent observability or optional ecosystem integrations: structured logger transports, OpenTelemetry exporters, usage telemetry, token counters, progress displays, streaming callbacks, provider-specific extras, local OpenAI-compatible endpoints, LangChain tools, or CrewAI tools.
references/logging-and-tracing.md for logger transport configuration, OTEL exporter syntax, trace helpers, token accounting, progress displays, streaming events, and safe event-log inspection.references/provider-integrations.md for optional provider extras, import-vs-credential failures, model selector knobs, LM Studio/local OpenAI-compatible endpoints, and LangChain/CrewAI wrappers.references/troubleshooting.md when config validation, OTEL export, JSONL logs, token counters, progress output, streaming, provider imports, adapters, or local model endpoints fail.python scripts/check_observability_config.py --help before editing config; use --config mcp_agent.config.yaml --secrets mcp_agent.secrets.yaml --json for credential-redacted diagnostics.python scripts/summarize_event_log.py --help and then point it at a small JSONL event log to validate file transport output without replaying interactive progress UI.logger.transports, logger.level, logger.progress_display, and optional file/HTTP settings; prefer file plus console for local debugging and add HTTP only when an endpoint is intentionally configured.otel.enabled: true, otel.service_name, otel.sample_rate, and one or more exporters: console, file, or otlp with endpoint and optional headers.MCPApp.run() and using app.logger, running_app.context.logger, or agent.logger; active spans inject trace_id and span_id into events.generate_stream() events by type and keep callbacks non-blocking; use generate_str_stream() only when text deltas are enough.../core-sdk/SKILL.md for MCPApp, Agent, Settings, config/secrets basics, RequestParams fundamentals, local tool decorators, and normal provider setup.../cli-cloud-operations/SKILL.md for cloud log tailing, cloud logger commands, deployment diagnostics, app/server status, and CLI authentication.../mcp-server-integration/SKILL.md for MCP auth internals, server creation, transport semantics, upstream session lifecycle, and app-as-server behavior.../workflow-patterns/SKILL.md for routers, orchestrators, parallel workflows, evaluator loops, and durable workflow composition.python scripts/check_observability_config.py --config mcp_agent.config.yaml --json
python scripts/summarize_event_log.py logs/mcp-agent.jsonl --limit 50 --json
Both helpers are self-contained and credential-safe. They do not import provider SDKs, contact external collectors, replay interactive displays, or require the original source repository.