Fix FastMCP server startup
This commit is contained in:
@@ -30,7 +30,8 @@ except ImportError:
|
||||
class FastMCP:
|
||||
"""Import-time fallback used by tests when fastmcp is not installed."""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
def __init__(self, name: str):
|
||||
self.name = name
|
||||
self.tools = []
|
||||
|
||||
def tool(self):
|
||||
@@ -56,7 +57,7 @@ def strip_local_prefix(lib_id: str) -> str:
|
||||
|
||||
|
||||
# Create FastMCP instance with tools
|
||||
mcp = FastMCP("context7-docs", root_path="/app")
|
||||
mcp = FastMCP("context7-docs")
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
|
||||
Reference in New Issue
Block a user