aspire agent init command
aspire agent init - Initialize MCP server configuration for detected agent environments.
Synopsis
Section titled “Synopsis”aspire agent init [options]Description
Section titled “Description”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
Options
Section titled “Options”The following options are available:
-
-?, -h, --helpPrints 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-interactiveRun the command in non-interactive mode, disabling all interactive prompts and spinners.
-
--nologoSuppress the startup banner and telemetry notice.
-
--bannerDisplay the animated Aspire CLI welcome banner.
-
--wait-for-debuggerWait for a debugger to attach before running a command.
Examples
Section titled “Examples”-
Initialize MCP configuration for detected agent environments:
Aspire CLI aspire agent init