Coverage for mcpgateway / plugins / framework / constants.py: 100%

23 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-09 03:05 +0000

1# -*- coding: utf-8 -*- 

2"""Location: ./mcpgateway/plugins/framework/constants.py 

3Copyright 2025 

4SPDX-License-Identifier: Apache-2.0 

5Authors: Teryl Taylor 

6 

7Plugins constants file. 

8This module stores a collection of plugin constants used throughout the framework. 

9""" 

10 

11# Standard 

12 

13# Model constants. 

14# Specialized plugin types. 

15EXTERNAL_PLUGIN_TYPE = "external" 

16 

17# MCP related constants. 

18PYTHON_SUFFIX = ".py" 

19URL = "url" 

20SCRIPT = "script" 

21CMD = "cmd" 

22ENV = "env" 

23CWD = "cwd" 

24UDS = "uds" 

25 

26NAME = "name" 

27PLUGIN_NAME = "plugin_name" 

28PAYLOAD = "payload" 

29CONTEXT = "context" 

30RESULT = "result" 

31ERROR = "error" 

32IGNORE_CONFIG_EXTERNAL = "ignore_config_external" 

33 

34# Global Context Metadata fields 

35 

36TOOL_METADATA = "tool" 

37GATEWAY_METADATA = "gateway" 

38 

39# MCP Plugin Server Runtime constants 

40MCP_SERVER_NAME = "MCP Plugin Server" 

41MCP_SERVER_INSTRUCTIONS = "External plugin server for ContextForge" 

42GET_PLUGIN_CONFIGS = "get_plugin_configs" 

43GET_PLUGIN_CONFIG = "get_plugin_config" 

44HOOK_TYPE = "hook_type" 

45INVOKE_HOOK = "invoke_hook"