Skip to content

Commit 15e42a8

Browse files
authored
Update index.ts
1 parent ad028a7 commit 15e42a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function createMcpServer(
4848

4949
// 如果有对应的 MCP Resource,需要放在 description 给模型提示
5050
if (action.hasMcpResource) {
51-
actionDescription += `\n*此Tool有MCP Resource,请查看${getMcpResourceName({ toolName: action.name })}(MCP Resource)获取更多使用此Tool的示例详情。`;
51+
actionDescription += `\n*This Tool has a 'MCP Resource',please request ${getMcpResourceName({ toolName: action.name })}(MCP Resource) to get more examples for using this tool.`;
5252
}
5353

5454
serverWrapper.tool(
@@ -174,4 +174,4 @@ export async function startMcpServer(
174174
console.error("Error starting MCP server", error);
175175
throw error;
176176
}
177-
}
177+
}

0 commit comments

Comments
 (0)