# aspire agent command

## Name

`aspire agent` - Manage AI agent integrations.

## Synopsis

```bash title="Aspire CLI"
aspire agent [command] [options]
```

<AsciinemaPlayer src="/casts/aspire-agent.cast" poster="npt:0:01" rows={23} loop={false} speed={.5} />

## Description

The `aspire agent` command manages AI agent integrations for Aspire. This includes starting the <abbr title="Model Context Protocol" data-tooltip-placement="top">MCP</abbr> (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.

## Options

The following options are available:

- <Include relativePath="reference/cli/includes/option-help.md" />

- <Include relativePath="reference/cli/includes/option-log-level.md" />

- <Include relativePath="reference/cli/includes/option-non-interactive.md" />

- <Include relativePath="reference/cli/includes/option-nologo.md" />

- <Include relativePath="reference/cli/includes/option-banner.md" />

- <Include relativePath="reference/cli/includes/option-wait.md" />

## Commands

The following commands are available:

| Command                                      | Status | Function                                                             |
| -------------------------------------------- | ------ | -------------------------------------------------------------------- |
| [`aspire agent mcp`](../aspire-agent-mcp/)   | Stable | Start the MCP (Model Context Protocol) server.                       |
| [`aspire agent init`](../aspire-agent-init/) | Stable | Initialize MCP server configuration for detected agent environments. |

## See also

- [aspire agent mcp command](../aspire-agent-mcp/)
- [aspire agent init command](../aspire-agent-init/)