media-agent-mcp 0.3.0__py3-none-any.whl → 0.3.2__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.
- media_agent_mcp/server.py +8 -14
- {media_agent_mcp-0.3.0.dist-info → media_agent_mcp-0.3.2.dist-info}/METADATA +1 -1
- {media_agent_mcp-0.3.0.dist-info → media_agent_mcp-0.3.2.dist-info}/RECORD +5 -5
- {media_agent_mcp-0.3.0.dist-info → media_agent_mcp-0.3.2.dist-info}/WHEEL +0 -0
- {media_agent_mcp-0.3.0.dist-info → media_agent_mcp-0.3.2.dist-info}/entry_points.txt +0 -0
media_agent_mcp/server.py
CHANGED
@@ -37,7 +37,10 @@ logger = logging.getLogger(__name__)
|
|
37
37
|
|
38
38
|
# Initialize FastMCP server (will be configured in main function)
|
39
39
|
load_dotenv()
|
40
|
-
mcp = FastMCP("Media
|
40
|
+
mcp = FastMCP("Media-Agent-MCP")
|
41
|
+
|
42
|
+
def create_sse_app():
|
43
|
+
return mcp.sse_app()
|
41
44
|
|
42
45
|
|
43
46
|
@mcp.tool()
|
@@ -371,7 +374,8 @@ def main():
|
|
371
374
|
parser.add_argument('--port', type=int, default=8000,
|
372
375
|
help='Port for SSE transport (default: 8000)')
|
373
376
|
parser.add_argument('--workers', type=int, default=4,
|
374
|
-
help='Number of worker processes (default: 4)')
|
377
|
+
help='Number of worker processes for SSE (default: 4)')
|
378
|
+
|
375
379
|
parser.add_argument('--version', action='store_true',
|
376
380
|
help='Show version information')
|
377
381
|
|
@@ -400,19 +404,9 @@ def main():
|
|
400
404
|
# Start the server with specified transport
|
401
405
|
if args.transport == 'sse':
|
402
406
|
logger.info(f"Starting SSE server on {args.host}:{args.port} with {args.workers} workers")
|
403
|
-
|
404
|
-
# Use uvicorn with multiple workers for better concurrency
|
405
|
-
uvicorn.run(
|
406
|
-
"media_agent_mcp.server:mcp", # Module path to FastMCP instance
|
407
|
-
host=args.host,
|
408
|
-
port=args.port,
|
409
|
-
workers=args.workers,
|
410
|
-
reload=False,
|
411
|
-
log_level="info"
|
412
|
-
)
|
407
|
+
uvicorn.run("media_agent_mcp.server:create_sse_app", host=args.host, port=args.port, workers=args.workers)
|
413
408
|
else:
|
414
|
-
# Default stdio transport
|
415
|
-
logger.info("Starting STDIO transport (single process)")
|
409
|
+
# Default stdio transport
|
416
410
|
mcp.run(transport="stdio")
|
417
411
|
|
418
412
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
media_agent_mcp/__init__.py,sha256=xOmCIpPlIRJH3RiA-dlBOhKlwyJp51XQRt2eeyU5EtI,255
|
2
|
-
media_agent_mcp/server.py,sha256=
|
2
|
+
media_agent_mcp/server.py,sha256=kHzQjKcdF40yqOi4pLlZtVyQmj2-oVoktUvCyip09AY,13949
|
3
3
|
media_agent_mcp/ai_models/__init__.py,sha256=WN8JDSJbj2-sNwaQg3MDwmm9mvJTC1mqpWliac3sHoc,427
|
4
4
|
media_agent_mcp/ai_models/seed16.py,sha256=P3KHNF_SfLryJz6qFP7UUtBfw_28ubdrj2lJkt3WsY8,4989
|
5
5
|
media_agent_mcp/ai_models/seedance.py,sha256=fv7hdxlwRtFqMnOG9o7Kx_-k2ihB6VBgN3wCoo-Y-Qs,9024
|
@@ -12,7 +12,7 @@ media_agent_mcp/storage/__init__.py,sha256=eio7ZiSeLjCxICSZwZisiR7wKJfXlT2PV7aDE
|
|
12
12
|
media_agent_mcp/storage/tos_client.py,sha256=9c3GPmQe2stvxgZzsWYjVqKzVyvluZqYneCXYj-FQ3M,3174
|
13
13
|
media_agent_mcp/video/__init__.py,sha256=4ILnqYaUaYKI4GWOSg2SNZqt10UM1Y-8Q2SVvjoijqY,277
|
14
14
|
media_agent_mcp/video/processor.py,sha256=5ABPyj1IoD2xyIiB8dkEx4ZssPTXKHtuoFjy-dmnFks,11866
|
15
|
-
media_agent_mcp-0.3.
|
16
|
-
media_agent_mcp-0.3.
|
17
|
-
media_agent_mcp-0.3.
|
18
|
-
media_agent_mcp-0.3.
|
15
|
+
media_agent_mcp-0.3.2.dist-info/METADATA,sha256=uvqKDVoPQdgIbr5-OTeDy7W-Br8x8dWQpTHW4YOp3hw,10974
|
16
|
+
media_agent_mcp-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
17
|
+
media_agent_mcp-0.3.2.dist-info/entry_points.txt,sha256=kHB6iLdmnTsqibMZGfsGJzbj_ZU2uJiOfAMA8rYX8bg,64
|
18
|
+
media_agent_mcp-0.3.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|