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.

  • -d, --debug

    Enable debug logging to the console, which prints detailed information about what Aspire CLI is doing when a command is run.

  • --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.