@bangdao-ai/zentao-mcp 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/mcp_server.py +3 -3
package/package.json
CHANGED
package/src/mcp_server.py
CHANGED
|
@@ -9,7 +9,7 @@ import asyncio
|
|
|
9
9
|
import json
|
|
10
10
|
import os
|
|
11
11
|
import sys
|
|
12
|
-
from typing import Any, Dict, Optional
|
|
12
|
+
from typing import Any, Dict, Optional, List
|
|
13
13
|
|
|
14
14
|
from dotenv import load_dotenv
|
|
15
15
|
from mcp.server import Server
|
|
@@ -34,7 +34,7 @@ class ZenTaoMCPServer:
|
|
|
34
34
|
"""设置请求处理器"""
|
|
35
35
|
|
|
36
36
|
@self.server.list_tools()
|
|
37
|
-
async def list_tools() ->
|
|
37
|
+
async def list_tools() -> List[Tool]:
|
|
38
38
|
"""列出可用工具"""
|
|
39
39
|
return [
|
|
40
40
|
Tool(
|
|
@@ -211,7 +211,7 @@ class ZenTaoMCPServer:
|
|
|
211
211
|
]
|
|
212
212
|
|
|
213
213
|
@self.server.call_tool()
|
|
214
|
-
async def call_tool(name: str, arguments: Dict[str, Any]) ->
|
|
214
|
+
async def call_tool(name: str, arguments: Dict[str, Any]) -> List[TextContent]:
|
|
215
215
|
"""处理工具调用"""
|
|
216
216
|
try:
|
|
217
217
|
# 延迟初始化 nexus(只在第一次使用时初始化)
|