@codegame.dev/careerflow-mcp 2.0.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 +158 -134
- package/dist/capabilities.js +2 -2
- package/dist/capabilities.js.map +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/prompts.js +2 -2
- package/dist/prompts.js.map +1 -1
- package/dist/setup.js +62 -17
- package/dist/setup.js.map +1 -1
- package/dist/tools/worklog.js +87 -73
- package/dist/tools/worklog.js.map +1 -1
- package/dist/workspaces.js +2 -3
- package/dist/workspaces.js.map +1 -1
- package/package.json +1 -1
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 —
|
|
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,8 +40,11 @@ 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`
|
|
42
|
-
- `--profile` — `worklog` (
|
|
43
|
-
|
|
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.
|
|
44
48
|
|
|
45
49
|
For a faster, offline-safe start, install globally first —
|
|
46
50
|
`npm i -g @codegame.dev/careerflow-mcp` — and run `careerflow-mcp init`. The
|
|
@@ -62,7 +66,8 @@ npx @codegame.dev/careerflow-mcp remove --client zcode --name acme
|
|
|
62
66
|
```
|
|
63
67
|
|
|
64
68
|
Without flags it asks which client to clean up. For Claude Code it runs
|
|
65
|
-
`claude mcp remove --scope user
|
|
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
|
|
66
71
|
deletes the entry from the client's JSON config, leaving everything else in the
|
|
67
72
|
file untouched. Other clients: delete the pasted block by hand.
|
|
68
73
|
|
|
@@ -70,12 +75,12 @@ file untouched. Other clients: delete the pasted block by hand.
|
|
|
70
75
|
|
|
71
76
|
1. Create an access token.
|
|
72
77
|
|
|
73
|
-
|
|
78
|
+
In CareerFlow: **Settings → Access Tokens → Create access token**.
|
|
74
79
|
|
|
75
|
-
|
|
80
|
+
Give it a name, an expiry, and only the permissions the assistant needs.
|
|
76
81
|
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
> **The token is shown once.** It is stored hashed and cannot be recovered
|
|
83
|
+
> afterwards. Copy it before closing the dialog.
|
|
79
84
|
|
|
80
85
|
2. Add it to your client.
|
|
81
86
|
|
|
@@ -93,21 +98,22 @@ claude mcp add careerflow \
|
|
|
93
98
|
|
|
94
99
|
```json
|
|
95
100
|
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
+
}
|
|
107
112
|
}
|
|
108
113
|
```
|
|
109
114
|
|
|
110
115
|
Config file locations:
|
|
116
|
+
|
|
111
117
|
- macOS — `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
112
118
|
- Windows — `%APPDATA%\Claude\claude_desktop_config.json`
|
|
113
119
|
- Linux — `~/.config/Claude/claude_desktop_config.json`
|
|
@@ -117,41 +123,41 @@ Config file locations:
|
|
|
117
123
|
|
|
118
124
|
```json
|
|
119
125
|
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
+
}
|
|
134
140
|
}
|
|
135
141
|
```
|
|
136
142
|
|
|
137
143
|
For a project-shared server use `<repo>/.zcode/config.json` instead — but the
|
|
138
144
|
token would then sit in a versioned file; prefer user scope.
|
|
139
145
|
|
|
140
|
-
Restart the client. Ask it
|
|
146
|
+
Restart the client. Ask it _"what are my tasks?"_ to confirm the connection.
|
|
141
147
|
|
|
142
148
|
### Configuration
|
|
143
149
|
|
|
144
|
-
| Variable
|
|
145
|
-
|
|
|
146
|
-
| `CAREERFLOW_BASE_URL`
|
|
147
|
-
| `CAREERFLOW_TOKEN`
|
|
148
|
-
| `CAREERFLOW_COMPANY_ID`
|
|
149
|
-
| `CAREERFLOW_TIMEOUT_MS`
|
|
150
|
-
| `CAREERFLOW_PROFILE`
|
|
151
|
-
| `CAREERFLOW_GROUPS`
|
|
152
|
-
| `CAREERFLOW_EXCLUDE_GROUPS`
|
|
153
|
-
| `CAREERFLOW_ALL_TOOLS`
|
|
154
|
-
| `CAREERFLOW_KEEP_READ_TOOLS` | no
|
|
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 |
|
|
155
161
|
|
|
156
162
|
The token is read only from the environment, never from command-line arguments —
|
|
157
163
|
argv is readable by other processes on the same machine.
|
|
@@ -161,6 +167,7 @@ argv is readable by other processes on the same machine.
|
|
|
161
167
|
## What you can ask for
|
|
162
168
|
|
|
163
169
|
**Daily work**
|
|
170
|
+
|
|
164
171
|
- "What am I working on today?" · "Anything overdue?"
|
|
165
172
|
- "Mark the login-bug task done."
|
|
166
173
|
- "Start a timer on task 412." · "Log 45 minutes on the report task."
|
|
@@ -168,23 +175,27 @@ argv is readable by other processes on the same machine.
|
|
|
168
175
|
- "Add a checklist to task 12 with three items." · "Attach this link to task 40."
|
|
169
176
|
|
|
170
177
|
**Supervising a team**
|
|
178
|
+
|
|
171
179
|
- "What is Sara working on?" · "Show everything pending review."
|
|
172
180
|
- "Create a task 'Prepare Q3 report' in Sprint 12, assign it to Ali, due Friday, high priority."
|
|
173
181
|
- "Move task 91 to Done." · "Accept task 77 and score it 4.5."
|
|
174
182
|
- "Create a project called 'Website Redesign' and add Sara as manager."
|
|
175
183
|
|
|
176
184
|
**Sales & CRM**
|
|
185
|
+
|
|
177
186
|
- "Show my open deals." · "Create a lead for Acme Corp from the website form."
|
|
178
187
|
- "Move the Acme deal to Negotiation and set the amount to $12,000."
|
|
179
188
|
- "Log a call with the Beta Inc contact." · "What's in my pipeline this month?"
|
|
180
189
|
|
|
181
190
|
**HR & people ops**
|
|
191
|
+
|
|
182
192
|
- "Show my latest payroll slip." · "Accept my performance review."
|
|
183
193
|
- "List open job applications for the Backend Engineer posting."
|
|
184
194
|
- "Am I registered for the current loan lottery?" · "Check in my mood: 4, feeling good today."
|
|
185
195
|
- "Reserve lunch for tomorrow."
|
|
186
196
|
|
|
187
197
|
**Around the work**
|
|
198
|
+
|
|
188
199
|
- "Any new announcements?" · "Message Reza that the deploy finished."
|
|
189
200
|
- "Create a chat group for the launch team with Sara, Ali, and Reza."
|
|
190
201
|
- "Open a support ticket about the slow dashboard load."
|
|
@@ -196,15 +207,15 @@ argv is readable by other processes on the same machine.
|
|
|
196
207
|
The tools keep the backend API's names, and the UI names the same things
|
|
197
208
|
differently — easy to trip over when relaying what a user asked for:
|
|
198
209
|
|
|
199
|
-
| API (and these tools)
|
|
200
|
-
|
|
|
201
|
-
| project of type `special`
|
|
202
|
-
| project of type `normal` — or any non-special type | "board" (تابلو)
|
|
203
|
-
| board — a column of tasks inside a project
|
|
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" (لیست) |
|
|
204
215
|
|
|
205
|
-
So when a user asks for a "board", they usually mean an API
|
|
216
|
+
So when a user asks for a "board", they usually mean an API _project_ (find it
|
|
206
217
|
with `list_projects`, checking each row's `type`); when they ask for a "list",
|
|
207
|
-
they mean an API
|
|
218
|
+
they mean an API _board_ (`list_boards`). The server's `instructions` string
|
|
208
219
|
spells this out to the model too.
|
|
209
220
|
|
|
210
221
|
## Logging finished work
|
|
@@ -215,10 +226,10 @@ that in one call for a whole batch:
|
|
|
215
226
|
|
|
216
227
|
```ts
|
|
217
228
|
record_work({
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
229
|
+
tasks: [
|
|
230
|
+
{ title: "Fix QR label centering", minutes: 45 },
|
|
231
|
+
{ title: "Add Amplitude proxy", description: "...", minutes: 90, date: "2026-11-11" }
|
|
232
|
+
]
|
|
222
233
|
})
|
|
223
234
|
// → { project_id: 2500, board_id: 712, board: "In progress",
|
|
224
235
|
// tasks: [{ title: "...", id: 29371, minutes: 45, done: true }, ...] }
|
|
@@ -229,12 +240,13 @@ complete (`done` defaults to `true`). An open task in the project with the same
|
|
|
229
240
|
title is reused instead of duplicated (`matched_existing: true`). Each item
|
|
230
241
|
reports its own status, so one failure does not stop the rest.
|
|
231
242
|
|
|
232
|
-
**Which
|
|
233
|
-
`~/.config/careerflow-mcp/workspaces.json`
|
|
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):
|
|
234
246
|
|
|
235
247
|
```json
|
|
236
248
|
{
|
|
237
|
-
|
|
249
|
+
"/home/me/work/acme-web": { "company_id": 6, "project_id": 2500 }
|
|
238
250
|
}
|
|
239
251
|
```
|
|
240
252
|
|
|
@@ -242,16 +254,23 @@ The server finds the closest entry at or above its working directory (Claude
|
|
|
242
254
|
Code starts it in the project folder) and tells the model in one line, so no
|
|
243
255
|
`list_projects` / `list_boards` discovery is needed.
|
|
244
256
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
`
|
|
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).
|
|
255
274
|
|
|
256
275
|
**Prompts.** Two MCP prompts ship with the server; Claude Code shows them as
|
|
257
276
|
slash commands (`/mcp__<server-name>__log_work`):
|
|
@@ -261,7 +280,7 @@ slash commands (`/mcp__<server-name>__log_work`):
|
|
|
261
280
|
- `my_day` — open and overdue tasks assigned to you.
|
|
262
281
|
|
|
263
282
|
**Profile.** `CAREERFLOW_PROFILE=worklog` (what `init` writes by default)
|
|
264
|
-
registers only `record_work`, `
|
|
283
|
+
registers only `record_work`, `set_workspace_project`, `list_my_tasks`, `search_tasks`, `get_task`,
|
|
265
284
|
`update_task`, `complete_task`, `log_time`, `start_timer`, `stop_timer`,
|
|
266
285
|
`list_projects` and `list_boards`, with a few lines of instructions — cheap
|
|
267
286
|
enough to leave enabled in every project.
|
|
@@ -273,25 +292,25 @@ enough to leave enabled in every project.
|
|
|
273
292
|
167 tools. The everyday surface
|
|
274
293
|
([only part of it can be registered](#registering-only-the-tool-groups-you-need)):
|
|
275
294
|
|
|
276
|
-
| Group
|
|
277
|
-
|
|
|
278
|
-
| **Identity & structure**
|
|
279
|
-
| **Tasks**
|
|
280
|
-
| **Kanban (boards, labels, checklists, attachments)**
|
|
281
|
-
| **Projects**
|
|
282
|
-
| **Time**
|
|
283
|
-
| **Chat**
|
|
284
|
-
| **Workplace**
|
|
285
|
-
| **Company & user admin**
|
|
286
|
-
| **CRM — contacts, deals, activities**
|
|
287
|
-
| **CRM — pipelines & config**
|
|
288
|
-
| **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`
|
|
289
|
-
| **Benefit fund (loans & lotteries)**
|
|
290
|
-
| **Forms**
|
|
291
|
-
| **CMS**
|
|
292
|
-
| **Dev tickets (support)**
|
|
293
|
-
| **Misc (addresses, surveys, announcements, billing)**
|
|
294
|
-
| **Company SQL (reporting views)**
|
|
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` |
|
|
295
314
|
|
|
296
315
|
---
|
|
297
316
|
|
|
@@ -304,17 +323,17 @@ register just that slice:
|
|
|
304
323
|
|
|
305
324
|
```json
|
|
306
325
|
{
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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
|
+
}
|
|
318
337
|
}
|
|
319
338
|
```
|
|
320
339
|
|
|
@@ -393,16 +412,16 @@ Every scope comes in a `:read`/`:write` pair; some also accept a `:own` suffix
|
|
|
393
412
|
created, owns, or is assigned to — ask CareerFlow support or check the token
|
|
394
413
|
creation screen if you want that narrower grant.
|
|
395
414
|
|
|
396
|
-
| Group
|
|
397
|
-
|
|
|
398
|
-
| Personal
|
|
399
|
-
| Work
|
|
400
|
-
| CRM
|
|
401
|
-
| Company
|
|
402
|
-
| HR
|
|
403
|
-
| Content
|
|
404
|
-
| Billing
|
|
405
|
-
| Platform (staff-only) | `admin`
|
|
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 |
|
|
406
425
|
|
|
407
426
|
Grant the narrowest set that does the job. A read-only assistant needs only
|
|
408
427
|
`profile:read`, `tasks:read`, and `projects:read`.
|
|
@@ -443,13 +462,13 @@ Point your client at the built entry point:
|
|
|
443
462
|
|
|
444
463
|
```json
|
|
445
464
|
{
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
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
|
+
}
|
|
453
472
|
}
|
|
454
473
|
```
|
|
455
474
|
|
|
@@ -461,23 +480,28 @@ docker build -t careerflow-mcp .
|
|
|
461
480
|
|
|
462
481
|
```json
|
|
463
482
|
{
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
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
|
+
}
|
|
481
505
|
}
|
|
482
506
|
```
|
|
483
507
|
|
package/dist/capabilities.js
CHANGED
|
@@ -20,7 +20,7 @@ export const TOOL_REQUIREMENTS = {
|
|
|
20
20
|
search_users: "users:read",
|
|
21
21
|
// tasks
|
|
22
22
|
record_work: "tasks:write",
|
|
23
|
-
|
|
23
|
+
set_workspace_project: "tasks:read",
|
|
24
24
|
list_my_tasks: "tasks:read",
|
|
25
25
|
search_tasks: "tasks:read",
|
|
26
26
|
get_task: "tasks:read",
|
|
@@ -349,7 +349,7 @@ export const PROFILES = {
|
|
|
349
349
|
full: null,
|
|
350
350
|
worklog: new Set([
|
|
351
351
|
"record_work",
|
|
352
|
-
"
|
|
352
|
+
"set_workspace_project",
|
|
353
353
|
"list_my_tasks",
|
|
354
354
|
"search_tasks",
|
|
355
355
|
"get_task",
|
package/dist/capabilities.js.map
CHANGED
|
@@ -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,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,YAAY;IAE1B,QAAQ;IACR,WAAW,EAAE,aAAa;IAC1B,
|
|
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,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,YAAY;IAE1B,QAAQ;IACR,WAAW,EAAE,aAAa;IAC1B,qBAAqB,EAAE,YAAY;IACnC,aAAa,EAAE,YAAY;IAC3B,YAAY,EAAE,YAAY;IAC1B,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,aAAa;IACxB,WAAW,EAAE,aAAa;IAC1B,kBAAkB,EAAE,YAAY;IAChC,gBAAgB,EAAE,aAAa;IAE/B,gBAAgB;IAChB,YAAY,EAAE,aAAa;IAC3B,UAAU,EAAE,aAAa;IACzB,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;IAC3B,YAAY,EAAE,aAAa;IAC3B,kBAAkB,EAAE,aAAa;IACjC,kBAA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AA;oBACzB,OAAO,SAAS,CAAA;gBACjB,CAAC;gBACD,IAAI,YAAY,IAAI,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBACnD,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;oBAC/B,OAAO,SAAS,CAAA;gBACjB,CAAC;gBACD,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gBAC5B,OAAQ,MAAM,CAAC,YAA4C,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,CAAA;YACxF,CAAC,CAAA;QACF,CAAC;KACD,CAAC,CAAA;AACH,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -104,17 +104,21 @@ separately, hidden, and never read from the command line):
|
|
|
104
104
|
--name <name> Server name in the client config (default: careerflow)
|
|
105
105
|
--company-id <id> Default company, so tools need no company_id
|
|
106
106
|
--client <id> claude-code, claude-desktop, zcode, cursor, or other
|
|
107
|
-
--profile <name> worklog (
|
|
107
|
+
--profile <name> worklog (task and time tools only) or full; asked if omitted
|
|
108
|
+
--scope <name> Claude Code only: user (all projects) or local (this
|
|
109
|
+
folder, for you only); asked if omitted
|
|
108
110
|
|
|
109
111
|
remove options (no token needed):
|
|
110
112
|
--name <name> Server name to remove (default: careerflow)
|
|
111
113
|
--client <id> claude-code, claude-desktop, zcode, or cursor
|
|
112
114
|
(without it, remove asks interactively)
|
|
115
|
+
--scope <name> Claude Code scope it was added in (default: user)
|
|
113
116
|
|
|
114
117
|
link options (run inside the repo; writes ~/.config/careerflow-mcp/workspaces.json):
|
|
115
|
-
--project <id> Project id (required)
|
|
116
|
-
--board <id>
|
|
117
|
-
|
|
118
|
+
--project <id> Project id, the UI's board or project (required)
|
|
119
|
+
--board <id> Optional list id every task goes to (default: picked
|
|
120
|
+
per task, finished work to the "Done" list)
|
|
121
|
+
--done-board <id> Optional list id finished tasks go to
|
|
118
122
|
--company-id <id> Optional; defaults to CAREERFLOW_COMPANY_ID
|
|
119
123
|
--dir <path> Folder to link (default: the current directory)
|
|
120
124
|
|
|
@@ -225,8 +229,8 @@ function buildInstructions(options) {
|
|
|
225
229
|
lines.push(options.workspaceLine);
|
|
226
230
|
}
|
|
227
231
|
else if (has.has("record_work")) {
|
|
228
|
-
lines.push("To log finished work, use record_work. No
|
|
229
|
-
"
|
|
232
|
+
lines.push("To log finished work, use record_work. No project is saved for this folder yet: ask the user " +
|
|
233
|
+
"which board or project (UI names) to use; the first record_work (or set_workspace_project) saves it.");
|
|
230
234
|
}
|
|
231
235
|
const irreversible = IRREVERSIBLE_TOOLS.filter((name) => has.has(name));
|
|
232
236
|
if (irreversible.length) {
|
|
@@ -292,9 +296,7 @@ async function serve() {
|
|
|
292
296
|
const sqlNote = report.skippedForSql.length
|
|
293
297
|
? `, ${report.skippedForSql.length} read-only tools replaced by run_company_sql`
|
|
294
298
|
: "";
|
|
295
|
-
const workspaceNote = workspace
|
|
296
|
-
? `, workspace: project ${workspace.entry.project_id} / board ${workspace.entry.board_id}`
|
|
297
|
-
: "";
|
|
299
|
+
const workspaceNote = workspace ? `, workspace: project ${workspace.entry.project_id}` : "";
|
|
298
300
|
console.error(`careerflow-mcp connected (api: ${config.baseUrl}, profile: ${profile.name}, groups: ${groups.map((g) => g.name).join(", ")}${reach}${sqlNote}${workspaceNote})`);
|
|
299
301
|
}
|
|
300
302
|
const [, , command] = process.argv;
|