Skip to content

Commit 1daf7c2

Browse files
committed
fix: resolve rebase conflicts and update plugin API calls
- Fix imports: mcpgateway.models -> mcpgateway.common.models - Add missing ToolHookType import - Update plugin manager API: tool_pre_invoke -> invoke_hook with ToolHookType - Update plugin manager API: tool_post_invoke -> invoke_hook with ToolHookType - Update HttpHeaderPayload: headers -> root parameter - Create alembic merge migration for CA cert and observability heads - Apply pre-commit formatting fixes (trailing whitespace, tabs, encoding pragma) Signed-off-by: Mihai Criveti <[email protected]>
1 parent 41327c6 commit 1daf7c2

File tree

9 files changed

+39
-12
lines changed

9 files changed

+39
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The default PostgreSQL image has been upgraded from version 17 to 18. This is a
4040
```bash
4141
make compose-upgrade-pg18
4242
```
43-
43+
4444
This will:
4545
- Prompt for confirmation (⚠️ **backup recommended**)
4646
- Run `pg_upgrade` to migrate data from Postgres 17 → 18

charts/mcp-stack/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,13 @@ mcpContextForge:
336336
secret:
337337
# Enable Ed25519 signing
338338
ENABLE_ED25519_SIGNING: "true"
339-
339+
340340
# Current signing key (PEM format)
341341
ED25519_PRIVATE_KEY: |
342342
-----BEGIN PRIVATE KEY-----
343343
MC4CAQAwBQYDK2VwBCIEIJ5pW... (your key here)
344344
-----END PRIVATE KEY-----
345-
345+
346346
# Previous key for rotation (optional)
347347
PREV_ED25519_PRIVATE_KEY: |
348348
-----BEGIN PRIVATE KEY-----

mcp-servers/go/fast-time-server/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.23.10
77
require github.com/mark3labs/mcp-go v0.32.0 // MCP server/runtime
88

99
require (
10-
github.com/google/uuid v1.6.0 // indirect
11-
github.com/spf13/cast v1.7.1 // indirect
12-
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
10+
github.com/google/uuid v1.6.0 // indirect
11+
github.com/spf13/cast v1.7.1 // indirect
12+
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
1313
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- coding: utf-8 -*-
2+
"""merge ca cert and observability heads
3+
4+
Revision ID: aac21d6f9522
5+
Revises: f9101f3b00e3, j4d5e6f7g8h9
6+
Create Date: 2025-11-08 21:43:56.381588
7+
8+
"""
9+
from typing import Sequence, Union
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision: str = 'aac21d6f9522'
14+
down_revision: Union[str, Sequence[str], None] = ('f9101f3b00e3', 'j4d5e6f7g8h9')
15+
branch_labels: Union[str, Sequence[str], None] = None
16+
depends_on: Union[str, Sequence[str], None] = None
17+
18+
19+
def upgrade() -> None:
20+
"""Upgrade schema."""
21+
pass
22+
23+
24+
def downgrade() -> None:
25+
"""Downgrade schema."""
26+
pass

mcpgateway/alembic/versions/f9101f3b00e3_store_ca_certs_for_gateways.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
"""store ca-certs for gateways
23
34
Revision ID: f9101f3b00e3

mcpgateway/services/tool_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
from mcpgateway.db import server_tool_association
4747
from mcpgateway.db import Tool as DbTool
4848
from mcpgateway.db import ToolMetric
49-
from mcpgateway.models import Gateway as PydanticGateway
50-
from mcpgateway.models import TextContent
51-
from mcpgateway.models import Tool as PydanticTool
52-
from mcpgateway.models import ToolResult
49+
from mcpgateway.common.models import Gateway as PydanticGateway
50+
from mcpgateway.common.models import TextContent
51+
from mcpgateway.common.models import Tool as PydanticTool
52+
from mcpgateway.common.models import ToolResult
5353
from mcpgateway.observability import create_span
54-
from mcpgateway.plugins.framework import GlobalContext, HttpHeaderPayload, PluginError, PluginManager, PluginViolationError, ToolPostInvokePayload, ToolPreInvokePayload
54+
from mcpgateway.plugins.framework import GlobalContext, HttpHeaderPayload, PluginError, PluginManager, PluginViolationError, ToolHookType, ToolPostInvokePayload, ToolPreInvokePayload
5555
from mcpgateway.plugins.framework.constants import GATEWAY_METADATA, TOOL_METADATA
5656
from mcpgateway.schemas import ToolCreate, ToolRead, ToolUpdate, TopPerformer
5757
from mcpgateway.services.logging_service import LoggingService

mcpgateway/templates/admin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5054,7 +5054,7 @@ <h3 class="text-lg font-bold mb-4 dark:text-gray-200">
50545054
</div>
50555055
</div>
50565056
<div id="ca-certificate-feedback" class="mt-2 text-sm"></div>
5057-
</div>
5057+
</div>
50585058
<div class="mt-6">
50595059
<button
50605060
type="submit"

mcpgateway/utils/generate_keys.py

100644100755
File mode changed.

mcpgateway/utils/validate_signature.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)