mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 19:23:24 +00:00
10 lines
369 B
TypeScript
10 lines
369 B
TypeScript
import type { ToolContract } from "../contracts/toolContracts.js";
|
|
|
|
/** Project the public contract fields accepted by MCP tool registration. */
|
|
export const toolRegistrationOptions = (contract: ToolContract) => ({
|
|
description: contract.description,
|
|
inputSchema: contract.inputSchema,
|
|
outputSchema: contract.outputSchema,
|
|
annotations: contract.annotations,
|
|
});
|