Skip to content

Commit 5bf91f9

Browse files
authored
508 add patch back to UI (#511)
* Add PATCH back to ui Signed-off-by: Mihai Criveti <[email protected]> * Add PATCH back to ui Signed-off-by: Mihai Criveti <[email protected]> * Add PATCH back to ui Signed-off-by: Mihai Criveti <[email protected]> --------- Signed-off-by: Mihai Criveti <[email protected]>
1 parent 82fd76a commit 5bf91f9

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

mcpgateway/schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class ToolCreate(BaseModel):
286286
url: Union[str, AnyHttpUrl] = Field(None, description="Tool endpoint URL")
287287
description: Optional[str] = Field(None, description="Tool description")
288288
integration_type: Literal["MCP", "REST"] = Field("MCP", description="Tool integration type: 'MCP' for MCP-compliant tools, 'REST' for REST integrations")
289-
request_type: Literal["GET", "POST", "PUT", "DELETE", "SSE", "STDIO", "STREAMABLEHTTP"] = Field("SSE", description="HTTP method to be used for invoking the tool")
289+
request_type: Literal["GET", "POST", "PUT", "DELETE", "PATCH", "SSE", "STDIO", "STREAMABLEHTTP"] = Field("SSE", description="HTTP method to be used for invoking the tool")
290290
headers: Optional[Dict[str, str]] = Field(None, description="Additional headers to send when invoking the tool")
291291
input_schema: Optional[Dict[str, Any]] = Field(default_factory=lambda: {"type": "object", "properties": {}}, description="JSON Schema for validating tool parameters", alias="inputSchema")
292292
annotations: Optional[Dict[str, Any]] = Field(
@@ -471,7 +471,7 @@ class ToolUpdate(BaseModelWithConfigDict):
471471
name: Optional[str] = Field(None, description="Unique name for the tool")
472472
url: Optional[Union[str, AnyHttpUrl]] = Field(None, description="Tool endpoint URL")
473473
description: Optional[str] = Field(None, description="Tool description")
474-
request_type: Optional[Literal["GET", "POST", "PUT", "DELETE", "SSE", "STDIO", "STREAMABLEHTTP"]] = Field(None, description="HTTP method to be used for invoking the tool")
474+
request_type: Optional[Literal["GET", "POST", "PUT", "DELETE", "PATCH", "SSE", "STDIO", "STREAMABLEHTTP"]] = Field(None, description="HTTP method to be used for invoking the tool")
475475
integration_type: Optional[Literal["MCP", "REST"]] = Field(None, description="Tool integration type")
476476
headers: Optional[Dict[str, str]] = Field(None, description="Additional headers to send when invoking the tool")
477477
input_schema: Optional[Dict[str, Any]] = Field(None, description="JSON Schema for validating tool parameters")

mcpgateway/static/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2958,7 +2958,7 @@ function createParameterForm(parameterCount) {
29582958

29592959
const integrationRequestMap = {
29602960
MCP: ["SSE", "STREAMABLE", "STDIO"],
2961-
REST: ["GET", "POST", "PUT", "DELETE"],
2961+
REST: ["GET", "POST", "PUT", "PATCH", "DELETE"],
29622962
};
29632963

29642964
function updateRequestTypeOptions(preselectedValue = null) {

pytest.ini

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/playwright/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_should_login_with_valid_credentials(self, browser):
3131
page = context.new_page()
3232
# Go directly to admin - HTTP Basic Auth handles authentication
3333
page.goto(f"{BASE_URL}/admin")
34-
#page.screenshot(path="debug_login_page.png")
34+
# page.screenshot(path="debug_login_page.png")
3535

3636
# Verify we successfully accessed the admin page
3737
expect(page).to_have_url(re.compile(r".*admin"))

0 commit comments

Comments
 (0)