Članci s tagom #claude
-
MCP server architecture: building a remote HTTP MCP for AI tool use
How Shinobi serves MCP over streamable HTTP instead of stdio: one Node process with the dashboard and the /mcp and /mcp/home endpoints, SQLite on a Docker volume, a Cloudflare Tunnel in front, a static bearer token or OAuth for auth, modules that filter the tool list, and the long-lived jobs (plugin schedules, nightly backup, morning brief) that a stdio server could not run. Updated for Shinobi 0.12.1.
-
AI OCR for invoice drafts in PHP: extracting structured data from PDFs and images
OcrInvoiceDraftTool: VisionAnalyzer 3 input modes (local PDF→document block, local image→image block, remote URL→cURL download→image block), TaskRouter::TASK_VISION, max_tokens=512 temperature=0.0. Extraction prompt: partner, dates, line_items (description/qty/unit_price/vat_rate), totals — Croatian VAT 0/5/13/25, OIB 11 digits, EUR default. parseJsonStrict strips code fences. Draft-only safety: never writes to DB, status=draft, operator fiscalizes manually.
-
Building a unified BYOK AI provider: one interface for Claude, OpenAI, DeepSeek, Groq, Gemini, and Ollama
Six AI providers, four wire formats, one interface, and a runtime failover chain that flips paid Claude to free Gemini when the bill spikes. The pattern I'm shipping in every product I build.
-
Self-Healing PHP: AI fixes production bugs in 4 phone taps
A production bug fires. Telegram pings my phone. I tap Analyze. Claude reads the repo and opens a PR. I review on my phone and tap Merge. The system deploys, verifies, and closes the incident. Total operator time: 30 seconds. On a $5/month shared host.