Skip to main content
Glama
test_utils_whitelist.py416 B
def test_is_tool_whitelisted_multiple(monkeypatch): from mcp_openapi_proxy.utils import is_tool_whitelisted monkeypatch.delenv("TOOL_WHITELIST", raising=False) monkeypatch.setenv("TOOL_WHITELIST", "/foo,/bar/{id}") assert is_tool_whitelisted("/foo/abc") assert is_tool_whitelisted("/bar/123") assert not is_tool_whitelisted("/baz/999") monkeypatch.delenv("TOOL_WHITELIST", raising=False)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matthewhand/mcp-openapi-proxy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server