Skip to content
Docs Try Aspire

aspire mcp command

aspire mcp - Interact with MCP tools exposed by Aspire resources.

Aspire CLI
aspire mcp [command] [options]

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.

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.

The following commands are available:

CommandFunction
aspire mcp toolsList MCP tools exposed by running resources.
aspire mcp callCall an MCP tool on a running resource.
  • 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