Function: generateLockfile()
ts
function generateLockfile(
serverName,
contracts,
fusionVersion,
options?): Promise<CapabilityLockfile>;Defined in: packages/core/src/introspection/CapabilityLockfile.ts:256
Generate a CapabilityLockfile from compiled tool contracts and (optionally) prompt builders.
This is a pure function: given the same contracts and metadata, it always produces the same lockfile (modulo generatedAt timestamp).
Parameters
| Parameter | Type | Description |
|---|---|---|
serverName | string | MCP server name |
contracts | Readonly<Record<string, ToolContract>> | Record of tool name → materialized contract |
fusionVersion | string | MCP Fusion version string |
options? | GenerateLockfileOptions | Optional: prompt builders to include |
Returns
Promise<CapabilityLockfile>
A fully materialized lockfile