aspire
aspire copied to clipboard
Use Proper Inputs for MCP config
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:
We should make it easy to copy the API key as well for hte pop up
cc @JamesNK