diff --git a/config/systemConfig/python.yaml b/config/systemConfig/python.yaml index 90852366..2a64da92 100644 --- a/config/systemConfig/python.yaml +++ b/config/systemConfig/python.yaml @@ -9,4 +9,10 @@ systemConfig: value: (?i).*((hook|base|auth|prov|endp|install|cloud|host|request|service|gateway|route|resource|upload)(.){0,12}url|(slack|web)(.){0,4}hook|(rest|api|host|cloud|request|service)(.){0,4}(endpoint|gateway|route)).* - key: airflowBaseClasses - value: (?i).*(BaseOperator|BaseSensorOperator|BashOperator|KubernetesPodOperator|PythonVirtualenvOperator|BaseHook|GoogleDriveHook|HttpHook).* \ No newline at end of file + value: (?i).*(BaseOperator|BaseSensorOperator|BashOperator|KubernetesPodOperator|PythonVirtualenvOperator|BaseHook|GoogleDriveHook|HttpHook).* + + - key: mcpLibraries + value: (?i)(fastMCP|mcp|langchain_mcp_adapters|llama_index.tools.mcp).* + + - key: mcpSinks + value: (?i)(listTools|callTool|listResources|readResource|sendRequest|readResponse).* \ No newline at end of file diff --git a/rules/sinks/third_parties/mcp/python.yaml b/rules/sinks/third_parties/mcp/python.yaml new file mode 100644 index 00000000..cf47538f --- /dev/null +++ b/rules/sinks/third_parties/mcp/python.yaml @@ -0,0 +1,7 @@ +sinks: + + - id: Sinks.ThirdParties.MCP + name: Third Party MCP + patterns: + - "(?i)((?:http|https):\\/\\/[a-zA-Z0-9_-][^)\\/(#|,!>\\s@]{1,50}\\.\\b(?:com|net|org|de|in|uk|us|io|gov|cn|ml|ai|ly|dev|cloud|me|icu|ru|info|top|tk|tr|cn|ga|cf|nl)\\b).*(?