aspire mcp tools command
Name
aspire mcp tools - List MCP tools exposed by running resources.
Synopsis
aspire mcp tools [options]
Description
The aspire mcp tools command lists the MCP tools exposed by resources in a running AppHost. Use it to discover which resources expose tools and which tool names you can pass to aspire mcp call.
When executed without the --apphost option, the command:
- 1
Scans for all running AppHost processes.
- 2
If multiple AppHosts are running within the current directory scope, prompts you to select which one to target.
- 3
If only one AppHost is running in scope, connects to it directly.
- 4
If no in-scope AppHosts are found but out-of-scope AppHosts exist, displays all running AppHosts for selection.
Options
The following options are available:
-
--format <Json|Table>
Output format. Use
Jsonfor machine-readable output suitable for scripting and automation. Defaults toTable. -
-
-
-
-
Examples
-
-
-
-
List MCP tools for the current AppHost:
aspire mcp toolsOutput the tool list as JSON:
aspire mcp tools --format JsonTarget a specific AppHost project:
aspire mcp tools --apphost './src/MyApp.AppHost/MyApp.AppHost.csproj'