@codegame.dev/careerflow-mcp 1.6.0 → 1.8.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
@@ -142,6 +142,8 @@ Restart the client. Ask it *"what are my tasks?"* to confirm the connection.
142
142
  | `CAREERFLOW_TIMEOUT_MS` | no | Request timeout, default `30000` |
143
143
  | `CAREERFLOW_GROUPS` | no | Register only these comma-separated tool groups |
144
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 |
145
147
 
146
148
  The token is read only from the environment, never from command-line arguments —
147
149
  argv is readable by other processes on the same machine.
@@ -199,7 +201,7 @@ spells this out to the model too.
199
201
 
200
202
  ## Tools
201
203
 
202
- 164 tools. The everyday surface
204
+ 167 tools. The everyday surface
203
205
  ([only part of it can be registered](#registering-only-the-tool-groups-you-need)):
204
206
 
205
207
  | Group | Tools |
@@ -220,13 +222,14 @@ spells this out to the model too.
220
222
  | **CMS** | `list_posts`, `get_post`, `create_post`, `update_post`, `delete_post`, `list_custom_pages`, `get_custom_page` |
221
223
  | **Dev tickets (support)** | `list_dev_tickets`, `get_dev_ticket`, `create_dev_ticket`, `reply_to_dev_ticket` |
222
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` |
223
226
 
224
227
  ---
225
228
 
226
229
  ## Registering only the tool groups you need
227
230
 
228
231
  Every registered tool's schema lands in the model's context, so a client that
229
- loads all 164 tools spends real tokens on descriptions before you ask anything.
232
+ loads all 167 tools spends real tokens on descriptions before you ask anything.
230
233
  If the assistant only works one domain — a sales assistant, a task bot —
231
234
  register just that slice:
232
235
 
@@ -250,7 +253,8 @@ Group names (matching rows in the table above, `crm` covering both CRM rows,
250
253
  `chat` both chat modules):
251
254
 
252
255
  `workspace`, `tasks`, `kanban`, `projects`, `time`, `chat`, `workplace`,
253
- `admin`, `crm`, `hr`, `benefit-funds`, `forms`, `cms`, `dev-tickets`, `misc`
256
+ `admin`, `crm`, `hr`, `benefit-funds`, `forms`, `cms`, `dev-tickets`, `misc`,
257
+ `company-sql`
254
258
 
255
259
  `CAREERFLOW_GROUPS` is an allowlist; `CAREERFLOW_EXCLUDE_GROUPS` removes the
256
260
  named groups from the full set. An unknown name fails at startup with the valid
@@ -259,6 +263,51 @@ decide what actually works.
259
263
 
260
264
  ---
261
265
 
266
+ ## Tools you cannot use are not registered
267
+
268
+ On top of the group filter, the server asks the API at startup what your role in
269
+ the company and your token's scopes actually allow (`GET users/capabilities`),
270
+ and registers only the tools that pass. A sales rep never sees the payroll
271
+ tools; a token scoped to `tasks:read` never sees `create_task`. The startup line
272
+ on stderr says how many were hidden:
273
+
274
+ ```
275
+ careerflow-mcp connected (api: …, groups: …, tools: 57 registered / 110 hidden by role + token scopes)
276
+ ```
277
+
278
+ This is a context-size and clarity measure, not a security boundary — the API
279
+ enforces the same rules on every call either way. It degrades safely: an older
280
+ API without the endpoint, an unreachable host, or a company that cannot be
281
+ resolved (no `CAREERFLOW_COMPANY_ID` and no company on your account) registers
282
+ everything, exactly as before. Set `CAREERFLOW_ALL_TOOLS=1` to opt out.
283
+
284
+ Because the filter is computed once at startup, a role or token change takes
285
+ effect when the client restarts the server.
286
+
287
+ ### If you can run company SQL, the read-only tools step aside
288
+
289
+ `run_company_sql` answers any question the `v_ai_*` views cover — with filters,
290
+ joins and aggregates no fixed tool offers — so for the users who have it (the
291
+ company owner, a full-access role, CareerFlow staff) the 34 read-only tools that
292
+ merely duplicate it are not registered. On a full-access account that is 167
293
+ tools down to 133, and "how many deals closed last quarter by owner" becomes one
294
+ query instead of several paged listings.
295
+
296
+ What stays, SQL or no SQL:
297
+
298
+ - the reads a write depends on — `list_projects`, `list_boards`, `list_labels`,
299
+ `list_roles`, `crm_list_pipelines`, `crm_list_stages`, `crm_search_*`,
300
+ `find_user`, `list_forms`, `list_form_submissions`, `list_career_requests`,
301
+ `list_food_schedules`, `list_surveys`, `list_posts`
302
+ - everything the views do not cover — payroll and performance rows, the whole
303
+ benefit fund, dev tickets, billing, addresses, CRM settings
304
+ - chat, which is a live conversation rather than a report
305
+
306
+ Users who cannot run SQL keep every read tool. Set `CAREERFLOW_KEEP_READ_TOOLS=1`
307
+ to keep them anyway.
308
+
309
+ ---
310
+
262
311
  ## Permissions
263
312
 
264
313
  Each token carries an explicit permission list. A tool call that needs a
@@ -285,6 +334,9 @@ creation screen if you want that narrower grant.
285
334
  Grant the narrowest set that does the job. A read-only assistant needs only
286
335
  `profile:read`, `tasks:read`, and `projects:read`.
287
336
 
337
+ The Company SQL tools are gated on top of scopes: the API re-authorizes each
338
+ call and only a company owner or a full-access user can run one.
339
+
288
340
  ### Security notes
289
341
 
290
342
  - A token acts as you, limited to its permissions. Treat it like a password.
@@ -0,0 +1,351 @@
1
+ /**
2
+ * What each tool needs, as "<module>:<verb>". The module names are the same
3
+ * ones the API's scope list uses, so a requirement here reads the same way the
4
+ * token's scope does.
5
+ *
6
+ * `manage` marks the tools that act on the whole company rather than on the
7
+ * caller's own records — creating a survey rather than answering one, approving
8
+ * a loan rather than requesting one. A tool absent from this map is always
9
+ * registered, so a tool added without a requirement stays visible rather than
10
+ * silently disappearing.
11
+ */
12
+ export const TOOL_REQUIREMENTS = {
13
+ // workspace — whoami is deliberately absent: it must answer even for a user
14
+ // who can reach nothing else, because it is what tells them so
15
+ list_companies: "company:read",
16
+ list_projects: "projects:read",
17
+ list_boards: "tasks:read",
18
+ list_project_members: "projects:read",
19
+ find_user: "users:read",
20
+ search_users: "users:read",
21
+ // tasks
22
+ list_my_tasks: "tasks:read",
23
+ search_tasks: "tasks:read",
24
+ get_task: "tasks:read",
25
+ create_task: "tasks:write",
26
+ update_task: "tasks:write",
27
+ complete_task: "tasks:write",
28
+ assign_task: "tasks:write",
29
+ move_task: "tasks:write",
30
+ review_task: "tasks:write",
31
+ list_task_comments: "tasks:read",
32
+ add_task_comment: "tasks:write",
33
+ // kanban extras
34
+ create_board: "tasks:write",
35
+ edit_board: "tasks:write",
36
+ archive_board: "tasks:write",
37
+ list_labels: "tasks:read",
38
+ create_label: "tasks:write",
39
+ delete_label: "tasks:write",
40
+ add_task_checklist: "tasks:write",
41
+ add_checklist_item: "tasks:write",
42
+ complete_checklist_item: "tasks:write",
43
+ delete_checklist: "tasks:write",
44
+ add_task_link_attachment: "tasks:write",
45
+ delete_task_attachment: "tasks:write",
46
+ archive_task: "tasks:write",
47
+ duplicate_task: "tasks:write",
48
+ list_recurring_tasks: "tasks:read",
49
+ create_recurring_task: "tasks:write",
50
+ delete_recurring_task: "tasks:write",
51
+ list_kanban_activity: "tasks:read",
52
+ // projects
53
+ create_project: "projects:write",
54
+ update_project: "projects:write",
55
+ archive_project: "projects:write",
56
+ project_stats: "projects:read",
57
+ invite_project_member: "projects:write",
58
+ authorize_project_member: "projects:write",
59
+ // time
60
+ start_timer: "time:write",
61
+ stop_timer: "time:write",
62
+ log_time: "time:write",
63
+ list_task_time: "time:read",
64
+ // chat
65
+ list_chats: "chat:read",
66
+ read_messages: "chat:read",
67
+ send_message: "chat:write",
68
+ create_chat_group: "chat:manage",
69
+ edit_chat_group: "chat:write",
70
+ manage_chat_group_members: "chat:write",
71
+ list_chat_group_members: "chat:read",
72
+ leave_chat_group: "chat:write",
73
+ mute_chat: "chat:write",
74
+ edit_chat_message: "chat:write",
75
+ delete_chat_message: "chat:write",
76
+ mark_message_seen: "chat:write",
77
+ // workplace
78
+ list_announcements: "announcements:read",
79
+ list_surveys: "surveys:read",
80
+ list_my_attendance: "attendance:read",
81
+ // company & user administration
82
+ create_user: "users:write",
83
+ update_user: "users:write",
84
+ set_user_status: "users:write",
85
+ set_user_role: "users:write",
86
+ get_user: "users:read",
87
+ list_roles: "roles:read",
88
+ get_organization_chart: "company:read",
89
+ get_company: "company:read",
90
+ list_organization_units: "company:read",
91
+ // CRM records
92
+ crm_search_contacts: "crm_contacts:read",
93
+ crm_get_contact: "crm_contacts:read",
94
+ crm_create_contact: "crm_contacts:write",
95
+ crm_update_contact: "crm_contacts:write",
96
+ crm_delete_contact: "crm_contacts:write",
97
+ crm_contact_timeline: "crm_contacts:read",
98
+ crm_search_deals: "crm_deals:read",
99
+ crm_get_deal: "crm_deals:read",
100
+ crm_create_deal: "crm_deals:write",
101
+ crm_update_deal: "crm_deals:write",
102
+ crm_delete_deal: "crm_deals:write",
103
+ crm_deal_stage_summary: "crm_deals:read",
104
+ crm_add_deal_next_step: "crm_deals:write",
105
+ crm_list_deal_line_items: "crm_deals:read",
106
+ crm_add_deal_line_item: "crm_deals:write",
107
+ crm_delete_deal_line_item: "crm_deals:write",
108
+ crm_search_activities: "crm_activities:read",
109
+ crm_create_activity: "crm_activities:write",
110
+ crm_complete_activity: "crm_activities:write",
111
+ crm_delete_activity: "crm_activities:write",
112
+ crm_dashboard_summary: "crm_deals:read",
113
+ crm_dashboard_pipeline: "crm_deals:read",
114
+ // CRM configuration — reading pipelines and stages is part of ordinary CRM
115
+ // work (a deal cannot move without resolving its stage), writing them is not
116
+ crm_list_pipelines: "crm_settings:read",
117
+ crm_list_stages: "crm_settings:read",
118
+ crm_list_lead_sources: "crm_settings:read",
119
+ crm_list_tags: "crm_settings:read",
120
+ crm_list_custom_fields: "crm_settings:read",
121
+ crm_settings: "crm_settings:read",
122
+ crm_create_pipeline: "crm_settings:write",
123
+ crm_delete_pipeline: "crm_settings:write",
124
+ crm_create_stage: "crm_settings:write",
125
+ crm_delete_stage: "crm_settings:write",
126
+ crm_create_lead_source: "crm_settings:write",
127
+ crm_create_tag: "crm_settings:write",
128
+ crm_assign_tag: "crm_settings:write",
129
+ crm_create_custom_field: "crm_settings:write",
130
+ // HR
131
+ list_my_payrolls: "payroll:read",
132
+ respond_to_payroll: "payroll:write",
133
+ list_my_performance_reviews: "performance:read",
134
+ respond_to_performance_review: "performance:write",
135
+ list_disciplinary_notes: "notes:read",
136
+ estimate_disciplinary_penalty: "notes:manage",
137
+ create_disciplinary_note: "notes:manage",
138
+ list_administrative_notes: "notes:read",
139
+ get_administrative_note: "notes:read",
140
+ create_administrative_note: "notes:write",
141
+ list_careers: "careers:read",
142
+ list_career_requests: "careers:read",
143
+ update_career_request_status: "careers:manage",
144
+ get_onboarding_checklist: "profile:read",
145
+ set_onboarding_stage: "profile:write",
146
+ list_food_schedules: "profile:read",
147
+ reserve_food: "profile:write",
148
+ list_my_food_reservations: "profile:read",
149
+ mood_checkin: "profile:write",
150
+ // benefit fund — members request, the fund's HR side decides
151
+ benefit_fund_my_dashboard: "benefit_fund:read",
152
+ benefit_fund_hr_dashboard: "benefit_fund:manage",
153
+ list_benefit_fund_loan_types: "benefit_fund:read",
154
+ list_benefit_fund_loans: "benefit_fund:read",
155
+ request_benefit_fund_loan: "benefit_fund:write",
156
+ update_benefit_fund_loan_status: "benefit_fund:manage",
157
+ pay_benefit_fund_loan_installment: "benefit_fund:manage",
158
+ list_benefit_fund_lotteries: "benefit_fund:read",
159
+ register_for_lottery: "benefit_fund:write",
160
+ respond_to_lottery_win: "benefit_fund:write",
161
+ benefit_fund_settings: "benefit_fund:read",
162
+ list_benefit_fund_membership_requests: "benefit_fund:read",
163
+ request_benefit_fund_membership: "benefit_fund:write",
164
+ review_benefit_fund_membership_request: "benefit_fund:manage",
165
+ // forms
166
+ list_forms: "forms:read",
167
+ get_form: "forms:read",
168
+ list_form_submissions: "forms:read",
169
+ update_form_submission_status: "forms:write",
170
+ message_form_submission: "forms:write",
171
+ // CMS
172
+ list_posts: "cms:read",
173
+ get_post: "cms:read",
174
+ create_post: "cms:write",
175
+ update_post: "cms:write",
176
+ delete_post: "cms:write",
177
+ list_custom_pages: "cms:read",
178
+ get_custom_page: "cms:read",
179
+ // support tickets
180
+ list_dev_tickets: "dev_tickets:read",
181
+ get_dev_ticket: "dev_tickets:read",
182
+ create_dev_ticket: "dev_tickets:write",
183
+ reply_to_dev_ticket: "dev_tickets:write",
184
+ // misc
185
+ list_my_addresses: "profile:read",
186
+ add_address: "profile:write",
187
+ create_survey: "surveys:manage",
188
+ delete_survey: "surveys:manage",
189
+ list_survey_answers: "surveys:read",
190
+ answer_survey: "surveys:write",
191
+ create_announcement: "announcements:manage",
192
+ delete_announcement: "announcements:manage",
193
+ list_transactions: "billing:read",
194
+ list_payment_orders: "billing:read",
195
+ // analytical SQL over the company's reporting views: the API re-checks
196
+ // company administration on every call, so it is a manage-level surface
197
+ list_company_sql_schema: "company:manage",
198
+ run_company_sql: "company:manage"
199
+ };
200
+ /**
201
+ * Asks the API what this credential may do.
202
+ *
203
+ * Returns null when the answer cannot be had — an older API without the
204
+ * endpoint, a network failure, a token too narrow to ask. A null answer means
205
+ * "register everything", so a server pointed at an older deployment behaves
206
+ * exactly as it did before conditional loading existed.
207
+ */
208
+ export async function fetchCapabilities(client, companyId) {
209
+ try {
210
+ const response = await client.get("users/capabilities", {
211
+ company_id: companyId
212
+ });
213
+ const data = response.data;
214
+ if (!data || typeof data !== "object" || !data.capabilities) {
215
+ return null;
216
+ }
217
+ // no company resolved: the user belongs to none, or works across several
218
+ // and picks one per call. Either way the company-scoped answers describe
219
+ // nothing, so register everything rather than hide the whole server.
220
+ if (!data.company_id) {
221
+ console.error("careerflow-mcp: no company resolved for this token, so tools are not narrowed by role. " +
222
+ "Set CAREERFLOW_COMPANY_ID to load only the tools that company's role allows.");
223
+ return null;
224
+ }
225
+ return data;
226
+ }
227
+ catch (error) {
228
+ console.error(`careerflow-mcp: could not read capabilities (${error.message}); registering all tools.`);
229
+ return null;
230
+ }
231
+ }
232
+ /**
233
+ * Whether a capability map satisfies one "<module>:<verb>" requirement. An
234
+ * unknown module denies: the API answers with the full module list, so a module
235
+ * missing from it is one this deployment does not have.
236
+ */
237
+ export function allows(capabilities, requirement) {
238
+ const [module, verb] = requirement.split(":");
239
+ const capability = capabilities[module];
240
+ if (!capability) {
241
+ return false;
242
+ }
243
+ if (verb === "manage")
244
+ return capability.manage;
245
+ if (verb === "write")
246
+ return capability.write;
247
+ return capability.read || capability.write;
248
+ }
249
+ /**
250
+ * Read-only tools that `run_company_sql` makes redundant.
251
+ *
252
+ * A user who can run company SQL — the owner, a full-access role, CareerFlow
253
+ * staff — can read any of this out of the `v_ai_*` views in one query, with
254
+ * filters, joins and aggregates no fixed tool offers. Keeping both costs them
255
+ * context for a weaker version of what they already have, so for those users
256
+ * these drop out and the SQL tools stand in their place.
257
+ *
258
+ * Three kinds of read tool deliberately stay, SQL or no SQL:
259
+ *
260
+ * - resolvers a registered write tool depends on — `list_projects` and
261
+ * `list_boards` before a task write, `crm_list_pipelines` /
262
+ * `crm_list_stages` before a deal write, `list_labels`, `list_roles`,
263
+ * `list_forms`, `list_form_submissions`, `list_career_requests`,
264
+ * `list_food_schedules`, `crm_search_*`, `find_user`, `list_surveys`,
265
+ * `list_posts`
266
+ * - anything the views do not cover: payroll and performance rows (only
267
+ * their groups are exposed), the whole benefit fund, dev tickets, billing,
268
+ * addresses, CRM settings
269
+ * - chat, which is a live conversation rather than a report
270
+ */
271
+ export const SQL_REDUNDANT_TOOLS = new Set([
272
+ // workspace
273
+ "list_companies",
274
+ "list_project_members",
275
+ "search_users",
276
+ // tasks & kanban
277
+ "list_my_tasks",
278
+ "get_task",
279
+ "list_task_comments",
280
+ "list_recurring_tasks",
281
+ "list_kanban_activity",
282
+ "project_stats",
283
+ "list_task_time",
284
+ // workplace
285
+ "list_announcements",
286
+ "list_my_attendance",
287
+ "list_survey_answers",
288
+ // company & users
289
+ "get_user",
290
+ "get_company",
291
+ "get_organization_chart",
292
+ "list_organization_units",
293
+ // CRM detail and dashboards
294
+ "crm_get_contact",
295
+ "crm_contact_timeline",
296
+ "crm_get_deal",
297
+ "crm_deal_stage_summary",
298
+ "crm_list_deal_line_items",
299
+ "crm_dashboard_summary",
300
+ "crm_dashboard_pipeline",
301
+ // HR
302
+ "list_disciplinary_notes",
303
+ "list_administrative_notes",
304
+ "get_administrative_note",
305
+ "list_careers",
306
+ "get_onboarding_checklist",
307
+ "list_my_food_reservations",
308
+ // forms & content
309
+ "get_form",
310
+ "get_post",
311
+ "list_custom_pages",
312
+ "get_custom_page"
313
+ ]);
314
+ /**
315
+ * Wraps an McpServer so `registerTool` drops the tools the user cannot reach.
316
+ *
317
+ * The wrapper is passed to the existing `register*Tools` functions in place of
318
+ * the server, so no tool module needs to know that gating happens at all.
319
+ *
320
+ * `sqlAvailable` says the company SQL tools were actually registered for this
321
+ * user, which is what makes the read-only tools above redundant — it is false
322
+ * when the user cannot run SQL, and false again when the `company-sql` group
323
+ * was filtered out, so the reads are never dropped in favor of tools that are
324
+ * not there.
325
+ */
326
+ export function gateServer(server, capabilities, report, sqlAvailable = false) {
327
+ if (!capabilities) {
328
+ return server;
329
+ }
330
+ return new Proxy(server, {
331
+ get(target, property, receiver) {
332
+ if (property !== "registerTool") {
333
+ return Reflect.get(target, property, receiver);
334
+ }
335
+ return (name, ...rest) => {
336
+ const requirement = TOOL_REQUIREMENTS[name];
337
+ if (requirement && !allows(capabilities, requirement)) {
338
+ report.skipped.push(name);
339
+ return undefined;
340
+ }
341
+ if (sqlAvailable && SQL_REDUNDANT_TOOLS.has(name)) {
342
+ report.skippedForSql.push(name);
343
+ return undefined;
344
+ }
345
+ report.registered.push(name);
346
+ return target.registerTool.call(target, name, ...rest);
347
+ };
348
+ }
349
+ });
350
+ }
351
+ //# sourceMappingURL=capabilities.js.map
@@ -0,0 +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/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,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
@@ -4,6 +4,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
  import { loadConfig } from "./config.js";
6
6
  import { CareerFlowClient } from "./client.js";
7
+ import { allows, fetchCapabilities, gateServer } from "./capabilities.js";
7
8
  import { registerTaskTools } from "./tools/tasks.js";
8
9
  import { registerWorkspaceTools } from "./tools/workspace.js";
9
10
  import { registerTimeTools } from "./tools/time.js";
@@ -108,6 +109,10 @@ Environment:
108
109
  CAREERFLOW_GROUPS Optional. Comma-separated tool groups to register
109
110
  (${toolGroups.map((g) => g.name).join(", ")})
110
111
  CAREERFLOW_EXCLUDE_GROUPS Optional. Comma-separated groups to leave out
112
+ CAREERFLOW_ALL_TOOLS Optional. Set to 1 to register every tool even when
113
+ the user's role or token cannot reach it
114
+ CAREERFLOW_KEEP_READ_TOOLS Optional. Set to 1 to keep the read-only tools that
115
+ run_company_sql would otherwise replace
111
116
 
112
117
  Docs: https://www.npmjs.com/package/@codegame.dev/careerflow-mcp`;
113
118
  /** Parses CAREERFLOW_GROUPS / CAREERFLOW_EXCLUDE_GROUPS into a group allowlist, or dies naming the valid groups. */
@@ -144,6 +149,28 @@ async function serve() {
144
149
  const config = loadConfig();
145
150
  const client = new CareerFlowClient(config);
146
151
  const groups = selectGroups(process.env);
152
+ // what this user's role and token can actually reach. null when the answer is
153
+ // unavailable (older API, unreachable host, opted out), which registers
154
+ // everything and leaves enforcement to the API, as before.
155
+ const skipCapabilities = ["1", "true", "yes"].includes((process.env.CAREERFLOW_ALL_TOOLS ?? "").trim().toLowerCase());
156
+ const capabilities = skipCapabilities ? null : await fetchCapabilities(client, config.companyId);
157
+ // a user who can run company SQL reads anything out of the v_ai_* views, so
158
+ // the fixed read-only tools that duplicate them are dropped in their favor —
159
+ // but only when those SQL tools are really being registered, never when the
160
+ // company-sql group was filtered out or the user cannot run SQL at all
161
+ const keepReadTools = ["1", "true", "yes"].includes((process.env.CAREERFLOW_KEEP_READ_TOOLS ?? "").trim().toLowerCase());
162
+ const sqlAvailable = !keepReadTools &&
163
+ groups.some((group) => group.name === "company-sql") &&
164
+ Boolean(capabilities && allows(capabilities.capabilities, "company:manage"));
165
+ // only told to the model when it is true, so a user without the SQL tools is
166
+ // never pointed at one they do not have
167
+ const sqlGuidance = sqlAvailable
168
+ ? "\n- run_company_sql is how you answer questions about the company's data — counts, " +
169
+ "breakdowns, histories, anything spanning more than one record. The narrow read-only " +
170
+ "tools that duplicate it are deliberately not registered for you; call " +
171
+ "list_company_sql_schema first, then query. The list_/search_ tools that remain are " +
172
+ "for resolving the ids a write needs."
173
+ : "";
147
174
  const server = new McpServer({
148
175
  name: "careerflow",
149
176
  version
@@ -173,16 +200,25 @@ async function serve() {
173
200
  "pay_benefit_fund_loan_installment, and respond_to_lottery_win touch real money. Confirm " +
174
201
  "details with the user before calling any of these.\n" +
175
202
  "- A 403 means the token lacks a scope; tell the user which scope to add in " +
176
- "Settings > Access Tokens rather than retrying."
203
+ "Settings > Access Tokens rather than retrying." +
204
+ sqlGuidance
177
205
  });
206
+ const report = { registered: [], skipped: [], skippedForSql: [] };
207
+ const gated = gateServer(server, capabilities?.capabilities ?? null, report, sqlAvailable);
178
208
  for (const group of groups) {
179
- group.register(server, client);
209
+ group.register(gated, client);
180
210
  }
181
211
  const transport = new StdioServerTransport();
182
212
  await server.connect(transport);
183
213
  // stdout carries the MCP protocol stream, so anything human-facing must go to
184
214
  // stderr or it corrupts the transport
185
- console.error(`careerflow-mcp connected (api: ${config.baseUrl}, groups: ${groups.map((g) => g.name).join(", ")})`);
215
+ const reach = capabilities
216
+ ? `, tools: ${report.registered.length} registered / ${report.skipped.length} hidden by ${capabilities.auth === "token" ? "role + token scopes" : "role"}`
217
+ : "";
218
+ const sqlNote = report.skippedForSql.length
219
+ ? `, ${report.skippedForSql.length} read-only tools replaced by run_company_sql`
220
+ : "";
221
+ console.error(`careerflow-mcp connected (api: ${config.baseUrl}, groups: ${groups.map((g) => g.name).join(", ")}${reach}${sqlNote})`);
186
222
  }
187
223
  const [, , command] = process.argv;
188
224
  if (command === "--help" || command === "-h") {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,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AAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SACvD,KAAK,CAAC,CAAC,KAAY,EAAE,EAAE;QACvB,OAAO,CAAC,KAAK,CAAC,+BAA+B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;QAC7D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChB,CAAC,CAAC,CAAA;AACJ,CAAC;KAAM,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;IACjC,MAAM,CAAC,YAAY,CAAC;SAClB,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SACzD,KAAK,CAAC,CAAC,KAAY,EAAE,EAAE;QACvB,OAAO,CAAC,KAAK,CAAC,iCAAiC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;QAC/D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChB,CAAC,CAAC,CAAA;AACJ,CAAC;KAAM,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;IAClC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACvB,OAAO,CAAC,KAAK,CAAC,mCAAoC,KAAe,CAAC,OAAO,EAAE,CAAC,CAAA;QAC5E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChB,CAAC,CAAC,CAAA;AACH,CAAC;KAAM,CAAC;IACP,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,OAAO,KAAK,EAAE,CAAC,CAAA;IACxD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codegame.dev/careerflow-mcp",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "MCP server exposing CareerFlow tasks, CRM, HR, and workplace tools to AI assistants",
5
5
  "type": "module",
6
6
  "license": "MIT",