Aspire Setup MCP
Agent Buildingaspire__setup_mcpAspire Setup MCP is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Configure the Aspire MCP server to give AI agents access to logs, metrics, and traces. Use this when setting up Aspire MCP, enabling agent telemetry access, connecting to Aspire structured logs, or querying distributed traces from an agent.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/integration/aspire-setup-mcp/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/aspire-setup-mcp, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Follow this guide to set up the Aspire MCP server for agent access to logs and metrics.
What is Aspire MCP?
Aspire MCP (Model Context Protocol) server exposes Aspire's observability data to AI agents:
- Console logs: Real-time stdout/stderr from all services
- Structured logs: Filterable logs with correlation IDs
- Metrics: CPU, memory, HTTP request metrics
- Traces: Distributed tracing across services
Setup Steps
// turbo
-
Initialize Aspire MCP
cd /home/avazalma/projects/BookStore && aspire mcp init- Creates MCP configuration in the project
- Sets up connection between Aspire and MCP clients
-
Verify MCP Configuration
- Check that MCP server config was created
- Aspire MCP integrates with Claude and other MCP-compatible agents
Using Aspire MCP
Once configured, the MCP server provides tools for:
- Querying logs: Filter by service, log level, time range
- Viewing metrics: Get current metric values and trends
- Tracing requests: Follow requests across services via correlation IDs
- Monitoring health: Check service status and health endpoints
Example Usage
After setup, agents can:
- Query logs: "Show me errors from the API service in the last 5 minutes"
- Check metrics: "What's the current memory usage of the web frontend?"
- Debug issues: "Find all logs with correlation ID xyz-123"
Related Skills
Prerequisites:
/aspire__start_solution- Solution must be running first
Next Steps:
/frontend__debug_sse- Debug real-time issues using MCP logs/cache__debug_cache- Debug caching using MCP metrics
See Also:
docs/guides/aspire-guide.mddocs/guides/logging-guide.md- https://learn.microsoft.com/en-us/dotnet/aspire/