aspire mcp command
aspire mcp - Interact with MCP tools exposed by Aspire resources.
Synopsis
Section titled “Synopsis”aspire mcp [command] [options]Description
Section titled “Description”The aspire mcp command lets you discover and call MCP (Model Context Protocol) tools exposed by resources in a running AppHost. Use it to inspect available tools and invoke them from the terminal.
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.
Commands
Section titled “Commands”The following commands are available:
| Command | Function |
|---|---|
aspire mcp tools | List MCP tools exposed by running resources. |
aspire mcp call | Call an MCP tool on a running resource. |
Examples
Section titled “Examples”-
List MCP tools exposed by the current AppHost:
Aspire CLI aspire mcp tools -
Call a tool on a running resource:
Aspire CLI aspire mcp call myresource mytool