MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / _fetch_spec

Function _fetch_spec

mcp/src/flagsmith_mcp/server.py:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def _fetch_spec() -> dict[str, Any]:
50 response = httpx.get(constants.OPENAPI_SPEC_URL)
51 response.raise_for_status()
52 spec: dict[str, Any] = response.json()
53 return spec
54
55
56def create_server(settings: config.Settings) -> FastMCP[None]:

Callers 1

create_serverFunction · 0.85

Calls 3

getMethod · 0.45
raise_for_statusMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected