SURIAPRAKASH1 commited on
Commit
93fad8a
Β·
1 Parent(s): 3c2377c

run server in stdio or streamablehttp

Browse files
Files changed (1) hide show
  1. server.py +7 -2
server.py CHANGED
@@ -330,5 +330,10 @@ async def suggest_template(changes_summary: str, change_type: str) -> str:
330
  return json.dumps(suggestion, indent=2)
331
 
332
  if __name__ == "__main__":
333
- logger.info("multitools-server is started πŸš€πŸš€πŸš€")
334
- mcp.run(transport = 'stdio')
 
 
 
 
 
 
330
  return json.dumps(suggestion, indent=2)
331
 
332
  if __name__ == "__main__":
333
+
334
+ transport = "stdio"
335
+ if transport != "streamable-http":
336
+ logger.info("multitools-server is started πŸš€πŸš€πŸš€")
337
+ else:
338
+ print("multitools-server is started πŸš€πŸš€πŸš€")
339
+ mcp.run(transport = transport)