Skip to content
Docs Try Aspire

aspire agent mcp command

aspire agent mcp - Start the MCP (Model Context Protocol) server.

Aspire CLI
aspire agent mcp [options]

The aspire agent mcp command starts the MCP (Model Context Protocol) server, which enables AI assistants and development tools to interact with your Aspire AppHost. The MCP server provides a standardized interface for resource management, diagnostics, and observability operations.

When the server is running, MCP-compatible clients can connect to it to:

  • List and manage Aspire resources
  • View structured logs and traces
  • Execute resource commands (start, stop, restart)
  • Query integration information

The following options are available:

  • -?, -h, --help

    Prints help and usage documentation for the available commands and options.

  • -l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning>

    Set the minimum log level for console output. Use this option to increase diagnostics while troubleshooting or reduce output in scripted runs.

  • --non-interactive

    Run the command in non-interactive mode, disabling all interactive prompts and spinners.

  • --nologo

    Suppress the startup banner and telemetry notice.

  • --banner

    Display the animated Aspire CLI welcome banner.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

  • Start the MCP server:

    Aspire CLI
    aspire agent mcp