Skip to content

Commit 612148f

Browse files
committed
fix: synthax errors in server.py
1 parent 8ee087c commit 612148f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tim_mcp/server.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
ModuleDetailsRequest,
2121
ModuleSearchRequest,
2222
)
23+
from typing import Optional
2324

2425
# Global configuration and logger
2526
config: Config = load_config()
@@ -33,8 +34,8 @@
3334
@mcp.tool()
3435
async def search_modules(
3536
query: str,
36-
namespace: str = None,
37-
provider: str = None,
37+
namespace: Optional[str] = None,
38+
provider: Optional[str] = None,
3839
limit: int = 10,
3940
) -> str:
4041
"""
@@ -278,8 +279,8 @@ async def list_content(module_id: str, version: str = "latest") -> str:
278279
async def get_content(
279280
module_id: str,
280281
path: str = "",
281-
include_files: list[str] = None,
282-
exclude_files: list[str] = None,
282+
include_files: Optional[list[str]] = None,
283+
exclude_files: Optional[list[str]] = None,
283284
include_readme: bool = True,
284285
version: str = "latest",
285286
) -> str:

0 commit comments

Comments
 (0)