pynydus.standards.mcp¶
MCP standard: validate, extract, generate.
Follows the Claude Desktop de facto convention for mcp.json.
Module Contents¶
Functions¶
API¶
- pynydus.standards.mcp.validate(egg: pynydus.api.schemas.Egg, schema: dict[str, Any] | None = None) list[pynydus.api.schemas.ValidationIssue]¶
Validate the egg’s MCP configs against the spec schema.
Args: egg: The Egg to validate. schema: Optional JSON Schema dict. When
None, the schema is loaded from the bundledmcpspec.Returns: List of validation issues (empty if valid or if there are no MCP configs).
- pynydus.standards.mcp.extract(egg: pynydus.api.schemas.Egg) dict[str, str]¶
Extract MCP config from the egg.
Args: egg: The Egg containing MCP server configs.
Returns:
{"mcp.json": <content>}or empty dict if no MCP configs.
- pynydus.standards.mcp.generate(egg: pynydus.api.schemas.Egg) dict[str, str]¶
Generate MCP config from egg data.
For MCP this is the same as extract. Configs are stored verbatim and there is no generation step. Provided for interface consistency.
Args: egg: The Egg containing MCP server configs.
Returns: Same as :func:
extract:{"mcp.json": <content>}or empty dict.