YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
custom port for mcp server (#1625)
Divanshu Grover3665d3e27bc0
diff --git a/screenpipe-integrations/screenpipe-mcp/src/screenpipe_mcp/server.py b/screenpipe-integrations/screenpipe-mcp/src/screenpipe_mcp/server.pyindex f4ebf7bdd..e98cad0ed 100644--- a/screenpipe-integrations/screenpipe-mcp/src/screenpipe_mcp/server.py+++ b/screenpipe-integrations/screenpipe-mcp/src/screenpipe_mcp/server.py@@ -6,6 +6,7 @@ from mcp.server import NotificationOptions, Serverfrom mcp.server.models import InitializationOptionsimport mcp.types as typesimport mcp.server.stdio+import argparseimport json@@ -13,11 +14,16 @@ import json# Enable nested event loops (needed for some environments)nest_asyncio.apply()+# Parse command line arguments+parser = argparse.ArgumentParser(description='Screenpipe MCP Server')+parser.add_argument('--port', type=int, default=3030, help='Port number for the screenpipe API (default: 3030)')+args = parser.parse_args()+# Initialize serverserver = Server("screenpipe")# Constants-SCREENPIPE_API = "http://localhost:3030"+SCREENPIPE_API = f"http://localhost:{args.port}"@server.list_tools()async def handle_list_tools() -> list[types.Tool]: