You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README and MCP integration guide to recommend new Node MCP servers with OCR support; enhance troubleshooting documentation for OCR and transport options
- Quick start: use the scripts in `api/scripts` (`start-mcp.sh`, `start-mcp-http.sh`) or `make mcp-stdio` / `make mcp-http`.
27
-
- New: OAuth2‑protected SSE MCP servers for Node and Python — see the SSE sections in the MCP guide.
26
+
- Recommended (OCR, avoids base64): use the new Node MCP servers in `node_mcp/` and the `faxbot_pdf` prompt to extract PDF text locally and send as TXT fax.
-**stdio**: Desktop AI assistants (Claude Desktop, Cursor) - simplest setup
20
28
-**HTTP**: Web applications, cloud-based AI services - scalable
@@ -49,7 +57,7 @@ Assistant → MCP Server → Faxbot API → Backend (Phaxio or SIP/Asterisk)
49
57
- Pass huge base64 string as tool parameter
50
58
- Base64 encoding increases file size by ~33%
51
59
52
-
### Realistic User Workflow:
60
+
### Realistic User Workflow (Legacy Base64 Path):
53
61
```
54
62
❌ NOT POSSIBLE: "Hey Claude, fax document.pdf to +1234567890"
55
63
@@ -69,7 +77,60 @@ Assistant → MCP Server → Faxbot API → Backend (Phaxio or SIP/Asterisk)
69
77
### Why This Design Was Chosen:
70
78
MCP protocol's JSON-based messaging requires binary data as base64. Alternative approaches (file paths, resource URLs) are emerging in the MCP community but not yet standardized for tool parameters.
The new Node MCP servers in `node_mcp/` add a prompt-driven workflow that avoids sending base64 data through the conversation. Python MCP servers now include a matching tool for parity.
83
+
84
+
- Node prompt: `faxbot_pdf`
85
+
- Python tool: `faxbot_pdf(pdf_path, to, header_text?)`
86
+
- Behavior: Extracts text from the local PDF and sends it as a TXT fax to drastically reduce tokens. If text is not embedded, optional OCR fallback can be enabled.
87
+
88
+
Example prompt execution (conceptual GetPrompt request):
0 commit comments