@toolprint/hypertool-mcp
Version:
HyperTool MCP proxy server for routing requests between clients and multiple underlying MCP servers
19 lines • 507 B
JavaScript
/**
* TypeScript interfaces for toolset configuration
*/
/**
* Convert a DynamicToolReference to a string for validation/lookup
* Prefers namespacedName over refId if both are present
*/
export function resolveToolReference(ref) {
if (ref.namespacedName) {
return ref.namespacedName;
}
else if (ref.refId) {
return ref.refId;
}
else {
throw new Error("DynamicToolReference must have either namespacedName or refId");
}
}
//# sourceMappingURL=types.js.map