Skip to content

Commit bca0960

Browse files
author
Polygon
committed
Add remaining polygon API endpoints
1 parent f473bc2 commit bca0960

File tree

4 files changed

+759
-328
lines changed

4 files changed

+759
-328
lines changed

entrypoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from mcp_polygon import main
2+
from mcp_polygon import server
33

44
if __name__ == "__main__":
5-
main()
5+
server.run()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ requires = [ "hatchling",]
1717
build-backend = "hatchling.build"
1818

1919
[project.scripts]
20-
mcp_polygon = "mcp_polygon:main"
20+
mcp_polygon = "mcp_polygon:run"

src/mcp_polygon/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
from . import server
2-
import asyncio
1+
from .server import run
32

4-
def main():
5-
"""Main entry point for the package."""
6-
asyncio.run(server.main())
7-
8-
# Optionally expose other important items at package level
9-
__all__ = ['main', 'server']
3+
__all__ = ['run']

0 commit comments

Comments
 (0)