Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ dev = [
"mcp[cli]",
# Consider adding: pytest, black, ruff for future development
]

[project.scripts]
man-mcp = "server.main:main"
7 changes: 6 additions & 1 deletion server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ async def get_page_resource(section: str, page: str) -> str:
"""Resource providing a specific man page."""
return await get_man_page(page, section)

def main():
"""Entry point for the man-mcp binary."""
mcp.run()


if __name__ == "__main__":
# Run the server
mcp.run()
main()