Skip to main content
Glama

Port MCP Server

by port-labs
schema.py608 B
from typing import Any def inline_schema(schema: dict[str, Any]) -> dict[str, Any] | list[Any] | Any: defs = schema.pop("$defs", {}) def replace_refs(obj: Any) -> dict[str, Any] | list[Any] | Any: if isinstance(obj, dict): if "$ref" in obj: ref_path = obj["$ref"].split("/")[-1] return replace_refs(defs[ref_path]) else: return {k: replace_refs(v) for k, v in obj.items()} elif isinstance(obj, list): return [replace_refs(item) for item in obj] return obj return replace_refs(schema)

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/port-labs/port-mcp-server'

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