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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: image-search-mcp
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: MCP server for Reverse Image Search using PicImageSearch
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "image-search-mcp"
7
- version = "0.1.6"
7
+ version = "0.1.7"
8
8
  description = "MCP server for Reverse Image Search using PicImageSearch"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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
- # This app already includes the necessary SSE routes (/sse, /messages)
48
+ # Explicitly setting path="/" ensures /sse and /messages are at the root
49
49
  if hasattr(mcp, "http_app"):
50
- app = mcp.http_app()
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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: image-search-mcp
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: MCP server for Reverse Image Search using PicImageSearch
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT