Skip to content

Use Proper Inputs for MCP config #12980

@jamesmontemagno

Description

@jamesmontemagno

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions