convert to streamable http

This commit is contained in:
Taylor Wilsdon
2025-05-11 10:07:37 -04:00
parent e8c05af5d8
commit 6e94512ca3
5 changed files with 353 additions and 972 deletions

View File

@@ -40,11 +40,13 @@ import gcalendar.calendar_tools
def main():
"""
Main entry point for the Google Workspace MCP server.
Uses stdio transport for MCP Inspector communication.
Uses streamable-http transport for HTTP-based communication.
"""
try:
logger.info("Google Workspace MCP server starting")
server.run() # Uses stdio transport for MCP Inspector
logger.info("Google Workspace MCP server starting with Streamable HTTP transport")
server.run(
transport="streamable-http"
)
except KeyboardInterrupt:
logger.info("Server shutdown requested via keyboard interrupt")
sys.exit(0)