Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/cli/src/commands/mcp/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ async function addMcpServer(
break;
case 'http':
newServer = {
url: commandOrUrl,
type: 'http',
httpUrl: commandOrUrl,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While this change correctly fixes the validation bug, it uses the httpUrl property which is marked as deprecated in MCPServerConfig. The preferred modern approach is using url with type: 'http'. This highlights an inconsistency between the CLI's validation schema and the core library's design. This fix is acceptable, but a follow-up issue should be created to align the schema and migrate away from the deprecated httpUrl property to prevent future maintenance issues.

headers,
timeout,
trust,
Expand Down