@flipdish/mcp-manifest
v0.3.0
Published
Schema and validator for the MCP manifests services publish to the flipdish-mcp gateway
Keywords
Readme
@flipdish/mcp-manifest
Schema and validator for <service>.mcp-manifest.json, the manifest a service publishes so the
flipdish-mcp gateway (mcp.flipdish.com) advertises and routes its MCP tools (EDR-96). The gateway
validates every manifest it reads with this package and skips one that fails, so validate yours in
your own build or tests to find out there instead.
Installation
pnpm add @flipdish/mcp-manifestThe package bundles its own zod 4, so it works alongside a service still on zod 3; use
validateMcpManifest, which returns plain data rather than zod types.
Usage
import { validateMcpManifest } from '@flipdish/mcp-manifest';
const result = validateMcpManifest(manifest);
if (!result.success) {
throw new Error(result.issues.map((issue) => `${issue.path}: ${issue.message}`).join('\n'));
}Pass { allowExecuteApi: true } only for a manifest bound for a non-production gateway stage, where
a raw API Gateway host (*.execute-api.<region>.amazonaws.com) is accepted.
What it checks
schemaVersionis1;serviceis kebab-case;baseUrlis https on a Flipdish domain.routeTemplate(at the root, and optionally per tool as an override) contains{orgId}and uses no params other than{orgId}and{brandId}.- Tool names are snake_case and unique; every input property is a described scalar;
orgIdandbrandIdare not declared (the gateway injects them);annotations.readOnlyHintis set. - No legacy terms (store ID, app ID, white label, franchisee, …) in tool names, descriptions, property names or property schemas; each issue names the replacement.
Two checks only the gateway can run: featureFlag must be registered in its Split filter, and a raw
API Gateway host is accepted only on non-production gateway stages.
