@teamnetwork-nz/teamlink-mcp-server 0.6.0 → 0.6.2

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/dist/env.js ADDED
@@ -0,0 +1,7 @@
1
+ export function parsePositiveInt(name, raw, fallback, maximum) {
2
+ const value = raw === undefined || raw === '' ? fallback : Number(raw);
3
+ if (!Number.isSafeInteger(value) || value < 1 || value > maximum) {
4
+ throw new Error(`${name} must be a positive integer no greater than ${maximum}`);
5
+ }
6
+ return value;
7
+ }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import 'dotenv/config';
2
+ import dotenv from 'dotenv';
3
3
  import { readFileSync } from 'node:fs';
4
4
  import { fileURLToPath } from 'node:url';
5
5
  import { dirname, join } from 'node:path';
@@ -8,6 +8,8 @@ import { z } from 'zod';
8
8
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
9
9
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
10
10
  import { createHttpServer } from './http-server.js';
11
+ import { parsePositiveInt } from './env.js';
12
+ dotenv.config({ quiet: true });
11
13
  const __dirname = dirname(fileURLToPath(import.meta.url));
12
14
  function pkgVersion() {
13
15
  try {
@@ -26,14 +28,24 @@ function pkgVersion() {
26
28
  * - TEAMLINK_API_BASE (default http://localhost:3100)
27
29
  * - TEAMLINK_API_KEY the staff-allocated CSCApiKey used for all calls
28
30
  */
29
- const API_BASE = (process.env.TEAMLINK_API_BASE ?? 'http://localhost:3100').replace(/\/$/, '');
30
- const API_KEY = process.env.TEAMLINK_API_KEY ?? '';
31
+ export const TeamlinkConfigSchema = z.object({
32
+ apiBase: z.string().url(),
33
+ apiKey: z.string().min(1, 'TEAMLINK_API_KEY is required'),
34
+ readWrite: z.boolean(),
35
+ }).strict();
31
36
  /**
32
37
  * Write-tool gate. Defaults to false (non-destructive/read-only) so this server
33
38
  * is safe to point at production unless explicitly opted in. Accepts common
34
- * truthy strings; anything else (including unset) is treated as false.
39
+ * only the case-insensitive value "true" enables writes.
35
40
  */
36
- const READWRITE = /^(1|true|yes|on)$/i.test(process.env.TEAMLINK_READWRITE ?? '');
41
+ const teamlinkConfig = TeamlinkConfigSchema.parse({
42
+ apiBase: (process.env.TEAMLINK_API_BASE ?? 'http://localhost:3100').replace(/\/$/, ''),
43
+ apiKey: process.env.TEAMLINK_API_KEY ?? '',
44
+ readWrite: (process.env.TEAMLINK_READWRITE ?? '').toLowerCase() === 'true',
45
+ });
46
+ const API_BASE = teamlinkConfig.apiBase;
47
+ const API_KEY = teamlinkConfig.apiKey;
48
+ const READWRITE = teamlinkConfig.readWrite;
37
49
  const http = axios.create({
38
50
  baseURL: API_BASE,
39
51
  timeout: 20_000,
@@ -83,6 +95,8 @@ async function get(path, params) {
83
95
  }
84
96
  }
85
97
  async function post(path, body) {
98
+ if (!READWRITE)
99
+ return usageError('Write operations are disabled. Set TEAMLINK_READWRITE=true to enable them.');
86
100
  try {
87
101
  const r = await http.post(path, body);
88
102
  return ok(r.data);
@@ -92,6 +106,8 @@ async function post(path, body) {
92
106
  }
93
107
  }
94
108
  async function put(path, body) {
109
+ if (!READWRITE)
110
+ return usageError('Write operations are disabled. Set TEAMLINK_READWRITE=true to enable them.');
95
111
  try {
96
112
  const r = await http.put(path, body);
97
113
  return ok(r.data);
@@ -111,14 +127,14 @@ function strictTool(name, description, inputSchema, callback) {
111
127
  }
112
128
  const allowedQueryParams = {
113
129
  '/accounts/search': new Set([
114
- 'mode', 'q', 'csaId', 'accountId', 'alphaId', 'name', 'address', 'phone', 'website',
130
+ 'mode', 'q', 'accountId', 'alphaId', 'name', 'address', 'phone', 'website',
115
131
  'exactWebsite', 'isActive', 'isCustomer', 'isProspect', 'isSupplier', 'isBranch',
116
132
  'branchId', 'teamId', 'page', 'pageSize',
117
133
  ]),
118
134
  '/accounts': new Set(['search', 'isActive', 'isCustomer', 'isProspect', 'isSupplier', 'isBranch', 'branchId', 'teamId', 'page', 'pageSize']),
119
135
  '/contacts/search': new Set([
120
136
  'mode', 'q', 'cscId', 'contactId', 'firstName', 'lastName', 'fullName', 'shortName',
121
- 'csaId', 'accountId', 'email', 'mobile', 'businessPhone', 'isActive', 'role', 'page', 'pageSize',
137
+ 'accountId', 'email', 'mobile', 'businessPhone', 'isActive', 'role', 'page', 'pageSize',
122
138
  ]),
123
139
  '/tasks/time-entries/search': new Set(['taskId', 'accountId', 'personId', 'type', 'q', 'dateFrom', 'dateTo', 'page', 'pageSize', 'includeCrm']),
124
140
  '/tasks/search': new Set(['q', 'accountId', 'loggedForUserId', 'assignedToUserId', 'enteredByUserId', 'callType', 'priority', 'status', 'dateFrom', 'dateTo', 'page', 'pageSize']),
@@ -130,11 +146,10 @@ const allowedQueryParams = {
130
146
  // --- Identity ---
131
147
  strictTool('teamlink_whoami', 'Return the authenticated TEAMlink user context for the configured API key, including `roleClass` (CSCClass) and `homeAccountId` (CSAID — the identity key scoping staff vs customer visibility).', {}, async () => get('/me'));
132
148
  // --- CRM: accounts ---
133
- strictTool('crm_search_accounts', 'Search customer accounts. `csaId` is canonical for CSAccount.CSAID; `accountId` is accepted as a compatibility alias. Default mode is standard: exact case-insensitive matches. Fuzzy mode performs partial text/phone matching and name DIFFERENCE() matching. `isActive` defaults true unless explicitly set.', {
149
+ strictTool('crm_search_accounts', 'Search customer accounts. `accountId` is the canonical public name for the account identity stored in SQL as CSAccount.CSAID. Default mode is standard: exact case-insensitive matches. Fuzzy mode performs partial text/phone matching and name DIFFERENCE() matching. `isActive` defaults true unless explicitly set.', {
134
150
  mode: z.enum(['standard', 'fuzzy']).optional().describe('Search mode. standard=exact case-insensitive matching; fuzzy=partial matching plus DIFFERENCE() for names. Defaults to standard.'),
135
- q: z.string().optional().describe('General search value matched against csaId, alphaId, name, address, phone, and website.'),
136
- csaId: z.number().optional().describe('Canonical account primary key (CSAccount.CSAID).'),
137
- accountId: z.number().optional().describe('Compatibility alias for csaId. Prefer csaId.'),
151
+ q: z.string().optional().describe('General search value matched against accountId, alphaId, name, address, phone, and website.'),
152
+ accountId: z.number().optional().describe('Canonical public account identifier. Maps to CSAccount.CSAID in SQL.'),
138
153
  alphaId: z.string().optional(),
139
154
  name: z.string().optional(),
140
155
  address: z.string().optional(),
@@ -160,7 +175,7 @@ strictTool('crm_list_accounts', 'Deprecated compatibility wrapper for listing/fi
160
175
  // and everything linked to it (contacts, orders, tasks, ...) — see lookup_selectors
161
176
  // and crm_search_accounts for how to resolve one. Response `isActive` = CSAActive:
162
177
  // only active accounts are eligible for transactional activity (orders/tasks).
163
- strictTool('crm_get_account', 'Get one account by id (CSAID). Response `isActive` (CSAActive) gates transactional eligibility for orders/tasks. Lookup-backed fields include industry/source/salesStatus {code,label}, team {teamId,name}, and accountManager/preferredEngineer/backupEngineer/bizDevManager {userId,name}.', { accountId: z.number() }, async ({ accountId }) => get(`/accounts/${accountId}`));
178
+ strictTool('crm_get_account', 'Get one account by `accountId` (stored as CSAccount.CSAID in SQL). Response `isActive` (CSAActive) gates transactional eligibility for orders/tasks. Lookup-backed fields include industry/source/salesStatus {code,label}, team {teamId,name}, and accountManager/preferredEngineer/backupEngineer/bizDevManager {userId,name}.', { accountId: z.number().describe('Canonical public account identifier. Maps to CSAccount.CSAID in SQL.') }, async ({ accountId }) => get(`/accounts/${accountId}`));
164
179
  strictTool('crm_list_account_contacts', 'List contacts linked to an account. Defaults to active-only (CSPCA_Active); pass includeInactive=true to also return deactivated contacts for historical/reporting purposes — inactive does not mean deleted.', { accountId: z.number(), includeInactive: z.boolean().optional() }, async ({ accountId, includeInactive }) => get(`/accounts/${accountId}/contacts`, { includeInactive }));
165
180
  if (READWRITE) {
166
181
  strictTool('crm_create_account', 'Create an account. Returns duplicate-candidate warnings unless createAnyway=true.', {
@@ -176,7 +191,7 @@ if (READWRITE) {
176
191
  // TYPE) — typeFlags.isAdminContact means a client-side admin/accounts contact,
177
192
  // NOT the application admin role (role="A").
178
193
  const roleDescription = 'CSCClass web-app role: A=Administrator, C=Customer, E=Engineer, M=Business Manager, P=Partner, S=Sales, T=Account Manager.';
179
- strictTool('crm_search_contacts', 'Search contacts. `cscId` is canonical for CSContact.CSCID; `contactId` is accepted as a compatibility alias. `csaId` is canonical for account linkage; `accountId` is accepted as a compatibility alias. Default mode is standard: exact case-insensitive matches. Fuzzy mode performs partial matching.', {
194
+ strictTool('crm_search_contacts', 'Search contacts. `cscId` is canonical for CSContact.CSCID; `contactId` is accepted as a compatibility alias. `accountId` is the canonical public name for account linkage and maps to CSAccount.CSAID / CSPivotContactAccount.CSPCA_CSAID in SQL. Default mode is standard: exact case-insensitive matches. Fuzzy mode performs partial matching.', {
180
195
  mode: z.enum(['standard', 'fuzzy']).optional().describe('Search mode. standard=exact case-insensitive matching; fuzzy=partial matching. Defaults to standard.'),
181
196
  q: z.string().optional().describe('General search value matched against cscId/contactId, names, email, mobile, and business phone.'),
182
197
  cscId: z.number().optional().describe('Canonical contact primary key (CSContact.CSCID).'),
@@ -185,8 +200,7 @@ strictTool('crm_search_contacts', 'Search contacts. `cscId` is canonical for CSC
185
200
  lastName: z.string().optional(),
186
201
  fullName: z.string().optional(),
187
202
  shortName: z.string().optional(),
188
- csaId: z.number().optional().describe('Canonical linked account primary key (CSAccount.CSAID / CSPivotContactAccount.CSPCA_CSAID).'),
189
- accountId: z.number().optional().describe('Compatibility alias for csaId. Prefer csaId.'),
203
+ accountId: z.number().optional().describe('Canonical public linked-account identifier. Maps to CSAccount.CSAID / CSPivotContactAccount.CSPCA_CSAID in SQL.'),
190
204
  email: z.string().optional(),
191
205
  mobile: z.string().optional().describe('Mobile phone search; punctuation/spaces are ignored.'),
192
206
  businessPhone: z.string().optional().describe('Business/DDI phone search; punctuation/spaces are ignored.'),
@@ -313,27 +327,29 @@ strictTool('product_search', 'Search the read-only product catalog. `q` splits o
313
327
  page: z.number().optional(), pageSize: z.number().optional(),
314
328
  }, async (args) => get('/orders/products/search', args));
315
329
  function createConfiguredServer() {
316
- const server = new McpServer({ name: 'teamlink-mcp', version: pkgVersion() });
330
+ const server = new McpServer({ name: '@teamnetwork-nz/teamlink-mcp-server', version: pkgVersion() }, {
331
+ instructions: 'TEAMlink business operations MCP server supporting stdio and HTTP. Read-only by default; mutation tools are available only when TEAMLINK_READWRITE=true. Always use `accountId` for the public account/customer identifier; it maps to CSAID and *_CSAID columns in SQL. Use the most specific search filters available and treat customer, order, invoice, and credential data as sensitive.',
332
+ });
317
333
  for (const register of registrations)
318
334
  register(server);
319
335
  return server;
320
336
  }
321
337
  async function main() {
322
338
  if (!API_KEY) {
323
- console.error('[teamlink-mcp] WARNING: TEAMLINK_API_KEY is not set; all tool calls will fail until it is configured.');
339
+ process.stderr.write('[teamlink-mcp] WARNING: TEAMLINK_API_KEY is not set; all tool calls will fail until it is configured.\n');
324
340
  }
325
- console.error(`[teamlink-mcp] mode: ${READWRITE ? 'READ-WRITE (write tools enabled)' : 'read-only (set TEAMLINK_READWRITE=true to enable write tools)'}`);
341
+ process.stderr.write(`[teamlink-mcp] mode: ${READWRITE ? 'READ-WRITE (write tools enabled)' : 'read-only (set TEAMLINK_READWRITE=true to enable write tools)'}\n`);
326
342
  if ((process.env.TEAMLINK_TRANSPORT ?? 'stdio') === 'http') {
327
343
  const host = process.env.TEAMLINK_HTTP_HOST ?? '127.0.0.1';
328
- const port = Number.parseInt(process.env.TEAMLINK_HTTP_PORT ?? '3000', 10);
329
- createHttpServer(createConfiguredServer, { host, port, serverName: '@teamnetwork-nz/teamlink-mcp-server', bearerToken: process.env.TEAMLINK_HTTP_BEARER_TOKEN, allowedHosts: process.env.TEAMLINK_HTTP_ALLOWED_HOSTS?.split(',').map(v => v.trim()).filter(Boolean), allowedOrigins: process.env.TEAMLINK_HTTP_ALLOWED_ORIGINS?.split(',').map(v => v.trim()).filter(Boolean) }).listen(port, host, () => console.error(`[teamlink-mcp] connected (http ${host}:${port}/mcp), proxying ${API_BASE}`));
344
+ const port = parsePositiveInt('TEAMLINK_HTTP_PORT', process.env.TEAMLINK_HTTP_PORT, 3000, 65535);
345
+ createHttpServer(createConfiguredServer, { host, port, serverName: '@teamnetwork-nz/teamlink-mcp-server', bearerToken: process.env.TEAMLINK_HTTP_BEARER_TOKEN, allowedHosts: process.env.TEAMLINK_HTTP_ALLOWED_HOSTS?.split(',').map(v => v.trim()).filter(Boolean), allowedOrigins: process.env.TEAMLINK_HTTP_ALLOWED_ORIGINS?.split(',').map(v => v.trim()).filter(Boolean), maxBodyBytes: parsePositiveInt('TEAMLINK_HTTP_MAX_BODY_BYTES', process.env.TEAMLINK_HTTP_MAX_BODY_BYTES, 1_048_576, 16_777_216) }).listen(port, host, () => process.stderr.write(`[teamlink-mcp] connected (http ${host}:${port}/mcp), proxying ${API_BASE}\n`));
330
346
  }
331
347
  else {
332
348
  await createConfiguredServer().connect(new StdioServerTransport());
333
- console.error(`[teamlink-mcp] connected (stdio), proxying ${API_BASE}`);
349
+ process.stderr.write(`[teamlink-mcp] connected (stdio), proxying ${API_BASE}\n`);
334
350
  }
335
351
  }
336
352
  main().catch((e) => {
337
- console.error('[teamlink-mcp] fatal', e);
353
+ process.stderr.write(`[teamlink-mcp] fatal: ${e instanceof Error ? e.stack ?? e.message : String(e)}\n`);
338
354
  process.exit(1);
339
355
  });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yBAAuB;AACvB,sDAA8B;AAC9B,gDAAwB;AACxB,kDAA0B;AAC1B,+BAAoC;AAEpC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;AACtB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC;AACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,uBAAuB,CAAC;AAE1E,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC;AAChB,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC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AE,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,GAAG,EAAE,OAAO,IAAI,GAAG,CAAC,CAAC;QAC3D,MAAM,aAAa,GAAG,IAAA,SAAM,GAAE,CAAC;QAC/B,cAAc,CAAC,qBAAqB,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,IAAI,SAAS,EAAE,CAAC,CAAC;QAC3F,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,wBAAwB,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,IAAI,IAAI,EAAE,CAAC,CAAC;IAC3F,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;AAEpF,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,gCAAgC,IAAI,oBAAoB,QAAQ,EAAE,CAAC,CAAC;AAClF,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,32 +1,34 @@
1
1
  {
2
2
  "name": "@teamnetwork-nz/teamlink-mcp-server",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "private": false,
5
- "description": "stdio MCP server exposing tools that proxy the TEAMlink REST API",
6
- "main": "build/index.js",
5
+ "description": "MCP server exposing TEAMlink REST API tools over stdio and Streamable HTTP",
6
+ "main": "dist/index.js",
7
7
  "type": "module",
8
8
  "bin": {
9
- "teamlink-mcp-server": "build/index.js"
9
+ "teamlink-mcp-server": "dist/index.js"
10
10
  },
11
11
  "files": [
12
- "build"
12
+ "dist"
13
13
  ],
14
14
  "scripts": {
15
15
  "build": "tsc",
16
16
  "test": "npm run build && node --test tests/*.test.mjs",
17
- "start": "node build/index.js"
17
+ "start": "node dist/index.js",
18
+ "dev": "tsc --watch",
19
+ "typecheck": "tsc --noEmit"
18
20
  },
19
21
  "dependencies": {
20
- "@modelcontextprotocol/sdk": "^1.25.1",
22
+ "@modelcontextprotocol/sdk": "^1.29.0",
21
23
  "axios": "^1.4.0",
22
24
  "dotenv": "^16.0.3",
23
- "zod": "^4.2.1"
25
+ "zod": "^3.25.0"
24
26
  },
25
27
  "devDependencies": {
26
28
  "@types/node": "^20.4.2",
27
29
  "typescript": "^5.9.3"
28
30
  },
29
31
  "engines": {
30
- "node": ">=14"
32
+ "node": ">=20"
31
33
  }
32
34
  }
File without changes