Skip to content

Commit c3d4a77

Browse files
committed
Add CLI entry point for uvx support
- Add main() function as entry point - Add [project.scripts] to pyproject.toml - Add author and license metadata - Update release badge in README - Bump version to 0.1.1
1 parent 02aefda commit c3d4a77

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
[project]
22
name = "agent-task-queue"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "MCP server for sequential task execution via FIFO queue"
55
readme = "README.md"
66
requires-python = ">=3.10"
7+
authors = [
8+
{ name = "Matt McKenna", email = "mmckenna@block.xyz" },
9+
{ name = "Block", email = "opensource@block.xyz" },
10+
]
11+
license = "Apache-2.0"
712
dependencies = [
813
"fastmcp>=2.3.0",
914
]
1015

16+
[project.scripts]
17+
agent-task-queue = "task_queue:main"
18+
1119
[project.optional-dependencies]
1220
dev = [
1321
"pytest>=8.0",

task_queue.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,5 +616,11 @@ async def clear_task_logs() -> str:
616616
# Initialize database on module load
617617
init_db()
618618

619-
if __name__ == "__main__":
619+
620+
def main():
621+
"""Entry point for uvx/CLI."""
620622
mcp.run()
623+
624+
625+
if __name__ == "__main__":
626+
main()

0 commit comments

Comments
 (0)