image-search-mcp 0.1.6__py3-none-any.whl → 0.1.8__py3-none-any.whl
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/main.py +11 -11
- {image_search_mcp-0.1.6.dist-info → image_search_mcp-0.1.8.dist-info}/METADATA +1 -1
- image_search_mcp-0.1.8.dist-info/RECORD +8 -0
- image_search_mcp-0.1.6.dist-info/RECORD +0 -8
- {image_search_mcp-0.1.6.dist-info → image_search_mcp-0.1.8.dist-info}/WHEEL +0 -0
- {image_search_mcp-0.1.6.dist-info → image_search_mcp-0.1.8.dist-info}/entry_points.txt +0 -0
- {image_search_mcp-0.1.6.dist-info → image_search_mcp-0.1.8.dist-info}/top_level.txt +0 -0
image_search_mcp/main.py
CHANGED
|
@@ -43,16 +43,16 @@ def main():
|
|
|
43
43
|
if args.sse:
|
|
44
44
|
try:
|
|
45
45
|
import uvicorn
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
# Use the official SSE app creator from FastMCP
|
|
47
|
+
try:
|
|
48
|
+
from mcp.server.fastmcp import create_sse_app
|
|
49
|
+
app = create_sse_app(mcp, sse_path="/sse", message_path="/messages")
|
|
50
|
+
except ImportError:
|
|
51
|
+
# Fallback for different versions
|
|
52
|
+
if hasattr(mcp, "http_app"):
|
|
53
|
+
app = mcp.http_app(path="/")
|
|
54
|
+
else:
|
|
55
|
+
app = getattr(mcp, "_app", mcp)
|
|
56
56
|
|
|
57
57
|
# Check for Auth Token
|
|
58
58
|
auth_token = os.environ.get("MCP_AUTH_TOKEN")
|
|
@@ -61,7 +61,7 @@ def main():
|
|
|
61
61
|
app = AuthMiddleware(app, auth_token)
|
|
62
62
|
|
|
63
63
|
print(f"Starting SSE server on {args.host}:{args.port}...")
|
|
64
|
-
uvicorn.run(app, host=args.host, port=args.port)
|
|
64
|
+
uvicorn.run(app, host=args.host, port=args.port, log_level="info")
|
|
65
65
|
|
|
66
66
|
# 3. Apply Auth Middleware if token is provided
|
|
67
67
|
auth_token = os.environ.get("MCP_AUTH_TOKEN")
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
image_search_mcp/__init__.py,sha256=h6DgLFO4TMUk7_wCJ2jn2Y6IkFmfzb-Z7jX-G5UCYVc,43
|
|
2
|
+
image_search_mcp/main.py,sha256=GAfQzbBIRwEoram2VUyW6cuZB4-jI4V8wbU4_EMaNCg,3245
|
|
3
|
+
image_search_mcp/server.py,sha256=zDfg1BAB1yPFdvBBkGbBxsGpUEnOAMORnA7LN-4g5Xg,13445
|
|
4
|
+
image_search_mcp-0.1.8.dist-info/METADATA,sha256=KCe9i2gahxjP7ypVJ1YHvCpSH87Jvlwjs7b4bf3wEwA,5434
|
|
5
|
+
image_search_mcp-0.1.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
6
|
+
image_search_mcp-0.1.8.dist-info/entry_points.txt,sha256=BD8buPHSQ9yLqGM6w_UGTKjYkVRu_IjH_R736MsDQXM,64
|
|
7
|
+
image_search_mcp-0.1.8.dist-info/top_level.txt,sha256=toz9LX_-JYwJIcGbvfVSH0ap99Nsp2mdzvitLWHyYWo,17
|
|
8
|
+
image_search_mcp-0.1.8.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
image_search_mcp/__init__.py,sha256=h6DgLFO4TMUk7_wCJ2jn2Y6IkFmfzb-Z7jX-G5UCYVc,43
|
|
2
|
-
image_search_mcp/main.py,sha256=OzbpjQPQ0JD8C43hVsIplcmAaKNIbjKgD2tcg4wDhvQ,3222
|
|
3
|
-
image_search_mcp/server.py,sha256=zDfg1BAB1yPFdvBBkGbBxsGpUEnOAMORnA7LN-4g5Xg,13445
|
|
4
|
-
image_search_mcp-0.1.6.dist-info/METADATA,sha256=h0W96KtxprNmxM6jvrKjT2mAL4oKclPwFGS67_615Wc,5434
|
|
5
|
-
image_search_mcp-0.1.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
6
|
-
image_search_mcp-0.1.6.dist-info/entry_points.txt,sha256=BD8buPHSQ9yLqGM6w_UGTKjYkVRu_IjH_R736MsDQXM,64
|
|
7
|
-
image_search_mcp-0.1.6.dist-info/top_level.txt,sha256=toz9LX_-JYwJIcGbvfVSH0ap99Nsp2mdzvitLWHyYWo,17
|
|
8
|
-
image_search_mcp-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|