@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
17 lines • 780 B
JavaScript
import { isModernMcpClient } from "./modern/request.js";
import { callModernTool, listModernTools } from "./modern/tools.js";
/**
* Tool operations have an era-specific contract. The SDK client remains the
* lifecycle/request owner, but its legacy tool helpers never parse modern data.
*/
export async function listMcpTools(client, params, options) {
if (!isModernMcpClient(client))
return client.listTools(params, options);
return listModernTools(client, params, options);
}
export async function callMcpToolRequest(client, params, outputSchema, options) {
if (!isModernMcpClient(client))
return client.callTool(params, undefined, options);
return callModernTool(client, params, outputSchema, options);
}
//# sourceMappingURL=tool-client.js.map