aspire icon indicating copy to clipboard operation
aspire copied to clipboard

Use Proper Inputs for MCP config

Open jamesmontemagno opened this issue 2 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Describe the bug

Right now for the MCP we are hardcoding the api key!!!!!!! AHHHH no! Use inputs!!!

This is what it tells me

{
	"servers": {
		"aspire-dashboard": {
			"type": "http",
			"url": "http://localhost:23052/mcp",
			"headers": {
				"x-mcp-api-key": "MY_KEY_HERE"
			}
		}
	},
	"inputs": []
}

Expected Behavior

It should be this:

{
  "inputs": [
    {
      "id": "x_mcp_api_key",
      "type": "promptString",
      "description": "Enter x-mcp-api-key",
      "password": true
    }
  ],
  "servers": {
    "aspire-dashboard": {
      "type": "http",
      "url": "http://localhost:23052/mcp",
      "headers": {
        "x-mcp-api-key": "${input:x_mcp_api_key}"
      }
    }
  }
}

See https://mcpbadge.dev/mcp please!

Steps To Reproduce

Open up the mcp config in dashboard

Exceptions (if any)

No response

.NET Version info

10

Anything else?

13 aspire

Badge Urls look lik ethis:

Install in VS Code Install in VS Code Insiders Install in Visual Studio

We should make it easy to copy the API key as well for hte pop up

jamesmontemagno avatar Nov 16 '25 03:11 jamesmontemagno

cc @JamesNK

davidfowl avatar Nov 16 '25 05:11 davidfowl