tracker-mcp 0.3.0__tar.gz
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.
- tracker_mcp-0.3.0/.gitignore +9 -0
- tracker_mcp-0.3.0/CHANGELOG.md +48 -0
- tracker_mcp-0.3.0/LICENSE +21 -0
- tracker_mcp-0.3.0/PKG-INFO +363 -0
- tracker_mcp-0.3.0/README.md +333 -0
- tracker_mcp-0.3.0/examples/tracker-mcp.example.toml +98 -0
- tracker_mcp-0.3.0/plugin/LICENSE +21 -0
- tracker_mcp-0.3.0/plugin/README.md +23 -0
- tracker_mcp-0.3.0/pyproject.toml +63 -0
- tracker_mcp-0.3.0/server.json +48 -0
- tracker_mcp-0.3.0/src/tracker_mcp/__init__.py +8 -0
- tracker_mcp-0.3.0/src/tracker_mcp/config.py +150 -0
- tracker_mcp-0.3.0/src/tracker_mcp/gsheets.py +567 -0
- tracker_mcp-0.3.0/src/tracker_mcp/scaffold.py +632 -0
- tracker_mcp-0.3.0/src/tracker_mcp/server.py +638 -0
- tracker_mcp-0.3.0/src/tracker_mcp/stores.py +288 -0
- tracker_mcp-0.3.0/src/tracker_mcp/tracker.py +995 -0
- tracker_mcp-0.3.0/tests/__init__.py +0 -0
- tracker_mcp-0.3.0/tests/fake_sheets.py +135 -0
- tracker_mcp-0.3.0/tests/fixtures/ru.tracker-mcp.toml +63 -0
- tracker_mcp-0.3.0/tests/test_config.py +152 -0
- tracker_mcp-0.3.0/tests/test_packaging.py +35 -0
- tracker_mcp-0.3.0/tests/test_robustness.py +403 -0
- tracker_mcp-0.3.0/tests/test_scaffold.py +273 -0
- tracker_mcp-0.3.0/tests/test_server.py +191 -0
- tracker_mcp-0.3.0/tests/test_stores.py +256 -0
- tracker_mcp-0.3.0/tests/test_tracker.py +195 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.0 — 2026-10-19
|
|
4
|
+
|
|
5
|
+
The first public release: the server now works with anyone's tracker, not just mine.
|
|
6
|
+
|
|
7
|
+
Added
|
|
8
|
+
- Trackers in **Google Sheets** (your Google account via `tracker-mcp auth google`,
|
|
9
|
+
or a service account) and in **CSV** files, besides Excel.
|
|
10
|
+
- On first start the server writes the config from the tracker's headers and
|
|
11
|
+
dropdowns, so it runs with no setup; `describe_tracker` says what to check.
|
|
12
|
+
- `tracker-mcp init` (the same guess, from the command line), `new` (an empty
|
|
13
|
+
tracker), `example` (every config key explained), `--tracker`, `--config`,
|
|
14
|
+
`--backup-dir`, `--version`.
|
|
15
|
+
- `funnel`: submitted → replied → screening → interview → offer, by channel, source,
|
|
16
|
+
month or any column; an optional `reached` column keeps the furthest stage, and
|
|
17
|
+
`[funnel.by.<column>]` groups one column's free text. `init` flags a tracker
|
|
18
|
+
without a furthest-stage column.
|
|
19
|
+
- `reschedule_followup`: move the next follow-up, or plan none, when nothing was sent
|
|
20
|
+
(no contact yet, waiting for message credits), with the reason in the log.
|
|
21
|
+
- The `new` template: Location, Salary, Priority and Next step columns; "Found via"
|
|
22
|
+
and "Applied via" instead of the easily confused Source and Channel.
|
|
23
|
+
- Prompts (weekly review, draft a follow-up) and resources (`tracker://layout`,
|
|
24
|
+
`tracker://application/{row}`); titles on the server and every tool.
|
|
25
|
+
- `date_formats` for dates kept as text (US and UK formats are detected by `init`).
|
|
26
|
+
- Config edits apply on the next call, without restarting the client.
|
|
27
|
+
- A Claude Desktop extension (`.mcpb`), a Claude plugin with a `weekly-review` skill
|
|
28
|
+
(`/plugin install tracker-mcp --marketplace butyavk/tracker-mcp`), a `server.json`
|
|
29
|
+
for the MCP Registry, and evals that check a model uses the tools right and ignores
|
|
30
|
+
instructions in cells.
|
|
31
|
+
- `tracker-mcp auth google --client-secret <client.json> --pick` signs in and opens
|
|
32
|
+
Google's file picker: the server can open only the sheets you pick (scope
|
|
33
|
+
`drive.file`). A client id is enough; the sign-in uses PKCE.
|
|
34
|
+
|
|
35
|
+
Changed
|
|
36
|
+
- Every write needs the user's yes, enforced by the server: a confirmation dialog
|
|
37
|
+
when the client has one, otherwise the token from a dry run.
|
|
38
|
+
- Writes are refused when openpyxl would drop parts of the workbook on save.
|
|
39
|
+
- Text written by the server never becomes a formula, in any format.
|
|
40
|
+
- On Windows, a file held by Excel, OneDrive or an antivirus gives a clear error.
|
|
41
|
+
- Only .xlsx and .csv files are accepted: an .xlsm would lose its macros on save, and
|
|
42
|
+
.xls or .ods files get a message to save as .xlsx. A damaged file, a CSV saved as
|
|
43
|
+
Windows-1252, no network, or odd Google tab names give readable errors.
|
|
44
|
+
|
|
45
|
+
## 0.2.0 and 0.1.0
|
|
46
|
+
|
|
47
|
+
Private versions for one tracker: read tools, safe writes with backups, undo and an
|
|
48
|
+
audit log, and the macOS launcher for Claude Desktop.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ivan Rykov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: tracker-mcp
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: MCP server for your job-application tracker in Excel, CSV or Google Sheets: follow-ups, funnel, safe confirmed writes
|
|
5
|
+
Project-URL: Homepage, https://github.com/butyavk/tracker-mcp
|
|
6
|
+
Project-URL: Repository, https://github.com/butyavk/tracker-mcp
|
|
7
|
+
Project-URL: Issues, https://github.com/butyavk/tracker-mcp/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/butyavk/tracker-mcp/blob/main/CHANGELOG.md
|
|
9
|
+
Author: Ivan Rykov
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: claude,csv,excel,google-sheets,job-search,job-tracker,mcp,model-context-protocol
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Office/Business
|
|
23
|
+
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Requires-Dist: mcp<3,>=2.3
|
|
26
|
+
Requires-Dist: openpyxl>=3.1
|
|
27
|
+
Requires-Dist: pydantic>=2.7
|
|
28
|
+
Requires-Dist: pyjwt[crypto]>=2.8
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# tracker-mcp
|
|
32
|
+
|
|
33
|
+
<!-- mcp-name: io.github.butyavk/tracker-mcp -->
|
|
34
|
+
|
|
35
|
+
An MCP server for the spreadsheet where you track your job applications: Excel,
|
|
36
|
+
CSV or Google Sheets. Connect it to Claude (or any MCP client), and the assistant
|
|
37
|
+
keeps the tracker for you: it answers from it, reminds you what is due, and records
|
|
38
|
+
what happened, with your yes for every change.
|
|
39
|
+
|
|
40
|
+
> **You:** Which follow-ups are due this week?
|
|
41
|
+
>
|
|
42
|
+
> **Claude:** Three. Acme (applied 17 Sep): nudge Sarah Kim on LinkedIn, overdue by
|
|
43
|
+
> two days. Globex: due Thursday, no contact yet. Initech: due Friday.
|
|
44
|
+
>
|
|
45
|
+
> **You:** I can't reach anyone at Globex until Monday. Move it.
|
|
46
|
+
>
|
|
47
|
+
> **Claude:** Row 8 · Globex — Head of Engineering. Follow-up date: 23 Oct → 27 Oct;
|
|
48
|
+
> follow-up log: + "follow-up moved to 2026-10-27: no contact yet". Write it?
|
|
49
|
+
>
|
|
50
|
+
> **You:** Yes.
|
|
51
|
+
>
|
|
52
|
+
> **Claude:** Done. A backup was taken first; say "undo" to revert.
|
|
53
|
+
|
|
54
|
+
Also: "Which channel gets me the most replies?", "Initech rejected me", "I applied to
|
|
55
|
+
Hooli via a referral today", "close everything that hasn't answered in 45 days".
|
|
56
|
+
|
|
57
|
+
### Why not just give Claude the spreadsheet?
|
|
58
|
+
|
|
59
|
+
Claude can already read a spreadsheet you attach, and its Google Drive connector can
|
|
60
|
+
open your Sheets. tracker-mcp adds what a job search needs on top:
|
|
61
|
+
|
|
62
|
+
- **Rules, not guesses.** Follow-up dates by your rule (10 days after applying, then
|
|
63
|
+
every 14, weekends moved to Monday), applications that went silent, and a funnel
|
|
64
|
+
(submitted → replied → screening → interview → offer) by channel, source or month
|
|
65
|
+
that remembers the furthest stage an application reached.
|
|
66
|
+
- **Safe writes.** You see the exact cells that will change, and the server, not the
|
|
67
|
+
model, checks your yes. A backup before every write, an audit log, undo; nothing is
|
|
68
|
+
written while Excel has the file open or after someone else changed it.
|
|
69
|
+
- **Always there.** The same tracker in every chat and every session, with no upload,
|
|
70
|
+
so several conversations (or a scheduled weekly review) can keep one tracker up to date.
|
|
71
|
+
|
|
72
|
+
Your spreadsheet stays yours: you keep opening it in Excel or Sheets, sorting and
|
|
73
|
+
editing it. Nothing about a particular tracker is in the code; the server reads your
|
|
74
|
+
headers and dropdowns and keeps what it learned in a small config file.
|
|
75
|
+
|
|
76
|
+
## Quick start
|
|
77
|
+
|
|
78
|
+
You need [uv](https://docs.astral.sh/uv/getting-started/installation/), which also
|
|
79
|
+
fetches Python for you. Pick your client:
|
|
80
|
+
|
|
81
|
+
**Claude Desktop.** Open Settings → Developer → Edit Config and add:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"mcpServers": {
|
|
86
|
+
"tracker": {
|
|
87
|
+
"command": "uvx",
|
|
88
|
+
"args": ["tracker-mcp"],
|
|
89
|
+
"env": { "TRACKER_PATH": "/Users/you/Documents/job-tracker.xlsx" }
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
On Windows the path looks like `C:\\Users\\you\\Documents\\job-tracker.xlsx`
|
|
96
|
+
(double backslashes in JSON). Restart Claude Desktop. If Claude can't find `uvx`,
|
|
97
|
+
put its full path in `command` (`which uvx` / `where uvx`). On macOS, if your
|
|
98
|
+
tracker is in Documents, Desktop or Downloads, see [macOS privacy](#macos-claude-desktop-and-your-documents-folder).
|
|
99
|
+
|
|
100
|
+
A one-click Claude Desktop extension (`tracker-mcp-<version>.mcpb`) is attached to each
|
|
101
|
+
[release](https://github.com/butyavk/tracker-mcp/releases): double-click it and pick your file.
|
|
102
|
+
|
|
103
|
+
**Claude Code:** as a plugin (the server plus a `weekly-review` skill; it asks for the
|
|
104
|
+
path to your tracker):
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
/plugin install tracker-mcp --marketplace butyavk/tracker-mcp
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
or just the server:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
claude mcp add tracker -e TRACKER_PATH="$HOME/Documents/job-tracker.xlsx" -- uvx tracker-mcp
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Cursor, VS Code, others:** a stdio server with command `uvx`, arguments
|
|
117
|
+
`["tracker-mcp"]` and the environment variable `TRACKER_PATH`. Cursor reads the same
|
|
118
|
+
JSON as Claude Desktop from `~/.cursor/mcp.json`.
|
|
119
|
+
|
|
120
|
+
**From a clone** (to change the code, or before a release is out):
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
git clone https://github.com/butyavk/tracker-mcp && cd tracker-mcp && uv sync
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
and use `"command": "uv", "args": ["--directory", "/path/to/tracker-mcp", "run", "tracker-mcp"]`.
|
|
127
|
+
|
|
128
|
+
### First start
|
|
129
|
+
|
|
130
|
+
On its first start the server reads your tracker, finds the sheet and the header
|
|
131
|
+
row, maps headers to fields (English and Russian headers are understood), works out
|
|
132
|
+
what each status in your dropdown means, and writes `job-tracker.tracker-mcp.toml`
|
|
133
|
+
next to the tracker. It does not touch the tracker itself. Ask Claude to describe
|
|
134
|
+
your tracker: it shows the mapping and the guesses worth checking. Edit the config
|
|
135
|
+
whenever you like; changes apply on the next request, no restart needed.
|
|
136
|
+
|
|
137
|
+
To see the guess before anything is written, run it yourself:
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
uvx tracker-mcp init ~/Documents/job-tracker.xlsx # writes the config, lists what to check
|
|
141
|
+
uvx tracker-mcp --check --tracker ~/Documents/job-tracker.xlsx # how the config maps the tracker
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
No tracker yet? `uvx tracker-mcp new ~/Documents/job-tracker.xlsx` creates an empty
|
|
145
|
+
one with dropdowns, a filter, a summary sheet and its config.
|
|
146
|
+
|
|
147
|
+
### A weekly routine
|
|
148
|
+
|
|
149
|
+
The server answers when asked; it does not send reminders. Two habits make it pay off:
|
|
150
|
+
|
|
151
|
+
- **Once a week**, run the **Weekly review** prompt (or just ask "review my job search
|
|
152
|
+
for this week"): what is due, what went silent, how the funnel moves, and a plan. If
|
|
153
|
+
your client can run scheduled tasks, schedule that sentence for Monday morning.
|
|
154
|
+
- **After each event**, tell Claude in a sentence: "applied to X via Y", "X rejected
|
|
155
|
+
me", "sent the follow-up to X", "can't follow up with X until Friday". It finds the
|
|
156
|
+
row, shows the change and writes it when you say yes.
|
|
157
|
+
|
|
158
|
+
## Where your tracker can live
|
|
159
|
+
|
|
160
|
+
| | How to point to it | Notes |
|
|
161
|
+
|---|---|---|
|
|
162
|
+
| **Excel** (.xlsx) | `TRACKER_PATH=/path/tracker.xlsx` | Dropdowns, filters and summary formulas are kept and extended to new rows |
|
|
163
|
+
| **CSV** | `TRACKER_PATH=/path/tracker.csv` | Exports from Notion, Huntr, Teal or Sheets. The delimiter, the encoding (UTF-8 or Windows-1252) and line endings are kept; statuses come from the config |
|
|
164
|
+
| **Google Sheets** | `TRACKER_PATH=https://docs.google.com/spreadsheets/d/<id>/edit` | Needs a one-time sign-in, below |
|
|
165
|
+
|
|
166
|
+
### Google Sheets
|
|
167
|
+
|
|
168
|
+
The server talks to the Sheets API directly, under your Google account or a
|
|
169
|
+
service account. Either way, Google needs a project of yours to know who is asking:
|
|
170
|
+
|
|
171
|
+
1. In the [Google Cloud console](https://console.cloud.google.com/), create a project
|
|
172
|
+
(any name) and enable the **Google Sheets API** for it.
|
|
173
|
+
2. **Your own account:** under *Google Auth Platform*, configure the consent screen
|
|
174
|
+
(External, add yourself as a test user), then create an OAuth client of type
|
|
175
|
+
**Desktop app** and download its JSON. Sign in once:
|
|
176
|
+
|
|
177
|
+
```sh
|
|
178
|
+
uvx tracker-mcp auth google --client-secret ~/Downloads/client_secret_….json
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
The sign-in is kept in `~/.tracker-mcp/google-token.json`. While the consent screen
|
|
182
|
+
is in *Testing*, Google ends the sign-in after 7 days; switch it to *In production*
|
|
183
|
+
(Google then warns that the app is unverified, which is expected for your own
|
|
184
|
+
client) or sign in again.
|
|
185
|
+
|
|
186
|
+
**Or a service account:** create one, download its key, share your sheet with the
|
|
187
|
+
service account's e-mail, and set `GOOGLE_APPLICATION_CREDENTIALS=/path/key.json`
|
|
188
|
+
in the server's environment. This way the server can reach only the sheets you
|
|
189
|
+
share with it.
|
|
190
|
+
3. `uvx tracker-mcp init "https://docs.google.com/spreadsheets/d/<id>/edit"` writes the
|
|
191
|
+
config to `~/.tracker-mcp/<id>.tracker-mcp.toml`. Then use the URL as `TRACKER_PATH`.
|
|
192
|
+
|
|
193
|
+
Signing in with your own account asks for access to your spreadsheets
|
|
194
|
+
(`spreadsheets` scope). The server opens only the sheet in `TRACKER_PATH`, but the
|
|
195
|
+
permission covers all of them. For less, add `--pick` (and enable the Google Picker
|
|
196
|
+
API in the project): Google's file picker opens after the sign-in, and the server can
|
|
197
|
+
open only the sheets you pick there (`drive.file` scope); the picked sheet gets its
|
|
198
|
+
config right away. A service account also limits access to the sheets you share with it.
|
|
199
|
+
|
|
200
|
+
## What Claude can do with it
|
|
201
|
+
|
|
202
|
+
| Tool | Kind | What it does |
|
|
203
|
+
|---|---|---|
|
|
204
|
+
| `describe_tracker` | read | How the tracker is laid out: fields → columns, allowed and closed statuses, follow-up rule |
|
|
205
|
+
| `list_applications` | read | Filter by status, company/role text, submit dates |
|
|
206
|
+
| `get_application` | read | Every column of one application (by text or row) |
|
|
207
|
+
| `followups_due` | read | Follow-ups due within N days, overdue first; submitted rows with no follow-up date |
|
|
208
|
+
| `stale_applications` | read | Still waiting, submitted N+ days ago, no follow-up planned |
|
|
209
|
+
| `summary` | read | Counts by status and month; a cohort for a date range |
|
|
210
|
+
| `funnel` | read | Submitted → replied → screening → interview → offer, in total and by channel, source, month or any column |
|
|
211
|
+
| `recent_writes` | read | Audit log of the server's writes |
|
|
212
|
+
| `add_application` | write | New row with the not-applied status; other columns via `extra`; refuses duplicates |
|
|
213
|
+
| `mark_applied` | write | Submitted: date, channel, status, follow-up date by your rule |
|
|
214
|
+
| `set_status` | write | New status from your dropdown; a closed status cancels the pending follow-up |
|
|
215
|
+
| `log_followup` | write | Log a sent follow-up, schedule the next one or close |
|
|
216
|
+
| `reschedule_followup` | write | Move the next follow-up, or plan none, when nothing was sent (no contact yet, waiting for credits) |
|
|
217
|
+
| `close_stale` | write | Close stale applications (or chosen rows) in one write, one backup, one undo step |
|
|
218
|
+
| `undo_last_write` | write | Restore the state before the last write, if nothing changed since |
|
|
219
|
+
|
|
220
|
+
Two prompts, for clients that show MCP prompts: **Weekly review** goes through
|
|
221
|
+
follow-ups, stale applications, the funnel and this week's submissions, and ends
|
|
222
|
+
with a plan; **Draft a follow-up** writes a short message for one row. Two
|
|
223
|
+
resources: `tracker://layout` and `tracker://application/{row}`.
|
|
224
|
+
|
|
225
|
+
Read tools are marked read-only. Writes are marked destructive where they
|
|
226
|
+
overwrite cells, and all of them take `dry_run`, `expected_version` and `confirm`.
|
|
227
|
+
|
|
228
|
+
## How a write stays safe
|
|
229
|
+
|
|
230
|
+
1. **The server checks your yes.** Before a write it computes the plan, the exact
|
|
231
|
+
cell changes at the current version of the tracker. A client with confirmation
|
|
232
|
+
dialogs (MCP elicitation) shows it to you there; otherwise the write needs the
|
|
233
|
+
token of a dry run that you saw, which fingerprints the changes and the version.
|
|
234
|
+
The write lands exactly as approved, or not at all.
|
|
235
|
+
2. **Nobody's edit is lost.** Each read returns a `version` (a hash of the file, or of
|
|
236
|
+
the sheet's values); a write against an old version is refused, and so is a write
|
|
237
|
+
while Excel has the file open.
|
|
238
|
+
3. **Write, check, keep a backup.** Files are written to a temporary copy, re-read
|
|
239
|
+
cell by cell, backed up and swapped in atomically; a Google Sheet gets one update
|
|
240
|
+
of the changed cells, is read back and rolled back on any difference.
|
|
241
|
+
4. **Audit and undo**: one line per write; undo only if nothing changed since.
|
|
242
|
+
5. **Your data is data**: text never turns into a formula, and the model is told not
|
|
243
|
+
to follow instructions found in cells (a pasted job post). See [SECURITY.md](SECURITY.md).
|
|
244
|
+
|
|
245
|
+
Allowed statuses come from the status column's dropdown. Columns are found by
|
|
246
|
+
header text, not by letter, so you can reorder them. When a row is added to an
|
|
247
|
+
.xlsx file, the server stretches dropdowns, the filter and summary formulas to it.
|
|
248
|
+
|
|
249
|
+
## Config
|
|
250
|
+
|
|
251
|
+
`job-tracker.xlsx` is described by `job-tracker.tracker-mcp.toml` next to it (for a
|
|
252
|
+
Google Sheet, `~/.tracker-mcp/<id>.tracker-mcp.toml`), or by the file `TRACKER_CONFIG`
|
|
253
|
+
points to. `uvx tracker-mcp example` prints a config with every key explained
|
|
254
|
+
([examples/tracker-mcp.example.toml](examples/tracker-mcp.example.toml)). In short:
|
|
255
|
+
|
|
256
|
+
```toml
|
|
257
|
+
sheet = "Applications"
|
|
258
|
+
|
|
259
|
+
[columns] # field = header text (exact, else the first header starting with it)
|
|
260
|
+
company = "Company" # company, role and status are required
|
|
261
|
+
role = "Role"
|
|
262
|
+
status = "Status"
|
|
263
|
+
applied_on = "Applied on"
|
|
264
|
+
followup_on = "Follow-up date"
|
|
265
|
+
followup_log = "Follow-up log"
|
|
266
|
+
salary = "Salary" # any other key is a custom field
|
|
267
|
+
|
|
268
|
+
[statuses]
|
|
269
|
+
not_applied = "Not applied"
|
|
270
|
+
applied = "Applied"
|
|
271
|
+
closed = ["Rejected", "Withdrawn", "No response", "Offer"]
|
|
272
|
+
rejected = ["Rejected"]
|
|
273
|
+
|
|
274
|
+
[statuses.stages] # funnel stages after a reply, in order
|
|
275
|
+
screening = ["Screening"]
|
|
276
|
+
interview = ["Interview", "Final"]
|
|
277
|
+
offer = ["Offer"]
|
|
278
|
+
|
|
279
|
+
[followups]
|
|
280
|
+
first_after_days = 10
|
|
281
|
+
next_after_days = 14
|
|
282
|
+
weekend_to_monday = true
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
A missing optional column only switches off what needs it: with no follow-up
|
|
286
|
+
column, `followups_due` says so. The config is validated strictly, so a typo in a
|
|
287
|
+
key is an error, not a silent default. If an edit breaks the config, every request
|
|
288
|
+
says why until it is fixed.
|
|
289
|
+
|
|
290
|
+
The funnel counts a rejection as a reply and needs to know your stages
|
|
291
|
+
(`[statuses.stages]`). The status column only holds the current state, so add a
|
|
292
|
+
`reached` column ("Furthest stage") for the furthest stage, or a rejection after an
|
|
293
|
+
interview counts as just a reply; `set_status` moves it forward, never back.
|
|
294
|
+
Free-text columns such as the source are grouped by their text up to the first
|
|
295
|
+
bracket or dash ("Ashby (direct form)" → "Ashby"), or by substrings you list in
|
|
296
|
+
`[funnel.groups]` (all columns) or `[funnel.by.source]` (one column).
|
|
297
|
+
|
|
298
|
+
| Variable | Option | |
|
|
299
|
+
|---|---|---|
|
|
300
|
+
| `TRACKER_PATH` | `--tracker` | The tracker: a file path or a Google Sheets URL (required) |
|
|
301
|
+
| `TRACKER_CONFIG` | `--config` | The config, if not next to the tracker |
|
|
302
|
+
| `TRACKER_BACKUP_DIR` | `--backup-dir` | Backups and `audit.jsonl` (default: `backups-tracker-mcp/` next to the tracker; `~/.tracker-mcp/backups/<id>` for a Google Sheet) |
|
|
303
|
+
| `GOOGLE_APPLICATION_CREDENTIALS` | | A service account key, for Google Sheets |
|
|
304
|
+
| `TRACKER_MCP_HOME` | | Where the Google sign-in and Sheets configs live (default `~/.tracker-mcp`) |
|
|
305
|
+
|
|
306
|
+
## Known limits
|
|
307
|
+
|
|
308
|
+
- The version covers the whole tracker, so any edit elsewhere in it invalidates a
|
|
309
|
+
pending write. Fine for one person; a shared tracker would need row-level versions.
|
|
310
|
+
- A small window remains between the last version check and the write: neither an
|
|
311
|
+
.xlsx file nor the Sheets API offers real locking.
|
|
312
|
+
- openpyxl cannot keep some parts of newer Excel files, such as dropdowns that take
|
|
313
|
+
their list from another sheet and are stored in an extension. If loading the file
|
|
314
|
+
warns that a part would be removed, the server refuses writes to that workbook
|
|
315
|
+
rather than drop it, and says so. Reading works.
|
|
316
|
+
- openpyxl drops cached formula values; the server asks Excel to recalculate on open.
|
|
317
|
+
- In a CSV file, text the server writes that starts like a formula (`=`, `+`, `@`,
|
|
318
|
+
`-1…`) gets a leading apostrophe, so Excel shows it as text.
|
|
319
|
+
- The config is named after the tracker without its extension, so `jobs.xlsx` and
|
|
320
|
+
`jobs.csv` in one folder would share one; give one of them `TRACKER_CONFIG`.
|
|
321
|
+
- Only .xlsx and .csv files: an .xlsm would lose its macros on save, and .xls, .ods or
|
|
322
|
+
Numbers files need saving as .xlsx first.
|
|
323
|
+
- `init` understands English and Russian headers and status words. In other
|
|
324
|
+
languages it maps less and lists the rest under "check by hand".
|
|
325
|
+
- Undo goes back one step only. For a Google Sheet it restores values, not formatting.
|
|
326
|
+
- Without a dialog, the token proves that a preview was made and nothing drifted
|
|
327
|
+
since. It cannot prove the model showed you that preview.
|
|
328
|
+
|
|
329
|
+
## macOS: Claude Desktop and your Documents folder
|
|
330
|
+
|
|
331
|
+
Claude Desktop starts local servers without its own privacy permissions. If your
|
|
332
|
+
tracker is in Documents, Desktop or Downloads, the server may fail with "Operation
|
|
333
|
+
not permitted" in its log (Settings → Developer), and
|
|
334
|
+
macOS never shows a prompt. Full Disk Access for Claude does not change that.
|
|
335
|
+
Moving the tracker to another folder (say `~/JobSearch`) is the simplest fix.
|
|
336
|
+
|
|
337
|
+
To keep it where it is, `sh install.sh /absolute/path/to/tracker.xlsx` (from a clone)
|
|
338
|
+
builds a tiny launcher app, `~/Applications/Tracker MCP.app` (`macos/launcher.c`,
|
|
339
|
+
about 60 lines of C, signed locally). It starts the server as its child, so macOS
|
|
340
|
+
asks once whether "Tracker MCP" may access Documents, and only this app gets that
|
|
341
|
+
permission. The script also runs the tests, backs up Claude Desktop's config and
|
|
342
|
+
adds the server to it; quit Claude first.
|
|
343
|
+
|
|
344
|
+
## Development
|
|
345
|
+
|
|
346
|
+
```sh
|
|
347
|
+
uv sync
|
|
348
|
+
uv run pytest # the tests use synthetic trackers and a fake Sheets API
|
|
349
|
+
uvx ruff check src tests evals
|
|
350
|
+
npx @modelcontextprotocol/inspector uv --directory . run tracker-mcp --tracker /path/tracker.xlsx
|
|
351
|
+
ANTHROPIC_API_KEY=… uv run python evals/run_evals.py # does a model use the tools right? (a few cents)
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
- `src/tracker_mcp/tracker.py` is the tracker logic; it knows nothing about MCP or storage.
|
|
355
|
+
- `stores.py` reads and writes .xlsx and .csv files; `gsheets.py` does Google Sheets.
|
|
356
|
+
- `config.py` is the config schema (pydantic, strict); `scaffold.py` is `init` and `new`.
|
|
357
|
+
- `server.py` holds the MCP tools, prompts, resources and the confirmation flow.
|
|
358
|
+
- `evals/` checks that a model picks the right tools, asks before writing and
|
|
359
|
+
ignores instructions planted in a cell.
|
|
360
|
+
- `macos/` is the launcher for Claude Desktop; `mcpb/` builds the Claude Desktop extension.
|
|
361
|
+
|
|
362
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for how releases are made. Built with the
|
|
363
|
+
official [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk). MIT licensed.
|