|
377 | 377 | }, |
378 | 378 | "url": { |
379 | 379 | "type": "string", |
380 | | - "description": "URL template for the streamable-http transport. Variables in {curly_braces} can reference argument valueHints, argument names, or environment variable names from the parent Package context. After variable substitution, this should produce a valid URI.", |
| 380 | + "description": "URL template for the streamable-http transport. Variables in {curly_braces} can reference argument valueHints, argument names, or environment variable names from the parent Package. After variable substitution, this should produce a valid URI.", |
381 | 381 | "example": "https://api.example.com/mcp" |
382 | 382 | }, |
383 | 383 | "headers": { |
|
407 | 407 | "url": { |
408 | 408 | "type": "string", |
409 | 409 | "format": "uri", |
410 | | - "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} can reference argument valueHints, argument names, or environment variable names from the parent Package context. After variable substitution, this should produce a valid URI.", |
| 410 | + "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} can reference argument valueHints, argument names, or environment variable names from the parent Package. After variable substitution, this should produce a valid URI.", |
411 | 411 | "example": "https://mcp-fs.example.com/sse" |
412 | 412 | }, |
413 | 413 | "headers": { |
|
419 | 419 | } |
420 | 420 | } |
421 | 421 | }, |
422 | | - "RemoteStreamableHttpTransport": { |
423 | | - "allOf": [ |
424 | | - { |
425 | | - "$ref": "#/definitions/StreamableHttpTransport" |
| 422 | + "RemoteTransport": { |
| 423 | + "type": "object", |
| 424 | + "required": [ |
| 425 | + "type", |
| 426 | + "url" |
| 427 | + ], |
| 428 | + "properties": { |
| 429 | + "type": { |
| 430 | + "type": "string", |
| 431 | + "enum": [ |
| 432 | + "streamable-http", |
| 433 | + "sse" |
| 434 | + ], |
| 435 | + "description": "Remote transport type (only streamable-http and sse are supported for remote endpoints)" |
426 | 436 | }, |
427 | | - { |
428 | | - "type": "object", |
429 | | - "properties": { |
430 | | - "url": { |
431 | | - "type": "string", |
432 | | - "description": "URL template for the streamable-http transport. Variables in {curly_braces} reference variable names from the 'variables' object. If variables are not provided, {curly_braces} should be treated as literal text. After variable substitution, this should produce a valid URI.", |
433 | | - "example": "https://api.example.com/mcp/{tenant_id}" |
434 | | - }, |
435 | | - "variables": { |
436 | | - "type": "object", |
437 | | - "description": "Configuration variables that can be referenced in URL template {curly_braces}. The key is the variable name, and the value defines the variable properties.", |
438 | | - "additionalProperties": { |
439 | | - "$ref": "#/definitions/Input" |
440 | | - } |
441 | | - } |
| 437 | + "url": { |
| 438 | + "type": "string", |
| 439 | + "description": "URL template for the remote transport. Variables in {curly_braces} reference variable names from the 'variables' object. If variables are not provided, {curly_braces} should be treated as literal text. After variable substitution, this should produce a valid URI.", |
| 440 | + "example": "https://api.example.com/mcp/{tenant_id}" |
| 441 | + }, |
| 442 | + "headers": { |
| 443 | + "type": "array", |
| 444 | + "description": "HTTP headers to include", |
| 445 | + "items": { |
| 446 | + "$ref": "#/definitions/KeyValueInput" |
442 | 447 | } |
443 | | - } |
444 | | - ] |
445 | | - }, |
446 | | - "RemoteSseTransport": { |
447 | | - "allOf": [ |
448 | | - { |
449 | | - "$ref": "#/definitions/SseTransport" |
450 | 448 | }, |
451 | | - { |
| 449 | + "variables": { |
452 | 450 | "type": "object", |
453 | | - "properties": { |
454 | | - "url": { |
455 | | - "type": "string", |
456 | | - "format": "uri", |
457 | | - "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} reference variable names from the 'variables' object. If variables are not provided, {curly_braces} should be treated as literal text. After variable substitution, this should produce a valid URI.", |
458 | | - "example": "https://mcp-fs.example.com/sse/{tenant_id}" |
459 | | - }, |
460 | | - "variables": { |
461 | | - "type": "object", |
462 | | - "description": "Configuration variables that can be referenced in URL template {curly_braces}. The key is the variable name, and the value defines the variable properties.", |
463 | | - "additionalProperties": { |
464 | | - "$ref": "#/definitions/Input" |
465 | | - } |
466 | | - } |
| 451 | + "description": "Configuration variables that can be referenced in URL template {curly_braces}. The key is the variable name, and the value defines the variable properties.", |
| 452 | + "additionalProperties": { |
| 453 | + "$ref": "#/definitions/Input" |
467 | 454 | } |
468 | 455 | } |
469 | | - ] |
| 456 | + } |
470 | 457 | }, |
471 | 458 | "ServerDetail": { |
472 | 459 | "description": "Schema for a static representation of an MCP server. Used in various contexts related to discovery, installation, and configuration.", |
|
492 | 479 | "remotes": { |
493 | 480 | "type": "array", |
494 | 481 | "items": { |
495 | | - "anyOf": [ |
496 | | - { |
497 | | - "$ref": "#/definitions/RemoteStreamableHttpTransport" |
498 | | - }, |
499 | | - { |
500 | | - "$ref": "#/definitions/RemoteSseTransport" |
501 | | - } |
502 | | - ] |
| 482 | + "$ref": "#/definitions/RemoteTransport" |
503 | 483 | } |
504 | 484 | }, |
505 | 485 | "_meta": { |
|
0 commit comments