Skip to content

Commit b29e77b

Browse files
committed
Fix: Add synchronous entry point wrapper for console script (v2.0.5)
1 parent e9d6b77 commit b29e77b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "webhook-mcp-server"
3-
version = "2.0.4"
3+
version = "2.0.5"
44
description = "MCP Server for webhook.site API integration with layered architecture"
55
requires-python = ">=3.10"
66
dependencies = [
@@ -9,7 +9,7 @@ dependencies = [
99
]
1010

1111
[project.scripts]
12-
webhook-mcp-server = "server:main"
12+
webhook-mcp-server = "server:run_server"
1313

1414
[project.urls]
1515
Repository = "https://github.com/zebbern/webhook-mcp-server"

server.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,10 @@ async def main() -> None:
9090
)
9191

9292

93-
if __name__ == "__main__":
93+
def run_server() -> None:
94+
"""Synchronous entry point for console script."""
9495
asyncio.run(main())
96+
97+
98+
if __name__ == "__main__":
99+
run_server()

0 commit comments

Comments
 (0)