惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
D
DataBreaches.Net
U
Unit 42
P
Proofpoint News Feed
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
博客园 - Franky
博客园_首页
IT之家
IT之家
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I built an AI that sends job applications from Your own G...
Anup · 2026-06-22 · via DEV Community

Note: This was first published on the Resume-MCP blog. Reposting here for the dev community.

Applying to jobs is mostly copy-paste drudgery: re-tailor the resume, re-write the cover note, hunt down the recruiter's email, attach, send, repeat. I wanted to compress that whole loop into one paste. So I built Resume-MCP — paste a job description, and ~60 seconds later a JD-tailored, ATS-friendly PDF resume and a personalised cover email go out from your own Gmail.

This post is the engineering story, not the pitch: the architecture, the choices that mattered, and the parts that bit me.

The pipeline in one diagram

Job description (paste / PDF / DOCX / image)
        │
        ▼
  document_parser  ──►  extract clean JD text
        │
        ▼
  resume_customizer (Gemini, 3 parallel chunks)
        │   header+skills │ experience │ projects
        ▼
  render_latex (Jinja2 → .tex)
        │
        ▼
  pdflatex ×2  ──►  ATS-friendly PDF
        │
        ▼
  Gmail API  ──►  email + attachment, sent as YOU

The whole thing is a FastAPI app. There's a web app, a Telegram bot, and — the part devs care about — an MCP server so you can drive it from any MCP client.

Why LaTeX instead of an HTML-to-PDF renderer

Most resume builders render HTML and print to PDF. That looks fine on screen and gets shredded by applicant tracking systems, because the text extraction order is whatever the DOM happens to be.

LaTeX gives me:

  • Deterministic layout — the same input produces a byte-identical PDF. No "works on my Chrome" surprises.
  • Clean text extractionpdftotext pulls the content back in reading order, which is exactly what an ATS parser does.
  • Typography that looks hand-set without me hand-setting anything.

The catch: LaTeX needs to compile twice for cross-references (page numbers, any \ref) to resolve. So the compile step always runs pdflatex twice into a temp dir, then cleans up in a finally block:

for _ in range(2):
    subprocess.run(["pdflatex", "-interaction=nonstopmode", tex_path],
                   cwd=tmp, check=True, capture_output=True)

Tailoring: three parallel Gemini calls, not one big prompt

The naive version is "here's my resume + the JD, rewrite it." That's slow and the model loses the plot on long inputs. Instead I split the resume into three independent chunks and fan them out concurrently:

  1. header + skills — reorder skills to surface JD-matched keywords first
  2. experience — rewrite bullets to mirror the JD's language without inventing anything
  3. projects — same treatment, and this chunk is non-fatal: if Gemini fails here, I log a warning and continue with empty projects rather than failing the whole request

Fanning out cut latency to roughly the slowest single chunk instead of the sum. The non-fatal projects chunk matters more than it sounds — it's the difference between "your resume is ready" and "something broke, try again."

The MCP angle

Model Context Protocol lets an AI client call your tools directly. I mounted an MCP server at /mcp that wraps the same HTTP endpoints, so from an MCP-aware client you can say "tailor my resume to this JD and apply" and it runs the full pipeline — no UI.

The lesson here: because the MCP tools are thin wrappers over the existing FastAPI routes, there's one code path to maintain. The web app, the Telegram bot, and the MCP server all hit the same endpoints. New feature ships everywhere at once.

Sending from your Gmail (the part everyone asks about)

The email isn't sent from some noreply@myapp address — it's sent from the user's own account via the Gmail API over OAuth. That's what makes it land in a recruiter's inbox like a real human applicant instead of a marketing blast.

The trade-off is real OAuth plumbing: gmail.send scope, refresh-token handling, and the un-fun edge cases (a missing refresh_token on second consent, a user who revoked the scope after granting it). If you're building anything that acts on a user's behalf, budget more time for the auth state machine than for the feature itself.

What I'd tell my past self

  • Pick a deterministic output format early. LaTeX felt heavy on day one and saved me weeks of "why does the PDF look different now" later.
  • Make the AI calls independent and let failures degrade gracefully. A best-effort chunk beats an all-or-nothing prompt.
  • Build the core as plain HTTP endpoints first. The bot and the MCP server became trivial because the logic already lived behind a clean API.

If you want to try it: resume-mcp.site. Paste a JD, see the tailored PDF, and (if you connect Gmail) send the application without leaving the page.

Happy to go deeper on any layer in the comments — the LaTeX template, the Gemini chunking, or the MCP wiring.