|
| 1 | +POST {{base}}/v1/catalog/self/v1/mcp |
| 2 | +Content-Type: application/json |
| 3 | +``` |
| 4 | +{ |
| 5 | + "jsonrpc": "2.0", |
| 6 | + "id": 1, |
| 7 | + "method": "initialize", |
| 8 | + "params": { |
| 9 | + "protocolVersion": "2025-11-25", |
| 10 | + "capabilities": {}, |
| 11 | + "clientInfo": { "name": "hurl", "version": "1.0.0" } |
| 12 | + } |
| 13 | +} |
| 14 | +``` |
| 15 | +HTTP 200 |
| 16 | +Content-Type: application/json |
| 17 | +Access-Control-Allow-Origin: http://localhost:8000 |
| 18 | +Link: </v1/catalog/self/v1/schemas/mcp/response>; rel="describedby" |
| 19 | +[Captures] |
| 20 | +last_response: body |
| 21 | +schema_path: header "Link" regex "</v1/catalog([^>]+)>" |
| 22 | +[Asserts] |
| 23 | +jsonpath "$.jsonrpc" == "2.0" |
| 24 | +jsonpath "$.id" not exists |
| 25 | +jsonpath "$.error.code" == 1 |
| 26 | +jsonpath "$.error.message" == "Enterprise edition required" |
| 27 | +jsonpath "$.error.data" == "MCP support is only available in the Enterprise edition of Sourcemeta One" |
| 28 | + |
| 29 | +POST {{base}}/v1/catalog/self/v1/api/schemas/evaluate{{schema_path}} |
| 30 | +``` |
| 31 | +{{last_response}} |
| 32 | +``` |
| 33 | +HTTP 200 |
| 34 | +[Asserts] |
| 35 | +jsonpath "$.valid" == true |
| 36 | + |
| 37 | +POST {{base}}/v1/catalog/self/v1/mcp |
| 38 | +Content-Type: application/json |
| 39 | +``` |
| 40 | +{ "jsonrpc": "2.0", "method": "notifications/initialized" } |
| 41 | +``` |
| 42 | +HTTP 200 |
| 43 | +Content-Type: application/json |
| 44 | +Access-Control-Allow-Origin: http://localhost:8000 |
| 45 | +Link: </v1/catalog/self/v1/schemas/mcp/response>; rel="describedby" |
| 46 | +[Captures] |
| 47 | +last_response: body |
| 48 | +schema_path: header "Link" regex "</v1/catalog([^>]+)>" |
| 49 | +[Asserts] |
| 50 | +jsonpath "$.jsonrpc" == "2.0" |
| 51 | +jsonpath "$.id" not exists |
| 52 | +jsonpath "$.error.code" == 1 |
| 53 | +jsonpath "$.error.message" == "Enterprise edition required" |
| 54 | +jsonpath "$.error.data" == "MCP support is only available in the Enterprise edition of Sourcemeta One" |
| 55 | + |
| 56 | +POST {{base}}/v1/catalog/self/v1/api/schemas/evaluate{{schema_path}} |
| 57 | +``` |
| 58 | +{{last_response}} |
| 59 | +``` |
| 60 | +HTTP 200 |
| 61 | +[Asserts] |
| 62 | +jsonpath "$.valid" == true |
| 63 | + |
| 64 | +POST {{base}}/v1/catalog/self/v1/mcp |
| 65 | +Content-Type: application/json |
| 66 | +``` |
| 67 | +this is not even json |
| 68 | +``` |
| 69 | +HTTP 200 |
| 70 | +Content-Type: application/json |
| 71 | +Access-Control-Allow-Origin: http://localhost:8000 |
| 72 | +Link: </v1/catalog/self/v1/schemas/mcp/response>; rel="describedby" |
| 73 | +[Captures] |
| 74 | +last_response: body |
| 75 | +schema_path: header "Link" regex "</v1/catalog([^>]+)>" |
| 76 | +[Asserts] |
| 77 | +jsonpath "$.jsonrpc" == "2.0" |
| 78 | +jsonpath "$.id" not exists |
| 79 | +jsonpath "$.error.code" == 1 |
| 80 | +jsonpath "$.error.message" == "Enterprise edition required" |
| 81 | +jsonpath "$.error.data" == "MCP support is only available in the Enterprise edition of Sourcemeta One" |
| 82 | + |
| 83 | +POST {{base}}/v1/catalog/self/v1/api/schemas/evaluate{{schema_path}} |
| 84 | +``` |
| 85 | +{{last_response}} |
| 86 | +``` |
| 87 | +HTTP 200 |
| 88 | +[Asserts] |
| 89 | +jsonpath "$.valid" == true |
| 90 | + |
| 91 | +POST {{base}}/v1/catalog/self/v1/mcp |
| 92 | +Content-Type: application/json |
| 93 | +``` |
| 94 | +[ { "jsonrpc": "2.0", "id": 1, "method": "ping" } ] |
| 95 | +``` |
| 96 | +HTTP 200 |
| 97 | +Content-Type: application/json |
| 98 | +Access-Control-Allow-Origin: http://localhost:8000 |
| 99 | +Link: </v1/catalog/self/v1/schemas/mcp/response>; rel="describedby" |
| 100 | +[Captures] |
| 101 | +last_response: body |
| 102 | +schema_path: header "Link" regex "</v1/catalog([^>]+)>" |
| 103 | +[Asserts] |
| 104 | +jsonpath "$.jsonrpc" == "2.0" |
| 105 | +jsonpath "$.id" not exists |
| 106 | +jsonpath "$.error.code" == 1 |
| 107 | +jsonpath "$.error.message" == "Enterprise edition required" |
| 108 | +jsonpath "$.error.data" == "MCP support is only available in the Enterprise edition of Sourcemeta One" |
| 109 | + |
| 110 | +POST {{base}}/v1/catalog/self/v1/api/schemas/evaluate{{schema_path}} |
| 111 | +``` |
| 112 | +{{last_response}} |
| 113 | +``` |
| 114 | +HTTP 200 |
| 115 | +[Asserts] |
| 116 | +jsonpath "$.valid" == true |
0 commit comments