image-search-mcp 0.1.6__tar.gz → 0.1.7__tar.gz
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.
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/PKG-INFO +1 -1
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/pyproject.toml +1 -1
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp/main.py +8 -3
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/PKG-INFO +1 -1
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/README.md +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/setup.cfg +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp/__init__.py +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp/server.py +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/SOURCES.txt +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/dependency_links.txt +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/entry_points.txt +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/requires.txt +0 -0
- {image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/top_level.txt +0 -0
|
@@ -45,9 +45,12 @@ def main():
|
|
|
45
45
|
import uvicorn
|
|
46
46
|
|
|
47
47
|
# The most robust way to get the ASGI app from FastMCP (v2.3.2+)
|
|
48
|
-
#
|
|
48
|
+
# Explicitly setting path="/" ensures /sse and /messages are at the root
|
|
49
49
|
if hasattr(mcp, "http_app"):
|
|
50
|
-
|
|
50
|
+
try:
|
|
51
|
+
app = mcp.http_app(path="/")
|
|
52
|
+
except Exception:
|
|
53
|
+
app = mcp.http_app()
|
|
51
54
|
elif hasattr(mcp, "as_asgi_app"):
|
|
52
55
|
app = mcp.as_asgi_app()
|
|
53
56
|
else:
|
|
@@ -61,7 +64,9 @@ def main():
|
|
|
61
64
|
app = AuthMiddleware(app, auth_token)
|
|
62
65
|
|
|
63
66
|
print(f"Starting SSE server on {args.host}:{args.port}...")
|
|
64
|
-
uvicorn.run(app, host=args.host, port=args.port)
|
|
67
|
+
# uvicorn.run(app, host=args.host, port=args.port)
|
|
68
|
+
# Use a slightly more verbose uvicorn config for debugging
|
|
69
|
+
uvicorn.run(app, host=args.host, port=args.port, log_level="info")
|
|
65
70
|
|
|
66
71
|
# 3. Apply Auth Middleware if token is provided
|
|
67
72
|
auth_token = os.environ.get("MCP_AUTH_TOKEN")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/requires.txt
RENAMED
|
File without changes
|
{image_search_mcp-0.1.6 → image_search_mcp-0.1.7}/src/image_search_mcp.egg-info/top_level.txt
RENAMED
|
File without changes
|