import { For, List } from "@alloy-js/core"; import { FunctionCallExpression, ObjectExpression, ObjectProperty, VarDeclaration } from "@alloy-js/typescript"; import { useMCPServerContext } from "../context/McpServer.js"; import type { ToolDescriptor } from "../context/utils/tool-descriptor.js"; import { zodToJsonSchema } from "../externals/zodToJsonSchema.js"; export function JsonSchemas() { const { tools } = useMCPServerContext(); return ( {(tool) => ( } /> )} ); } interface ToolJsonSchemaProps { tool: ToolDescriptor; } export function ToolJsonSchema(props: ToolJsonSchemaProps) { const parametersRk = props.tool.keys.jsonSchemas.parameters; return ( ]} /> } /> ); }