Skip to content

Commit f66d918

Browse files
author
wenfeng.wf
committed
Add pypi support.
1 parent 6cec6c8 commit f66d918

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alibabacloud-rds-openapi-mcp-server"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
description = "MCP server for RDS Services via OPENAPI."
55
readme = "README.md"
66
requires-python = ">=3.12"

src/alibabacloud_rds_openapi_mcp_server/server.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,10 @@ async def get_current_time() -> Dict[str, Any]:
914914
raise Exception(f"Failed to get the current time: {str(e)}")
915915

916916

917+
def main():
918+
mcp.run(transport=os.getenv('SERVER_TRANSPORT', 'stdio'))
919+
920+
917921
if __name__ == '__main__':
918922
# Initialize and run the server
919-
mcp.run(transport=os.getenv('SERVER_TRANSPORT', 'stdio'))
923+
main()

0 commit comments

Comments
 (0)