fix: MCP config type should be 'http' not 'url' for Claude Code

This commit is contained in:
2026-04-02 15:17:51 +08:00
parent ea1aff7200
commit a34f486d7c

View File

@@ -19,7 +19,7 @@ export default function McpIntegration({ project }: { project: Project }) {
const configSnippet = JSON.stringify({
mcpServers: {
[serverName]: {
type: 'url',
type: 'http',
url: mcpUrl,
headers: { Authorization: `Bearer ${apiKey || '<your-api-key>'}` },
},