@intelligentelectron/pdf-analyzer 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  The **PDF Analyzer MCP Server** gives AI agents the ability to read and
4
4
  analyze PDF documents, enabling document Q&A through natural conversations.
5
5
 
6
- Powered by Google's Gemini API. You'll need a free API key from Google AI Studio.
6
+ Supports multiple LLM providers: **Google Gemini**, **Anthropic Claude**, and **OpenAI**. Choose your preferred provider and model during setup.
7
7
 
8
8
  ## Native Install (Recommended)
9
9
 
@@ -60,15 +60,27 @@ To update:
60
60
  npm update -g @intelligentelectron/pdf-analyzer
61
61
  ```
62
62
 
63
- ## Get Your Gemini API Key
63
+ ## Setup
64
64
 
65
- 1. Go to [Google AI Studio](https://aistudio.google.com/apikey)
66
- 2. Create a new API key (free tier available)
67
- 3. Copy your API key, we will use it to setup the MCP in the next section
65
+ After installing, run the interactive setup to choose your provider, model, and enter your API key:
66
+
67
+ ```bash
68
+ pdf-analyzer --setup
69
+ ```
70
+
71
+ You'll be prompted to choose from:
72
+
73
+ | Provider | Fast Model | Flagship Model | Get API Key |
74
+ |----------|-----------|----------------|-------------|
75
+ | Google Gemini | Gemini 3 Flash | Gemini 3.1 Pro | [Google AI Studio](https://aistudio.google.com/apikey) |
76
+ | Anthropic Claude | Claude Sonnet 4.6 | Claude Opus 4.6 | [Anthropic Console](https://console.anthropic.com/settings/keys) |
77
+ | OpenAI GPT | GPT-5.4 Mini | GPT-5.4 | [OpenAI Platform](https://platform.openai.com/api-keys) |
78
+
79
+ You can re-run `--setup` at any time to switch providers or models.
68
80
 
69
81
  ## Connect the MCP with your favorite AI tool
70
82
 
71
- After installing the MCP with one of the methods above, you can connect it to your AI agent of choice.
83
+ After setup, connect the MCP to your AI agent of choice.
72
84
 
73
85
  ### Claude Code
74
86
 
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Public entry point for provider configurations and types.
3
+ */
4
+ export { googleProvider, isGeminiFileUri } from "./google.js";
5
+ export { anthropicProvider } from "./anthropic.js";
6
+ export { openaiProvider } from "./openai.js";
7
+ export { providers, providerList, resolveActiveProvider } from "./registry.js";
8
+ export type { ProviderConfig, ModelOption, PdfSource, PreparedPdf, PdfFilePart } from "./types.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC/E,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Public entry point for provider configurations and types.
3
+ */
4
+ export { googleProvider, isGeminiFileUri } from "./google.js";
5
+ export { anthropicProvider } from "./anthropic.js";
6
+ export { openaiProvider } from "./openai.js";
7
+ export { providers, providerList, resolveActiveProvider } from "./registry.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intelligentelectron/pdf-analyzer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server for analyzing PDF documents using AI (Google Gemini, Anthropic Claude, OpenAI)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,10 @@
14
14
  "types": "./dist/service.d.ts",
15
15
  "default": "./dist/service.js"
16
16
  },
17
+ "./providers": {
18
+ "types": "./dist/providers/index.d.ts",
19
+ "default": "./dist/providers/index.js"
20
+ },
17
21
  "./types": {
18
22
  "types": "./dist/types.d.ts",
19
23
  "default": "./dist/types.js"