Skip to content
Docs Try Aspire

aspire agent init command

aspire agent init - Initialize MCP server configuration for detected agent environments.

Aspire CLI
aspire agent init [options]

The aspire agent init command initializes the MCP (Model Context Protocol) server configuration for your development environment. It detects agent environments (such as VS Code with GitHub Copilot, or other MCP-compatible tools) and creates the necessary configuration files to enable MCP integration.

The command performs the following:

  • Detects supported agent environments in the current workspace
  • Creates or updates MCP configuration files for each detected environment
  • Sets up the connection between the agent and the Aspire MCP server

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.

  • Initialize MCP configuration for detected agent environments:

    Aspire CLI
    aspire agent init