Skip to main content
Glama
job-apply-mcp

job-apply-mcp

by timothypike
README.md
# job-apply-mcp

Tools I use to apply for jobs: an MCP server for the job queue, a resume and cover letter tailor that only picks from my own resume file, a quality gate, and a Slack workflow that runs it from my phone.

Write-up: [I built a bot that tailors my resume from a Slack message](https://timpike.dev/blog/slack-job-tailor?utm_source=github&utm_medium=readme&utm_campaign=job-tailor)

## What it does

- **MCP server** (`server.py`, FastMCP): reads job alert emails from Gmail with a read-only scope, keeps a job queue in SQLite, tracks each job's status, saves answers to common application questions, and prints a daily report.
- **Tailor**: picks a summary, bullets, highlights and 8 to 20 skills from `resume.json` for one posting, and writes a cover letter. Bullets are copied word for word. It never rewrites one or adds a skill. Missing skills are bridged in one honest letter sentence or flagged as gaps. The procedure is in `TAILORING.md`.
- **Quality gate** (`screen_check.py`): about 40 checks in 15 rule groups. A FAIL blocks delivery, a WARN does not. `TAILORING.md` lists where each rule comes from.
- **Slack workflow** (`tasks/`): three scheduled jobs. Intake reads a Slack channel, an agent does the tailoring, and a build script makes docx and PDF files, runs the checks and uploads the files to the thread.

Nothing is submitted automatically. `AUTO_SUBMIT = False` and `DAILY_CAP = 5` in `server.py`, and a person approves each application.

## Layout

- `server.py`: MCP tools (job queue, statuses, answer bank, daily report)
- `auth.py`: one-time Gmail OAuth sign-in (read-only scope)
- `fetch_details.py`: fills in title, company and location from LinkedIn's public job page
- `hand_tailor.py`, `run_job.py`: build one job's resume and cover letter from picks
- `build_docs.py`, `build_pdf.py`: docx and PDF output
- `screen_check.py`: the quality gate
- `tailor_local.py`, `tailor_phase2_worker.py`: model-based picking through Amazon Bedrock
- `TAILORING.md`: the tailoring procedure and the source of each check
- `tasks/`: the Slack intake, tailoring and build/upload jobs for Kiro Crew

## Requirements

- Python 3.9 or newer (the EC2 server runs 3.9)
- `pip install python-docx fpdf2 pypdf mcp` (`requirements.txt` pins `mcp`). For Gmail, also `google-auth-oauthlib` and `google-api-python-client`.
- `gh` CLI, signed in. The tailor reads `resume.json` and `resume-tailor.py` from the `portfolio-app` repo (`REPO` in `tailor_local.py` and `tailor_phase2_worker.py`). Point `REPO` at your own repo with the same two files.
- For Gmail: a Google OAuth client file at `data/credentials.json`, then run `python auth.py` once.
- For Bedrock picking: AWS credentials with `bedrock:InvokeModel`.
- For the Slack workflow: Kiro Crew and a Slack app with `channels:history`, `channels:read`, `chat:write` and `files:write`. The blog post has the full setup.

The code expects to live at `~/.kiro/crew/workspace/job-apply-mcp`. The `tasks/` scripts use that path.

## Not in this repo

`data/` (job database, OAuth tokens, postings, cover letters) and `applications/` (built files) are gitignored. So is the Slack token, which lives in `~/.kiro/crew/crons/slack_token.txt` with `chmod 600`.

## Personal values to change

`screen_check.py` checks that my email, phone, LinkedIn and GitHub appear on the resume, and the cover letter checks look for my own opening and close. Change those to yours.