Przeglądaj źródła

fix: 修复 Channel GET 工具参数格式

将 getChannel 从 query 参数改为路径参数:
- 修改前: /api/v1/channel/getChannel with { id }
- 修改后: /api/v1/channel/getChannel/${id}

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 3 tygodni temu
rodzic
commit
fab8a88b13

+ 1 - 1
packages/admin-mcp-server/src/tools/channel-tools.ts

@@ -138,7 +138,7 @@ export const channelGetTool = async (args: ChannelGetInput) => {
 
   try {
     const { id } = args;
-    const response = await apiClient.get<Channel>('/api/v1/channel/getChannel', { id });
+    const response = await apiClient.get<Channel>(`/api/v1/channel/getChannel/${id}`);
 
     const channel = response;