Route workspace-mcp through API Gateway to bypass SCP Lambda URL block

This commit is contained in:
daniel
2026-05-08 10:24:37 -05:00
parent eaf19fa9c5
commit 647cb516db
2 changed files with 11 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ import botocore.awsrequest
import boto3
from urllib.parse import urlparse as _urlparse
WORKSPACE_MCP_URL = 'https://25hugrzw4uwtueeg77jsmft6lq0wunmd.lambda-url.us-east-1.on.aws/mcp'
WORKSPACE_MCP_URL = 'https://sptejrymri.execute-api.us-east-1.amazonaws.com/workspace/mcp'
OAUTH_START_URL = (
os.environ.get('OAUTH_START_URL')
or 'https://sptejrymri.execute-api.us-east-1.amazonaws.com/oauth/start'
@@ -286,7 +286,7 @@ async def main(payload: dict, context):
manage_service, schedule_reminder, list_reminders, cancel_reminder]
workspace_mcp_client = MCPClient(
lambda: streamablehttp_client(WORKSPACE_MCP_URL, timeout=20, auth=_SigV4HttpxAuth(actor_id=actor_id))
lambda: streamablehttp_client(WORKSPACE_MCP_URL, timeout=20)
)
workspace_tools = []
google_email = user_profile.get('google_email', '')