@codegame.dev/careerflow-mcp 1.9.0 → 2.1.0

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.
package/README.md CHANGED
@@ -27,7 +27,8 @@ JSON block for any other client. Token input is hidden as you type; it is never
27
27
  passed on the command line.
28
28
 
29
29
  Flags prefill the answers, so an onboarding page can print a one-liner per
30
- company or client — only the token is still asked for (hidden):
30
+ company or client — the token is always asked for (hidden), and any choice not
31
+ given as a flag (client, profile, Claude Code scope) is asked too:
31
32
 
32
33
  ```bash
33
34
  npx @codegame.dev/careerflow-mcp init --base-url https://careerflow.codegame.dev/site-api --name acme --client claude-code
@@ -39,6 +40,16 @@ npx @codegame.dev/careerflow-mcp init --base-url https://careerflow.codegame.dev
39
40
  use one name per company or install, e.g. `acme`, `acme-staging`
40
41
  - `--company-id` — optional default company
41
42
  - `--client` — `claude-code`, `claude-desktop`, `zcode`, `cursor`, or `other`
43
+ - `--profile` — `worklog` (only the task and time tools for logging work, see
44
+ [Logging finished work](#logging-finished-work)) or `full`; asked if omitted
45
+ - `--scope` — Claude Code only: `user` (all projects) or `local` (only the
46
+ current folder, only for you); asked if omitted. `project` scope is not
47
+ offered: it writes `.mcp.json` into the repo, and the entry holds the token.
48
+
49
+ For a faster, offline-safe start, install globally first —
50
+ `npm i -g @codegame.dev/careerflow-mcp` — and run `careerflow-mcp init`. The
51
+ client then starts `careerflow-mcp` directly instead of going through `npx -y`,
52
+ which checks the npm registry on every session start.
42
53
 
43
54
  None of these flags is secret, so the one-liner is safe to publish. The access
44
55
  token is never accepted as a flag — argv is readable by other processes on the
@@ -55,7 +66,8 @@ npx @codegame.dev/careerflow-mcp remove --client zcode --name acme
55
66
  ```
56
67
 
57
68
  Without flags it asks which client to clean up. For Claude Code it runs
58
- `claude mcp remove --scope user`; for Claude Desktop, ZCode, and Cursor it
69
+ `claude mcp remove --scope user` (pass `--scope local`, from the same folder,
70
+ for a local install); for Claude Desktop, ZCode, and Cursor it
59
71
  deletes the entry from the client's JSON config, leaving everything else in the
60
72
  file untouched. Other clients: delete the pasted block by hand.
61
73
 
@@ -63,12 +75,12 @@ file untouched. Other clients: delete the pasted block by hand.
63
75
 
64
76
  1. Create an access token.
65
77
 
66
- In CareerFlow: **Settings → Access Tokens → Create access token**.
78
+ In CareerFlow: **Settings → Access Tokens → Create access token**.
67
79
 
68
- Give it a name, an expiry, and only the permissions the assistant needs.
80
+ Give it a name, an expiry, and only the permissions the assistant needs.
69
81
 
70
- > **The token is shown once.** It is stored hashed and cannot be recovered
71
- > afterwards. Copy it before closing the dialog.
82
+ > **The token is shown once.** It is stored hashed and cannot be recovered
83
+ > afterwards. Copy it before closing the dialog.
72
84
 
73
85
  2. Add it to your client.
74
86
 
@@ -86,21 +98,22 @@ claude mcp add careerflow \
86
98
 
87
99
  ```json
88
100
  {
89
- "mcpServers": {
90
- "careerflow": {
91
- "command": "npx",
92
- "args": ["-y", "@codegame.dev/careerflow-mcp"],
93
- "env": {
94
- "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
95
- "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
96
- "CAREERFLOW_COMPANY_ID": "24"
97
- }
98
- }
99
- }
101
+ "mcpServers": {
102
+ "careerflow": {
103
+ "command": "npx",
104
+ "args": ["-y", "@codegame.dev/careerflow-mcp"],
105
+ "env": {
106
+ "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
107
+ "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
108
+ "CAREERFLOW_COMPANY_ID": "24"
109
+ }
110
+ }
111
+ }
100
112
  }
101
113
  ```
102
114
 
103
115
  Config file locations:
116
+
104
117
  - macOS — `~/Library/Application Support/Claude/claude_desktop_config.json`
105
118
  - Windows — `%APPDATA%\Claude\claude_desktop_config.json`
106
119
  - Linux — `~/.config/Claude/claude_desktop_config.json`
@@ -110,40 +123,41 @@ Config file locations:
110
123
 
111
124
  ```json
112
125
  {
113
- "mcp": {
114
- "servers": {
115
- "careerflow": {
116
- "type": "stdio",
117
- "command": "npx",
118
- "args": ["-y", "@codegame.dev/careerflow-mcp"],
119
- "env": {
120
- "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
121
- "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
122
- "CAREERFLOW_COMPANY_ID": "24"
123
- }
124
- }
125
- }
126
- }
126
+ "mcp": {
127
+ "servers": {
128
+ "careerflow": {
129
+ "type": "stdio",
130
+ "command": "npx",
131
+ "args": ["-y", "@codegame.dev/careerflow-mcp"],
132
+ "env": {
133
+ "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
134
+ "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
135
+ "CAREERFLOW_COMPANY_ID": "24"
136
+ }
137
+ }
138
+ }
139
+ }
127
140
  }
128
141
  ```
129
142
 
130
143
  For a project-shared server use `<repo>/.zcode/config.json` instead — but the
131
144
  token would then sit in a versioned file; prefer user scope.
132
145
 
133
- Restart the client. Ask it *"what are my tasks?"* to confirm the connection.
146
+ Restart the client. Ask it _"what are my tasks?"_ to confirm the connection.
134
147
 
135
148
  ### Configuration
136
149
 
137
- | Variable | Required | Description |
138
- | --- | --- | --- |
139
- | `CAREERFLOW_BASE_URL` | yes | API root, e.g. `https://api.example.com` |
140
- | `CAREERFLOW_TOKEN` | yes | Your personal access token (`cf_pat_…`) |
141
- | `CAREERFLOW_COMPANY_ID` | no | Default company, so tools need no `company_id` per call |
142
- | `CAREERFLOW_TIMEOUT_MS` | no | Request timeout, default `30000` |
143
- | `CAREERFLOW_GROUPS` | no | Register only these comma-separated tool groups |
144
- | `CAREERFLOW_EXCLUDE_GROUPS` | no | Register everything except these comma-separated groups |
145
- | `CAREERFLOW_ALL_TOOLS` | no | Set to `1` to register every tool, even ones your role or token cannot reach |
146
- | `CAREERFLOW_KEEP_READ_TOOLS` | no | Set to `1` to keep the read-only tools `run_company_sql` otherwise replaces |
150
+ | Variable | Required | Description |
151
+ | ---------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
152
+ | `CAREERFLOW_BASE_URL` | yes | API root, e.g. `https://api.example.com` |
153
+ | `CAREERFLOW_TOKEN` | yes | Your personal access token (`cf_pat_…`) |
154
+ | `CAREERFLOW_COMPANY_ID` | no | Default company, so tools need no `company_id` per call |
155
+ | `CAREERFLOW_TIMEOUT_MS` | no | Request timeout, default `30000` |
156
+ | `CAREERFLOW_PROFILE` | no | `worklog` registers only `record_work` and the task/time tools around it (~12 tools); `full` (default) registers everything else allowed |
157
+ | `CAREERFLOW_GROUPS` | no | Register only these comma-separated tool groups |
158
+ | `CAREERFLOW_EXCLUDE_GROUPS` | no | Register everything except these comma-separated groups |
159
+ | `CAREERFLOW_ALL_TOOLS` | no | Set to `1` to register every tool, even ones your role or token cannot reach |
160
+ | `CAREERFLOW_KEEP_READ_TOOLS` | no | Set to `1` to keep the read-only tools `run_company_sql` otherwise replaces |
147
161
 
148
162
  The token is read only from the environment, never from command-line arguments —
149
163
  argv is readable by other processes on the same machine.
@@ -153,6 +167,7 @@ argv is readable by other processes on the same machine.
153
167
  ## What you can ask for
154
168
 
155
169
  **Daily work**
170
+
156
171
  - "What am I working on today?" · "Anything overdue?"
157
172
  - "Mark the login-bug task done."
158
173
  - "Start a timer on task 412." · "Log 45 minutes on the report task."
@@ -160,23 +175,27 @@ argv is readable by other processes on the same machine.
160
175
  - "Add a checklist to task 12 with three items." · "Attach this link to task 40."
161
176
 
162
177
  **Supervising a team**
178
+
163
179
  - "What is Sara working on?" · "Show everything pending review."
164
180
  - "Create a task 'Prepare Q3 report' in Sprint 12, assign it to Ali, due Friday, high priority."
165
181
  - "Move task 91 to Done." · "Accept task 77 and score it 4.5."
166
182
  - "Create a project called 'Website Redesign' and add Sara as manager."
167
183
 
168
184
  **Sales & CRM**
185
+
169
186
  - "Show my open deals." · "Create a lead for Acme Corp from the website form."
170
187
  - "Move the Acme deal to Negotiation and set the amount to $12,000."
171
188
  - "Log a call with the Beta Inc contact." · "What's in my pipeline this month?"
172
189
 
173
190
  **HR & people ops**
191
+
174
192
  - "Show my latest payroll slip." · "Accept my performance review."
175
193
  - "List open job applications for the Backend Engineer posting."
176
194
  - "Am I registered for the current loan lottery?" · "Check in my mood: 4, feeling good today."
177
195
  - "Reserve lunch for tomorrow."
178
196
 
179
197
  **Around the work**
198
+
180
199
  - "Any new announcements?" · "Message Reza that the deploy finished."
181
200
  - "Create a chat group for the launch team with Sara, Ali, and Reza."
182
201
  - "Open a support ticket about the slow dashboard load."
@@ -188,41 +207,110 @@ argv is readable by other processes on the same machine.
188
207
  The tools keep the backend API's names, and the UI names the same things
189
208
  differently — easy to trip over when relaying what a user asked for:
190
209
 
191
- | API (and these tools) | UI |
192
- | --- | --- |
193
- | project of type `special` | "project" (پروژه) |
194
- | project of type `normal` — or any non-special type | "board" (تابلو) |
195
- | board — a column of tasks inside a project | "list" (لیست) |
210
+ | API (and these tools) | UI |
211
+ | -------------------------------------------------- | ----------------- |
212
+ | project of type `special` | "project" (پروژه) |
213
+ | project of type `normal` — or any non-special type | "board" (تابلو) |
214
+ | board — a column of tasks inside a project | "list" (لیست) |
196
215
 
197
- So when a user asks for a "board", they usually mean an API *project* (find it
216
+ So when a user asks for a "board", they usually mean an API _project_ (find it
198
217
  with `list_projects`, checking each row's `type`); when they ask for a "list",
199
- they mean an API *board* (`list_boards`). The server's `instructions` string
218
+ they mean an API _board_ (`list_boards`). The server's `instructions` string
200
219
  spells this out to the model too.
201
220
 
221
+ ## Logging finished work
222
+
223
+ The main use in practice: after finishing coding work in a repo, record it as
224
+ tasks on that repo's board, log the time, and close them. `record_work` does
225
+ that in one call for a whole batch:
226
+
227
+ ```ts
228
+ record_work({
229
+ tasks: [
230
+ { title: "Fix QR label centering", minutes: 45 },
231
+ { title: "Add Amplitude proxy", description: "...", minutes: 90, date: "2026-11-11" }
232
+ ]
233
+ })
234
+ // → { project_id: 2500, board_id: 712, board: "In progress",
235
+ // tasks: [{ title: "...", id: 29371, minutes: 45, done: true }, ...] }
236
+ ```
237
+
238
+ For each item it creates the task assigned to you, logs `minutes`, and marks it
239
+ complete (`done` defaults to `true`). An open task in the project with the same
240
+ title is reused instead of duplicated (`matched_existing: true`). Each item
241
+ reports its own status, so one failure does not stop the rest.
242
+
243
+ **Which project.** Each folder can be linked to a project (what the UI calls a
244
+ board or project), stored per user in `~/.config/careerflow-mcp/workspaces.json`
245
+ (never in the repo):
246
+
247
+ ```json
248
+ {
249
+ "/home/me/work/acme-web": { "company_id": 6, "project_id": 2500 }
250
+ }
251
+ ```
252
+
253
+ The server finds the closest entry at or above its working directory (Claude
254
+ Code starts it in the project folder) and tells the model in one line, so no
255
+ `list_projects` / `list_boards` discovery is needed.
256
+
257
+ **Which list.** A repo maps to a project, not to one of its lists, so
258
+ `record_work` picks the list per task: finished work goes to the list named
259
+ like "Done" / "Completed" / "انجام شده" (else the project's last list),
260
+ unfinished work to "In progress" / "در حال انجام" (else the first list). A
261
+ reused open task that is now finished is moved to that list. Each item in the
262
+ receipt names its `list`. To pin lists anyway, pass `board` / `done_board`
263
+ (list names) or save `board_id` / `done_board_id` in the entry.
264
+
265
+ You never need the ids. In a folder with no saved project, the model asks which
266
+ one to use; `record_work` (or `set_workspace_project`) takes it by the name
267
+ shown in the UI and saves it for the folder after the first successful task.
268
+ Say "log this folder's work to X" to change it. Names match exactly or by a
269
+ unique partial match, case-insensitively; an ambiguous or unknown name returns
270
+ the options to choose from. Ids still work, and
271
+ `careerflow-mcp link --project <id>` sets a folder from the terminal. When the
272
+ server's working directory is not the repo, the model passes `workspace` (the
273
+ repo path).
274
+
275
+ **Prompts.** Two MCP prompts ship with the server; Claude Code shows them as
276
+ slash commands (`/mcp__<server-name>__log_work`):
277
+
278
+ - `log_work` — summarise the session's work (or the commits since), split it
279
+ into tasks with estimated minutes, show you the list, then call `record_work`.
280
+ - `my_day` — open and overdue tasks assigned to you.
281
+
282
+ **Profile.** `CAREERFLOW_PROFILE=worklog` (what `init` writes by default)
283
+ registers only `record_work`, `set_workspace_project`, `list_my_tasks`, `search_tasks`, `get_task`,
284
+ `update_task`, `complete_task`, `log_time`, `start_timer`, `stop_timer`,
285
+ `list_projects` and `list_boards`, with a few lines of instructions — cheap
286
+ enough to leave enabled in every project.
287
+
288
+ ---
289
+
202
290
  ## Tools
203
291
 
204
292
  167 tools. The everyday surface
205
293
  ([only part of it can be registered](#registering-only-the-tool-groups-you-need)):
206
294
 
207
- | Group | Tools |
208
- | --- | --- |
209
- | **Identity & structure** | `whoami`, `list_companies`, `list_projects`, `list_boards`, `list_project_members`, `find_user` |
210
- | **Tasks** | `list_my_tasks`, `search_tasks`, `get_task`, `create_task`, `update_task`, `complete_task`, `assign_task`, `move_task`, `review_task`, `list_task_comments`, `add_task_comment` |
211
- | **Kanban (boards, labels, checklists, attachments)** | `create_board`, `edit_board`, `archive_board`, `list_labels`, `create_label`, `delete_label`, `add_task_checklist`, `add_checklist_item`, `complete_checklist_item`, `delete_checklist`, `add_task_link_attachment`, `delete_task_attachment`, `archive_task`, `duplicate_task`, `list_recurring_tasks`, `create_recurring_task`, `delete_recurring_task`, `list_kanban_activity` |
212
- | **Projects** | `create_project`, `update_project`, `archive_project`, `project_stats`, `invite_project_member`, `authorize_project_member` |
213
- | **Time** | `start_timer`, `stop_timer`, `log_time`, `list_task_time` |
214
- | **Chat** | `list_chats`, `read_messages`, `send_message`, `create_chat_group`, `edit_chat_group`, `manage_chat_group_members`, `list_chat_group_members`, `leave_chat_group`, `mute_chat`, `edit_chat_message`, `delete_chat_message`, `mark_message_seen` |
215
- | **Workplace** | `list_announcements`, `list_surveys`, `list_my_attendance` |
216
- | **Company & user admin** | `create_user`, `update_user`, `set_user_status`, `set_user_role`, `get_user`, `list_roles`, `get_organization_chart`, `get_company`, `list_organization_units` |
217
- | **CRM — contacts, deals, activities** | `crm_search_contacts`, `crm_get_contact`, `crm_create_contact`, `crm_update_contact`, `crm_delete_contact`, `crm_contact_timeline`, `crm_search_deals`, `crm_get_deal`, `crm_create_deal`, `crm_update_deal`, `crm_delete_deal`, `crm_deal_stage_summary`, `crm_add_deal_next_step`, `crm_list_deal_line_items`, `crm_add_deal_line_item`, `crm_delete_deal_line_item`, `crm_search_activities`, `crm_create_activity`, `crm_complete_activity`, `crm_delete_activity`, `crm_dashboard_summary`, `crm_dashboard_pipeline` |
218
- | **CRM — pipelines & config** | `crm_list_pipelines`, `crm_create_pipeline`, `crm_delete_pipeline`, `crm_list_stages`, `crm_create_stage`, `crm_delete_stage`, `crm_list_lead_sources`, `crm_create_lead_source`, `crm_list_tags`, `crm_create_tag`, `crm_assign_tag`, `crm_list_custom_fields`, `crm_create_custom_field`, `crm_settings` |
219
- | **HR — payroll, discipline, careers, onboarding, cafeteria** | `list_my_payrolls`, `respond_to_payroll`, `list_my_performance_reviews`, `respond_to_performance_review`, `list_disciplinary_notes`, `estimate_disciplinary_penalty`, `create_disciplinary_note`, `list_administrative_notes`, `get_administrative_note`, `create_administrative_note`, `list_careers`, `list_career_requests`, `update_career_request_status`, `get_onboarding_checklist`, `set_onboarding_stage`, `list_food_schedules`, `reserve_food`, `list_my_food_reservations`, `mood_checkin` |
220
- | **Benefit fund (loans & lotteries)** | `benefit_fund_my_dashboard`, `benefit_fund_hr_dashboard`, `list_benefit_fund_loan_types`, `list_benefit_fund_loans`, `request_benefit_fund_loan`, `update_benefit_fund_loan_status`, `pay_benefit_fund_loan_installment`, `list_benefit_fund_lotteries`, `register_for_lottery`, `respond_to_lottery_win`, `benefit_fund_settings`, `list_benefit_fund_membership_requests`, `request_benefit_fund_membership`, `review_benefit_fund_membership_request` |
221
- | **Forms** | `list_forms`, `get_form`, `list_form_submissions`, `update_form_submission_status`, `message_form_submission` |
222
- | **CMS** | `list_posts`, `get_post`, `create_post`, `update_post`, `delete_post`, `list_custom_pages`, `get_custom_page` |
223
- | **Dev tickets (support)** | `list_dev_tickets`, `get_dev_ticket`, `create_dev_ticket`, `reply_to_dev_ticket` |
224
- | **Misc (addresses, surveys, announcements, billing)** | `list_my_addresses`, `add_address`, `create_survey`, `delete_survey`, `list_survey_answers`, `answer_survey`, `create_announcement`, `delete_announcement`, `list_transactions`, `list_payment_orders` |
225
- | **Company SQL (reporting views)** | `list_company_sql_schema`, `run_company_sql` |
295
+ | Group | Tools |
296
+ | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
297
+ | **Identity & structure** | `whoami`, `list_companies`, `list_projects`, `list_boards`, `list_project_members`, `find_user` |
298
+ | **Tasks** | `record_work`, `set_workspace_project`, `list_my_tasks`, `search_tasks`, `get_task`, `create_task`, `update_task`, `complete_task`, `assign_task`, `move_task`, `review_task`, `list_task_comments`, `add_task_comment` |
299
+ | **Kanban (boards, labels, checklists, attachments)** | `create_board`, `edit_board`, `archive_board`, `list_labels`, `create_label`, `delete_label`, `add_task_checklist`, `add_checklist_item`, `complete_checklist_item`, `delete_checklist`, `add_task_link_attachment`, `delete_task_attachment`, `archive_task`, `duplicate_task`, `list_recurring_tasks`, `create_recurring_task`, `delete_recurring_task`, `list_kanban_activity` |
300
+ | **Projects** | `create_project`, `update_project`, `archive_project`, `project_stats`, `invite_project_member`, `authorize_project_member` |
301
+ | **Time** | `start_timer`, `stop_timer`, `log_time`, `list_task_time` |
302
+ | **Chat** | `list_chats`, `read_messages`, `send_message`, `create_chat_group`, `edit_chat_group`, `manage_chat_group_members`, `list_chat_group_members`, `leave_chat_group`, `mute_chat`, `edit_chat_message`, `delete_chat_message`, `mark_message_seen` |
303
+ | **Workplace** | `list_announcements`, `list_surveys`, `list_my_attendance` |
304
+ | **Company & user admin** | `create_user`, `update_user`, `set_user_status`, `set_user_role`, `get_user`, `list_roles`, `get_organization_chart`, `get_company`, `list_organization_units` |
305
+ | **CRM — contacts, deals, activities** | `crm_search_contacts`, `crm_get_contact`, `crm_create_contact`, `crm_update_contact`, `crm_delete_contact`, `crm_contact_timeline`, `crm_search_deals`, `crm_get_deal`, `crm_create_deal`, `crm_update_deal`, `crm_delete_deal`, `crm_deal_stage_summary`, `crm_add_deal_next_step`, `crm_list_deal_line_items`, `crm_add_deal_line_item`, `crm_delete_deal_line_item`, `crm_search_activities`, `crm_create_activity`, `crm_complete_activity`, `crm_delete_activity`, `crm_dashboard_summary`, `crm_dashboard_pipeline` |
306
+ | **CRM — pipelines & config** | `crm_list_pipelines`, `crm_create_pipeline`, `crm_delete_pipeline`, `crm_list_stages`, `crm_create_stage`, `crm_delete_stage`, `crm_list_lead_sources`, `crm_create_lead_source`, `crm_list_tags`, `crm_create_tag`, `crm_assign_tag`, `crm_list_custom_fields`, `crm_create_custom_field`, `crm_settings` |
307
+ | **HR — payroll, discipline, careers, onboarding, cafeteria** | `list_my_payrolls`, `respond_to_payroll`, `list_my_performance_reviews`, `respond_to_performance_review`, `list_disciplinary_notes`, `estimate_disciplinary_penalty`, `create_disciplinary_note`, `list_administrative_notes`, `get_administrative_note`, `create_administrative_note`, `list_careers`, `list_career_requests`, `update_career_request_status`, `get_onboarding_checklist`, `set_onboarding_stage`, `list_food_schedules`, `reserve_food`, `list_my_food_reservations`, `mood_checkin` |
308
+ | **Benefit fund (loans & lotteries)** | `benefit_fund_my_dashboard`, `benefit_fund_hr_dashboard`, `list_benefit_fund_loan_types`, `list_benefit_fund_loans`, `request_benefit_fund_loan`, `update_benefit_fund_loan_status`, `pay_benefit_fund_loan_installment`, `list_benefit_fund_lotteries`, `register_for_lottery`, `respond_to_lottery_win`, `benefit_fund_settings`, `list_benefit_fund_membership_requests`, `request_benefit_fund_membership`, `review_benefit_fund_membership_request` |
309
+ | **Forms** | `list_forms`, `get_form`, `list_form_submissions`, `update_form_submission_status`, `message_form_submission` |
310
+ | **CMS** | `list_posts`, `get_post`, `create_post`, `update_post`, `delete_post`, `list_custom_pages`, `get_custom_page` |
311
+ | **Dev tickets (support)** | `list_dev_tickets`, `get_dev_ticket`, `create_dev_ticket`, `reply_to_dev_ticket` |
312
+ | **Misc (addresses, surveys, announcements, billing)** | `list_my_addresses`, `add_address`, `create_survey`, `delete_survey`, `list_survey_answers`, `answer_survey`, `create_announcement`, `delete_announcement`, `list_transactions`, `list_payment_orders` |
313
+ | **Company SQL (reporting views)** | `list_company_sql_schema`, `run_company_sql` |
226
314
 
227
315
  ---
228
316
 
@@ -235,17 +323,17 @@ register just that slice:
235
323
 
236
324
  ```json
237
325
  {
238
- "mcpServers": {
239
- "careerflow": {
240
- "command": "npx",
241
- "args": ["-y", "@codegame.dev/careerflow-mcp"],
242
- "env": {
243
- "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
244
- "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
245
- "CAREERFLOW_GROUPS": "workspace,tasks,time"
246
- }
247
- }
248
- }
326
+ "mcpServers": {
327
+ "careerflow": {
328
+ "command": "npx",
329
+ "args": ["-y", "@codegame.dev/careerflow-mcp"],
330
+ "env": {
331
+ "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
332
+ "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
333
+ "CAREERFLOW_GROUPS": "workspace,tasks,time"
334
+ }
335
+ }
336
+ }
249
337
  }
250
338
  ```
251
339
 
@@ -324,16 +412,16 @@ Every scope comes in a `:read`/`:write` pair; some also accept a `:own` suffix
324
412
  created, owns, or is assigned to — ask CareerFlow support or check the token
325
413
  creation screen if you want that narrower grant.
326
414
 
327
- | Group | Scopes | Covers |
328
- | --- | --- | --- |
329
- | Personal | `profile`, `files` | your own profile, sessions, addresses, onboarding; file/image/video uploads |
330
- | Work | `tasks`, `projects`, `time`, `chat` | kanban boards/tasks/checklists/labels, projects & membership, time tracking, chat & groups |
331
- | CRM | `crm_contacts`, `crm_deals`, `crm_activities`, `crm_settings` | contacts/leads, deals, activities, and CRM configuration (pipelines, stages, tags, custom fields) |
332
- | Company | `company`, `users`, `roles`, `attendance` | company profile & org chart, user admin, roles, attendance |
333
- | HR | `surveys`, `announcements`, `forms`, `payroll`, `performance`, `benefit_fund`, `notes`, `careers` | surveys, announcements, form builder, payroll/performance slips, benefit fund loans & lotteries, disciplinary/administrative notes, recruiting |
334
- | Content | `cms` | posts, custom pages, categories |
335
- | Billing | `billing`, `dev_tickets` | payment/product orders, transactions, support tickets |
336
- | Platform (staff-only) | `admin` | charts, logs, and other platform-admin surfaces — only issuable to CareerFlow staff accounts |
415
+ | Group | Scopes | Covers |
416
+ | --------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
417
+ | Personal | `profile`, `files` | your own profile, sessions, addresses, onboarding; file/image/video uploads |
418
+ | Work | `tasks`, `projects`, `time`, `chat` | kanban boards/tasks/checklists/labels, projects & membership, time tracking, chat & groups |
419
+ | CRM | `crm_contacts`, `crm_deals`, `crm_activities`, `crm_settings` | contacts/leads, deals, activities, and CRM configuration (pipelines, stages, tags, custom fields) |
420
+ | Company | `company`, `users`, `roles`, `attendance` | company profile & org chart, user admin, roles, attendance |
421
+ | HR | `surveys`, `announcements`, `forms`, `payroll`, `performance`, `benefit_fund`, `notes`, `careers` | surveys, announcements, form builder, payroll/performance slips, benefit fund loans & lotteries, disciplinary/administrative notes, recruiting |
422
+ | Content | `cms` | posts, custom pages, categories |
423
+ | Billing | `billing`, `dev_tickets` | payment/product orders, transactions, support tickets |
424
+ | Platform (staff-only) | `admin` | charts, logs, and other platform-admin surfaces — only issuable to CareerFlow staff accounts |
337
425
 
338
426
  Grant the narrowest set that does the job. A read-only assistant needs only
339
427
  `profile:read`, `tasks:read`, and `projects:read`.
@@ -374,13 +462,13 @@ Point your client at the built entry point:
374
462
 
375
463
  ```json
376
464
  {
377
- "mcpServers": {
378
- "careerflow": {
379
- "command": "node",
380
- "args": ["/absolute/path/to/careerflow-mcp/dist/index.js"],
381
- "env": { "CAREERFLOW_BASE_URL": "…", "CAREERFLOW_TOKEN": "…" }
382
- }
383
- }
465
+ "mcpServers": {
466
+ "careerflow": {
467
+ "command": "node",
468
+ "args": ["/absolute/path/to/careerflow-mcp/dist/index.js"],
469
+ "env": { "CAREERFLOW_BASE_URL": "…", "CAREERFLOW_TOKEN": "…" }
470
+ }
471
+ }
384
472
  }
385
473
  ```
386
474
 
@@ -392,23 +480,28 @@ docker build -t careerflow-mcp .
392
480
 
393
481
  ```json
394
482
  {
395
- "mcpServers": {
396
- "careerflow": {
397
- "command": "docker",
398
- "args": [
399
- "run", "-i", "--rm",
400
- "-e", "CAREERFLOW_BASE_URL",
401
- "-e", "CAREERFLOW_TOKEN",
402
- "-e", "CAREERFLOW_COMPANY_ID",
403
- "careerflow-mcp"
404
- ],
405
- "env": {
406
- "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
407
- "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
408
- "CAREERFLOW_COMPANY_ID": "24"
409
- }
410
- }
411
- }
483
+ "mcpServers": {
484
+ "careerflow": {
485
+ "command": "docker",
486
+ "args": [
487
+ "run",
488
+ "-i",
489
+ "--rm",
490
+ "-e",
491
+ "CAREERFLOW_BASE_URL",
492
+ "-e",
493
+ "CAREERFLOW_TOKEN",
494
+ "-e",
495
+ "CAREERFLOW_COMPANY_ID",
496
+ "careerflow-mcp"
497
+ ],
498
+ "env": {
499
+ "CAREERFLOW_BASE_URL": "https://careerflow.codegame.dev/site-api",
500
+ "CAREERFLOW_TOKEN": "cf_pat_xxxxxxxx",
501
+ "CAREERFLOW_COMPANY_ID": "24"
502
+ }
503
+ }
504
+ }
412
505
  }
413
506
  ```
414
507
 
@@ -472,12 +565,15 @@ Or publish from a machine that is already verified with npm: `npm publish`.
472
565
  This client tracks the CareerFlow REST API. Behaviours it deliberately works
473
566
  around, worth knowing before changing a tool:
474
567
 
475
- - `kanbans/tasks/edit`, `crm/deals/edit`, and `users/edit` all replace the
476
- whole row — a field left out falls back to a default (or null) rather than
477
- keeping its current value. `update_task`, `crm_update_deal`, and
478
- `update_user` each read the record first and merge onto it, so a partial
479
- change cannot silently clear untouched fields. Apply the same read-then-merge
480
- pattern to any other endpoint discovered to have this behavior.
568
+ - `kanbans/tasks/edit` is a partial update: apart from the company, project,
569
+ board and task ids, every field is applied only when its key is present, and
570
+ a present `null` clears it. Task edits therefore send only the changed fields
571
+ (resending `label_ids` would delete and re-insert every label).
572
+ - `crm/deals/edit` and `users/edit` are treated as whole-row replaces —
573
+ `crm_update_deal` and `update_user` read the record first and merge onto it.
574
+ Check the controller before changing that.
575
+ - Requests send a `locale: en` header, so validation errors come back in
576
+ English.
481
577
  - Several endpoints reject an unscoped company-wide read unless the caller holds
482
578
  an admin role, so tools pass the caller's own user id to mean "mine".
483
579
  - A few `search` endpoints require a filter the API otherwise has no "all"
@@ -19,6 +19,8 @@ export const TOOL_REQUIREMENTS = {
19
19
  find_user: "users:read",
20
20
  search_users: "users:read",
21
21
  // tasks
22
+ record_work: "tasks:write",
23
+ set_workspace_project: "tasks:read",
22
24
  list_my_tasks: "tasks:read",
23
25
  search_tasks: "tasks:read",
24
26
  get_task: "tasks:read",
@@ -207,9 +209,9 @@ export const TOOL_REQUIREMENTS = {
207
209
  */
208
210
  export async function fetchCapabilities(client, companyId) {
209
211
  try {
210
- const response = await client.get("users/capabilities", {
211
- company_id: companyId
212
- });
212
+ // short timeout, no retry: this runs before the server answers the
213
+ // client's initialize, and failing open is cheaper than a slow start
214
+ const response = await client.get("users/capabilities", { company_id: companyId }, { timeoutMs: 3000, noRetry: true });
213
215
  const data = response.data;
214
216
  if (!data || typeof data !== "object" || !data.capabilities) {
215
217
  return null;
@@ -337,6 +339,29 @@ export const SQL_REDUNDANT_TOOLS = new Set([
337
339
  "list_custom_pages",
338
340
  "get_custom_page"
339
341
  ]);
342
+ /**
343
+ * Named tool sets selected with CAREERFLOW_PROFILE. `full` (the default) keeps
344
+ * every tool the groups and capabilities allow; `worklog` keeps only what the
345
+ * main use needs — recording finished coding work on a repo's board — so the
346
+ * server is cheap enough to leave enabled user-wide.
347
+ */
348
+ export const PROFILES = {
349
+ full: null,
350
+ worklog: new Set([
351
+ "record_work",
352
+ "set_workspace_project",
353
+ "list_my_tasks",
354
+ "search_tasks",
355
+ "get_task",
356
+ "update_task",
357
+ "complete_task",
358
+ "log_time",
359
+ "start_timer",
360
+ "stop_timer",
361
+ "list_projects",
362
+ "list_boards"
363
+ ])
364
+ };
340
365
  /**
341
366
  * Wraps an McpServer so `registerTool` drops the tools the user cannot reach.
342
367
  *
@@ -348,19 +373,23 @@ export const SQL_REDUNDANT_TOOLS = new Set([
348
373
  * when the user cannot run SQL, and false again when the `company-sql` group
349
374
  * was filtered out, so the reads are never dropped in favor of tools that are
350
375
  * not there.
376
+ *
377
+ * `profile`, when set, is a name allowlist applied before everything else
378
+ * (CAREERFLOW_PROFILE). The wrapper always reports what it registered, so the
379
+ * server instructions can name only tools that exist.
351
380
  */
352
- export function gateServer(server, capabilities, report, sqlAvailable = false) {
353
- if (!capabilities) {
354
- return server;
355
- }
381
+ export function gateServer(server, capabilities, report, sqlAvailable = false, profile = null) {
356
382
  return new Proxy(server, {
357
383
  get(target, property, receiver) {
358
384
  if (property !== "registerTool") {
359
385
  return Reflect.get(target, property, receiver);
360
386
  }
361
387
  return (name, ...rest) => {
388
+ if (profile && !profile.has(name)) {
389
+ return undefined;
390
+ }
362
391
  const requirement = TOOL_REQUIREMENTS[name];
363
- if (requirement && !allows(capabilities, requirement)) {
392
+ if (capabilities && requirement && !allows(capabilities, requirement)) {
364
393
  report.skipped.push(name);
365
394
  return undefined;
366
395
  }
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAwCA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAwC;IACrE,4EAA4E;IAC5E,+DAA+D;IAC/D,cAAc,EAAE,cAAc;IAC9B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,YAAY;IACzB,oBAAoB,EAAE,eAAe;IACrC,SA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