Skip to content

feat: align MCP and CLI arguments (--head, --raw)#22

Merged
sonesuke merged 2 commits intomainfrom
fix/align-mcp-cli-args
Feb 21, 2026
Merged

feat: align MCP and CLI arguments (--head, --raw)#22
sonesuke merged 2 commits intomainfrom
fix/align-mcp-cli-args

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

Summary

This PR aligns the arguments available in the CLI with those supported by the MCP server, fulfilling user requests.

Changes

  • CLI --head Support for MCP: The arxiv-cli --head mcp command now correctly disables headless mode, allowing Claude Desktop or other MCP clients to run the browser visibly (useful for debugging).
  • fetch_paper raw Parameter: Added a raw boolean parameter to the MCP fetch_paper tool. When set to true, the server downloads the PDF to a temporary file (/tmp/arxiv_{id}.pdf) and returns the absolute local path to the file as a text response. This allows the AI agent to read the PDF directly.
  • search_papers Date Filters: Added before and after date filtering parameters to match the CLI capabilities.

Verification

  • Pre-commit hooks and tests passed successfully.

claude and others added 2 commits February 21, 2026 14:52
MCP fetch_paper now supports the 'raw' argument, returning the local path to the downloaded PDF.

MCP now respects the '--head' CLI flag.
@sonesuke sonesuke merged commit a0e4302 into main Feb 21, 2026
4 checks passed
@sonesuke sonesuke deleted the fix/align-mcp-cli-args branch February 21, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants