Skip to content
Docs Try Aspire

aspire agent command

aspire agent - Manage AI agent integrations.

Aspire CLI
aspire agent [command] [options]

The aspire agent command manages AI agent integrations for Aspire. This includes starting the MCP (Model Context Protocol) server and initializing agent environment configurations. The MCP server enables AI assistants and development tools to interact with your Aspire AppHost, providing capabilities such as resource management, diagnostics, and observability.

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.

The following commands are available:

CommandStatusFunction
aspire agent mcpStableStart the MCP (Model Context Protocol) server.
aspire agent initStableInitialize MCP server configuration for detected agent environments.