MCP Configuration: ${input:} System for Secure API Keys Not Working
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
darwin
Kiro Version
0.1.9
Bug Description
The MCP configuration system with ${input:} variables for secure API key management is not functioning as documented. According to the official documentation and forum discussions (like Cursor's forum), Kiro should support a secure input system similar to VS Code where:
- API keys are defined in an
inputssection - Referenced using
${input:variable_name}syntax - Kiro prompts for the keys securely on first use
- Keys are stored encrypted by the IDE
Current Behavior:
- MCP servers connect but don't prompt for API keys
- Services that require authentication fail with credential errors
- No secure prompt appears despite proper configuration
Configuration Used:
{
"inputs": [
{
"id": "brave_api_key",
"type": "promptString",
"description": "Brave Search API Key",
"password": true
},
{
"id": "github_token",
"type": "promptString",
"description": "GitHub Personal Access Token",
"password": true
}
],
"mcpServers": {
"brave-search": {
"command": "npx",
"args": ["-y", "mcp-server-brave-search"],
"env": {
"BRAVE_API_KEY": "${input:brave_api_key}"
},
"disabled": false,
"autoApprove": ["brave_web_search"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
},
"disabled": false,
"autoApprove": []
}
}
}
Steps to Reproduce
- Configure MCP servers with
${input:}variables in.kiro/settings/mcp.json - Add corresponding entries in
inputssection - Restart Kiro completely
- Try to use a service requiring API authentication (e.g., Brave Search)
- Observe that no prompt appears and service fails with authentication error
Expected Behavior
- On first use of a service requiring API keys, Kiro should prompt securely for the key
- The prompt should be masked (due to
"password": true) - The key should be stored securely by Kiro
- Subsequent uses should work without re-prompting
- Services should authenticate successfully
Conversation ID
No response
Additional Context
Evidence of the issue:
- SQLite MCP server works (no authentication required)
- Brave Search fails with "SUBSCRIPTION_TOKEN_INVALID"
- GitHub MCP works without token (public API access only)
- No secure prompts ever appear
References:
- Similar system discussed in Cursor forum: https://forum.cursor.com/t/secure-input-support-for-mcp-server-configuration-e-g-api-keys/101910
- This appears to be a VS Code-style input system that should work in Kiro
Impact: This prevents secure usage of MCP servers requiring authentication, forcing users to either:
- Hardcode API keys in configuration files (security risk)
- Use environment variables (less convenient)
- Avoid authenticated MCP servers entirely
Workaround: Currently using environment variables, but this defeats the purpose of Kiro's intended secure configuration system.
Hi @punkyard ,
Can you please update KIRO to the most newest and recent version i.e 0.2.38 and retry this configuration. Thank you!
Hi 👋, we're closing this issue due to inactivity. If you're still experiencing this problem, please create a new issue with detailed information so we can investigate and provide the support you need.