Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mcpgateway/plugins/framework/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""Location: ./mcpgateway/plugins/framework/base.py
Copyright 2025
SPDX-License-Identifier: Apache-2.0
-Authors: Teryl Taylor, Mihai Criveti
Authors: Teryl Taylor, Mihai Criveti

Base plugin implementation.
This module implements the base plugin object.
Expand Down
6 changes: 3 additions & 3 deletions mcpgateway/plugins/framework/external/mcp/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, config_path: str | None = None) -> None:
If set, this attribute overrides the value in PLUGINS_CONFIG_PATH.

Examples:
>>> server = ExternalPluginServer(config_path="./tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml")
>>> server = ExternalPluginServer(config_path="./tests/unit/mcpgateway.plugins/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml")
>>> server is not None
True
"""
Expand All @@ -57,7 +57,7 @@ async def get_plugin_configs(self) -> list[dict]:

Examples:
>>> import asyncio
>>> server = ExternalPluginServer(config_path="./tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml")
>>> server = ExternalPluginServer(config_path="./tests/unit/mcpgateway.plugins/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml")
>>> plugins = asyncio.run(server.get_plugin_configs())
>>> len(plugins) > 0
True
Expand All @@ -79,7 +79,7 @@ async def get_plugin_config(self, name: str) -> dict | None:

Examples:
>>> import asyncio
>>> server = ExternalPluginServer(config_path="./tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml")
>>> server = ExternalPluginServer(config_path="./tests/unit/mcpgateway.plugins/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml")
>>> c = asyncio.run(server.get_plugin_config(name = "DenyListPlugin"))
>>> c is not None
True
Expand Down
11 changes: 11 additions & 0 deletions mcpgateway/plugins/framework/generated/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
"""Generated protobuf Python classes for ContextForge plugins.

This package contains standard protobuf Python classes (_pb2.py files) generated
from protobuf schemas. These are used for cross-language serialization.

The canonical Python implementation uses Pydantic models in mcpgateway.plugins.framework.models
which have model_dump_pb() and model_validate_pb() methods for conversion.

Generated using standard protoc from schemas in protobufs/plugins/schemas/
"""
54 changes: 54 additions & 0 deletions mcpgateway/plugins/framework/generated/agents_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions mcpgateway/plugins/framework/generated/http_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions mcpgateway/plugins/framework/generated/prompts_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading