You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove Integration Type: MCP
Signed-off-by: NAYANAR <[email protected]>
* testcase fixed
Signed-off-by: NAYANAR <[email protected]>
* Fix validation logic and tests after MCP integration type removal
- Update ToolCreate and ToolUpdate validation to only accept REST integration type
- Fix test cases that still referenced MCP integration type
- Update mock return values and assertions in test files
- Ensure all doctests pass with REST-only validation
- Maintain full test suite compatibility
All tests now pass: 1307 passed, 10 skipped
---------
Signed-off-by: NAYANAR <[email protected]>
Co-authored-by: NAYANAR <[email protected]>
Co-authored-by: Mihai Criveti <[email protected]>
Copy file name to clipboardExpand all lines: mcpgateway/schemas.py
+21-24Lines changed: 21 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -294,8 +294,8 @@ class ToolCreate(BaseModel):
294
294
name (str): Unique name for the tool.
295
295
url (Union[str, AnyHttpUrl]): Tool endpoint URL.
296
296
description (Optional[str]): Tool description.
297
-
integration_type (Literal["MCP", "REST"]): Tool integration type. 'MCP' for MCP-compliant tools, 'REST' for REST integrations.
298
-
request_type (Literal["GET", "POST", "PUT", "DELETE", "SSE", "STDIO", "STREAMABLEHTTP"]): HTTP method to be used for invoking the tool.
297
+
integration_type (Literal["REST"]): Tool integration type for REST integrations.
298
+
request_type (Literal["GET", "POST", "PUT", "DELETE", "PATCH"]): HTTP method to be used for invoking the tool.
299
299
headers (Optional[Dict[str, str]]): Additional headers to send when invoking the tool.
300
300
input_schema (Optional[Dict[str, Any]]): JSON Schema for validating tool parameters. Alias 'inputSchema'.
301
301
annotations (Optional[Dict[str, Any]]): Tool annotations for behavior hints such as title, readOnlyHint, destructiveHint, idempotentHint, openWorldHint.
@@ -309,7 +309,7 @@ class ToolCreate(BaseModel):
309
309
name: str=Field(..., description="Unique name for the tool")
integration_type: Literal["MCP", "REST"] =Field("MCP", description="Tool integration type: 'MCP' for MCP-compliant tools, 'REST' for REST integrations")
312
+
integration_type: Literal["REST"] =Field("REST", description="'REST' for REST integrations")
313
313
request_type: Literal["GET", "POST", "PUT", "DELETE", "PATCH", "SSE", "STDIO", "STREAMABLEHTTP"] =Field("SSE", description="HTTP method to be used for invoking the tool")
314
314
headers: Optional[Dict[str, str]] =Field(None, description="Additional headers to send when invoking the tool")
request_type: Optional[Literal["GET", "POST", "PUT", "DELETE", "PATCH", "SSE", "STDIO", "STREAMABLEHTTP"]] =Field(None, description="HTTP method to be used for invoking the tool")
0 commit comments