Skip to content

Commit 513378c

Browse files
committed
feat: custom tools example
1 parent 5c77bf9 commit 513378c

File tree

2 files changed

+1433
-1
lines changed

2 files changed

+1433
-1
lines changed

app/native-server/src/mcp/register-tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const setupTools = (server: Server) => {
3131

3232
const handleToolCall = async (name: string, args: any): Promise<CallToolResult> => {
3333
try {
34-
// 发送请求到Chrome扩展并等待响应(保持原始行为:直接透传 name/args)
34+
// 发送请求到Chrome扩展并等待响应
3535
const response = await nativeMessagingHostInstance.sendRequestToExtensionAndWait(
3636
{
3737
name,

0 commit comments

Comments
 (0)