|
530 | 530 | "CustomResult": { |
531 | 531 | "description": "A catch-all response either side can use for custom requests." |
532 | 532 | }, |
| 533 | + "DiscoverRequestMethod": { |
| 534 | + "type": "string", |
| 535 | + "format": "const", |
| 536 | + "const": "server/discover" |
| 537 | + }, |
533 | 538 | "ElicitResult": { |
534 | 539 | "description": "The result returned by a client in response to an elicitation request.\n\nContains the user's decision (accept/decline/cancel) and optionally their input data\nif they chose to accept the request.", |
535 | 540 | "type": "object", |
|
1038 | 1043 | }, |
1039 | 1044 | "anyOf": [ |
1040 | 1045 | { |
1041 | | - "$ref": "#/definitions/RequestNoParam" |
| 1046 | + "$ref": "#/definitions/Request" |
1042 | 1047 | }, |
1043 | 1048 | { |
1044 | | - "$ref": "#/definitions/Request" |
| 1049 | + "$ref": "#/definitions/RequestNoParam" |
1045 | 1050 | }, |
1046 | 1051 | { |
1047 | 1052 | "$ref": "#/definitions/Request2" |
|
1052 | 1057 | { |
1053 | 1058 | "$ref": "#/definitions/Request4" |
1054 | 1059 | }, |
| 1060 | + { |
| 1061 | + "$ref": "#/definitions/Request5" |
| 1062 | + }, |
1055 | 1063 | { |
1056 | 1064 | "$ref": "#/definitions/RequestOptionalParam" |
1057 | 1065 | }, |
|
1061 | 1069 | { |
1062 | 1070 | "$ref": "#/definitions/RequestOptionalParam3" |
1063 | 1071 | }, |
1064 | | - { |
1065 | | - "$ref": "#/definitions/Request5" |
1066 | | - }, |
1067 | 1072 | { |
1068 | 1073 | "$ref": "#/definitions/Request6" |
1069 | 1074 | }, |
|
1073 | 1078 | { |
1074 | 1079 | "$ref": "#/definitions/Request8" |
1075 | 1080 | }, |
| 1081 | + { |
| 1082 | + "$ref": "#/definitions/Request9" |
| 1083 | + }, |
1076 | 1084 | { |
1077 | 1085 | "$ref": "#/definitions/RequestOptionalParam4" |
1078 | 1086 | }, |
1079 | 1087 | { |
1080 | | - "$ref": "#/definitions/Request9" |
| 1088 | + "$ref": "#/definitions/Request10" |
1081 | 1089 | }, |
1082 | 1090 | { |
1083 | 1091 | "$ref": "#/definitions/RequestOptionalParam5" |
1084 | 1092 | }, |
1085 | 1093 | { |
1086 | | - "$ref": "#/definitions/Request10" |
| 1094 | + "$ref": "#/definitions/Request11" |
1087 | 1095 | }, |
1088 | 1096 | { |
1089 | | - "$ref": "#/definitions/Request11" |
| 1097 | + "$ref": "#/definitions/Request12" |
1090 | 1098 | }, |
1091 | 1099 | { |
1092 | 1100 | "$ref": "#/definitions/CustomRequest" |
|
1426 | 1434 | "type": "object", |
1427 | 1435 | "properties": { |
1428 | 1436 | "method": { |
1429 | | - "$ref": "#/definitions/InitializeResultMethod" |
| 1437 | + "$ref": "#/definitions/DiscoverRequestMethod" |
1430 | 1438 | }, |
1431 | 1439 | "params": { |
1432 | | - "$ref": "#/definitions/InitializeRequestParams" |
| 1440 | + "$ref": "#/definitions/EmptyObject" |
1433 | 1441 | } |
1434 | 1442 | }, |
1435 | 1443 | "required": [ |
|
1438 | 1446 | ] |
1439 | 1447 | }, |
1440 | 1448 | "Request10": { |
| 1449 | + "description": "Represents a JSON-RPC request with method, parameters, and extensions.\n\nThis is the core structure for all MCP requests, containing:\n- `method`: The name of the method being called\n- `params`: The parameters for the method\n- `extensions`: Additional context data (similar to HTTP headers)", |
| 1450 | + "type": "object", |
| 1451 | + "properties": { |
| 1452 | + "method": { |
| 1453 | + "$ref": "#/definitions/GetTaskMethod" |
| 1454 | + }, |
| 1455 | + "params": { |
| 1456 | + "$ref": "#/definitions/GetTaskParams" |
| 1457 | + } |
| 1458 | + }, |
| 1459 | + "required": [ |
| 1460 | + "method", |
| 1461 | + "params" |
| 1462 | + ] |
| 1463 | + }, |
| 1464 | + "Request11": { |
1441 | 1465 | "description": "Represents a JSON-RPC request with method, parameters, and extensions.\n\nThis is the core structure for all MCP requests, containing:\n- `method`: The name of the method being called\n- `params`: The parameters for the method\n- `extensions`: Additional context data (similar to HTTP headers)", |
1442 | 1466 | "type": "object", |
1443 | 1467 | "properties": { |
|
1453 | 1477 | "params" |
1454 | 1478 | ] |
1455 | 1479 | }, |
1456 | | - "Request11": { |
| 1480 | + "Request12": { |
1457 | 1481 | "description": "Represents a JSON-RPC request with method, parameters, and extensions.\n\nThis is the core structure for all MCP requests, containing:\n- `method`: The name of the method being called\n- `params`: The parameters for the method\n- `extensions`: Additional context data (similar to HTTP headers)", |
1458 | 1482 | "type": "object", |
1459 | 1483 | "properties": { |
|
1474 | 1498 | "type": "object", |
1475 | 1499 | "properties": { |
1476 | 1500 | "method": { |
1477 | | - "$ref": "#/definitions/CompleteRequestMethod" |
| 1501 | + "$ref": "#/definitions/InitializeResultMethod" |
1478 | 1502 | }, |
1479 | 1503 | "params": { |
1480 | | - "$ref": "#/definitions/CompleteRequestParams" |
| 1504 | + "$ref": "#/definitions/InitializeRequestParams" |
1481 | 1505 | } |
1482 | 1506 | }, |
1483 | 1507 | "required": [ |
|
1490 | 1514 | "type": "object", |
1491 | 1515 | "properties": { |
1492 | 1516 | "method": { |
1493 | | - "$ref": "#/definitions/SetLevelRequestMethod" |
| 1517 | + "$ref": "#/definitions/CompleteRequestMethod" |
1494 | 1518 | }, |
1495 | 1519 | "params": { |
1496 | | - "$ref": "#/definitions/SetLevelRequestParams" |
| 1520 | + "$ref": "#/definitions/CompleteRequestParams" |
1497 | 1521 | } |
1498 | 1522 | }, |
1499 | 1523 | "required": [ |
|
1506 | 1530 | "type": "object", |
1507 | 1531 | "properties": { |
1508 | 1532 | "method": { |
1509 | | - "$ref": "#/definitions/GetPromptRequestMethod" |
| 1533 | + "$ref": "#/definitions/SetLevelRequestMethod" |
1510 | 1534 | }, |
1511 | 1535 | "params": { |
1512 | | - "$ref": "#/definitions/GetPromptRequestParams" |
| 1536 | + "$ref": "#/definitions/SetLevelRequestParams" |
1513 | 1537 | } |
1514 | 1538 | }, |
1515 | 1539 | "required": [ |
|
1522 | 1546 | "type": "object", |
1523 | 1547 | "properties": { |
1524 | 1548 | "method": { |
1525 | | - "$ref": "#/definitions/ReadResourceRequestMethod" |
| 1549 | + "$ref": "#/definitions/GetPromptRequestMethod" |
1526 | 1550 | }, |
1527 | 1551 | "params": { |
1528 | | - "$ref": "#/definitions/ReadResourceRequestParams" |
| 1552 | + "$ref": "#/definitions/GetPromptRequestParams" |
1529 | 1553 | } |
1530 | 1554 | }, |
1531 | 1555 | "required": [ |
|
1538 | 1562 | "type": "object", |
1539 | 1563 | "properties": { |
1540 | 1564 | "method": { |
1541 | | - "$ref": "#/definitions/SubscribeRequestMethod" |
| 1565 | + "$ref": "#/definitions/ReadResourceRequestMethod" |
1542 | 1566 | }, |
1543 | 1567 | "params": { |
1544 | | - "$ref": "#/definitions/SubscribeRequestParams" |
| 1568 | + "$ref": "#/definitions/ReadResourceRequestParams" |
1545 | 1569 | } |
1546 | 1570 | }, |
1547 | 1571 | "required": [ |
|
1554 | 1578 | "type": "object", |
1555 | 1579 | "properties": { |
1556 | 1580 | "method": { |
1557 | | - "$ref": "#/definitions/UnsubscribeRequestMethod" |
| 1581 | + "$ref": "#/definitions/SubscribeRequestMethod" |
1558 | 1582 | }, |
1559 | 1583 | "params": { |
1560 | | - "$ref": "#/definitions/UnsubscribeRequestParams" |
| 1584 | + "$ref": "#/definitions/SubscribeRequestParams" |
1561 | 1585 | } |
1562 | 1586 | }, |
1563 | 1587 | "required": [ |
|
1570 | 1594 | "type": "object", |
1571 | 1595 | "properties": { |
1572 | 1596 | "method": { |
1573 | | - "$ref": "#/definitions/CallToolRequestMethod" |
| 1597 | + "$ref": "#/definitions/UnsubscribeRequestMethod" |
1574 | 1598 | }, |
1575 | 1599 | "params": { |
1576 | | - "$ref": "#/definitions/CallToolRequestParams" |
| 1600 | + "$ref": "#/definitions/UnsubscribeRequestParams" |
1577 | 1601 | } |
1578 | 1602 | }, |
1579 | 1603 | "required": [ |
|
1586 | 1610 | "type": "object", |
1587 | 1611 | "properties": { |
1588 | 1612 | "method": { |
1589 | | - "$ref": "#/definitions/GetTaskMethod" |
| 1613 | + "$ref": "#/definitions/CallToolRequestMethod" |
1590 | 1614 | }, |
1591 | 1615 | "params": { |
1592 | | - "$ref": "#/definitions/GetTaskParams" |
| 1616 | + "$ref": "#/definitions/CallToolRequestParams" |
1593 | 1617 | } |
1594 | 1618 | }, |
1595 | 1619 | "required": [ |
|
0 commit comments