We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a7e6d commit 6008f60Copy full SHA for 6008f60
1 file changed
examples/pdf-server/server.ts
@@ -55,7 +55,8 @@ export function createServer(): McpServer {
55
},
56
async (args: unknown): Promise<CallToolResult> => {
57
if (!pdfIndex) throw new Error("Not initialized");
58
- const { url, offset, byteCount } = ReadPdfBytesInputSchema.parse(args);
+ const { url: rawUrl, offset, byteCount } = ReadPdfBytesInputSchema.parse(args);
59
+ const url = isArxivUrl(rawUrl) ? normalizeArxivUrl(rawUrl) : rawUrl;
60
const entry = findEntryByUrl(pdfIndex, url);
61
if (!entry) throw new Error(`PDF not found: ${url}`);
62
0 commit comments