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
7 changes: 6 additions & 1 deletion paper_search_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,5 +341,10 @@ async def read_semantic_paper(paper_id: str, save_path: str = "./downloads") ->
return ""


if __name__ == "__main__":
def main():
"""Main entry point for the MCP server."""
mcp.run(transport="stdio")


Comment on lines +344 to +348
Copy link

Copilot AI Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The extra blank line at line 347 creates inconsistent spacing. Consider removing one blank line to maintain consistent formatting with the rest of the codebase.

Suggested change
def main():
"""Main entry point for the MCP server."""
mcp.run(transport="stdio")

Copilot uses AI. Check for mistakes.
if __name__ == "__main__":
main()
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ dependencies = [
"httpx[socks]>=0.28.1",
]

[project.scripts]
paper-search-mcp = "paper_search_mcp.server:main"

[tool.hatch.build.targets.wheel]
packages = ["paper_search_mcp"]