@helm-ai/mcp-server 0.30.2 → 1.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/dist/index.js CHANGED
@@ -51,14 +51,14 @@ const TOOL_MODULES = {
51
51
  helm__update_sequence_email: 'sequences', helm__delete_sequence_email: 'sequences', helm__reorder_sequence_emails: 'sequences',
52
52
  helm__set_sequence_status: 'sequences', helm__pause_sequence_enrollment: 'sequences',
53
53
  helm__resume_sequence_enrollment: 'sequences', helm__exit_sequence_enrollment: 'sequences',
54
- helm__get_accounts: 'contacts', helm__get_account: 'contacts', helm__add_account: 'contacts', helm__update_account: 'contacts',
54
+ helm__get_companies: 'contacts', helm__get_company: 'contacts', helm__add_company: 'contacts', helm__update_company: 'contacts',
55
55
  helm__get_contacts: 'contacts', helm__get_contact: 'contacts', helm__add_contact: 'contacts', helm__update_contact: 'contacts', helm__delete_contact: 'contacts',
56
56
  helm__get_deals: 'deals', helm__get_deal: 'deals', helm__add_deal: 'deals', helm__update_deal: 'deals', helm__delete_deal: 'deals',
57
57
  helm__get_pipelines: 'deals', helm__add_pipeline: 'deals', helm__update_pipeline: 'deals', helm__delete_pipeline: 'deals',
58
58
  helm__add_pipeline_stage: 'deals', helm__update_pipeline_stage: 'deals', helm__delete_pipeline_stage: 'deals', helm__reorder_pipeline_stages: 'deals',
59
59
  helm__attach_product_to_deal: 'deals',
60
- helm__list_account_products: 'contacts', helm__attach_product_to_account: 'contacts',
61
- helm__update_account_product: 'contacts', helm__detach_product_from_account: 'contacts',
60
+ helm__list_company_products: 'contacts', helm__attach_product_to_company: 'contacts',
61
+ helm__update_company_product: 'contacts', helm__detach_product_from_company: 'contacts',
62
62
  helm__get_invoices: 'invoices', helm__get_invoice: 'invoices', helm__create_invoice: 'invoices', helm__update_invoice: 'invoices',
63
63
  helm__get_payments: 'invoices', helm__record_payment: 'invoices',
64
64
  helm__list_subscriptions: 'invoices', helm__get_subscription: 'invoices',
@@ -127,7 +127,7 @@ const tools = [
127
127
  },
128
128
  {
129
129
  name: "helm__create_project",
130
- description: "Create a new project in Helm. Optionally link to an account/client by ID or name.",
130
+ description: "Create a new project in Helm. Optionally link to a company by ID or name.",
131
131
  inputSchema: {
132
132
  type: "object",
133
133
  properties: {
@@ -139,9 +139,9 @@ const tools = [
139
139
  type: "string",
140
140
  description: "Project description",
141
141
  },
142
- account_id: {
142
+ company_id: {
143
143
  type: "string",
144
- description: "Account/client ID (UUID) or name to link this project to",
144
+ description: "Company ID (UUID) or name to link this project to",
145
145
  },
146
146
  stage: {
147
147
  type: "string",
@@ -193,9 +193,9 @@ const tools = [
193
193
  type: "string",
194
194
  description: "User ID to assign as the primary assignee",
195
195
  },
196
- account_id: {
196
+ company_id: {
197
197
  type: "string",
198
- description: "Account/client ID to link the task to",
198
+ description: "Company ID to link the task to",
199
199
  },
200
200
  time_estimate_minutes: {
201
201
  type: "number",
@@ -1119,7 +1119,7 @@ const tools = [
1119
1119
  },
1120
1120
  {
1121
1121
  name: "helm__get_hour_balance",
1122
- description: "How many prepaid or monthly hours a client has left on their hour plan: available, used, left and over this period, what expires or rolls over at reset, and each block of hours. Use this instead of adding up time entries. Pass project_id, account_id, or nothing for every live plan. Hours only, no amounts.",
1122
+ description: "How many prepaid or monthly hours a client has left on their hour plan: available, used, left and over this period, what expires or rolls over at reset, and each block of hours. Use this instead of adding up time entries. Pass project_id, company_id, or nothing for every live plan. Hours only, no amounts.",
1123
1123
  inputSchema: {
1124
1124
  type: "object",
1125
1125
  properties: {
@@ -1127,7 +1127,7 @@ const tools = [
1127
1127
  type: "string",
1128
1128
  description: "The plan this project draws from",
1129
1129
  },
1130
- account_id: {
1130
+ company_id: {
1131
1131
  type: "string",
1132
1132
  description: "The client's plans (a client can have more than one)",
1133
1133
  },
@@ -1258,7 +1258,7 @@ const tools = [
1258
1258
  "inputSchema": {
1259
1259
  "type": "object",
1260
1260
  "properties": {
1261
- "account_id": {
1261
+ "company_id": {
1262
1262
  "type": "string",
1263
1263
  "description": "The client"
1264
1264
  },
@@ -1370,7 +1370,7 @@ const tools = [
1370
1370
  }
1371
1371
  },
1372
1372
  "required": [
1373
- "account_id",
1373
+ "company_id",
1374
1374
  "name",
1375
1375
  "type",
1376
1376
  "project_ids"
@@ -1489,9 +1489,9 @@ const tools = [
1489
1489
  inputSchema: {
1490
1490
  type: "object",
1491
1491
  properties: {
1492
- account_id: {
1492
+ company_id: {
1493
1493
  type: "string",
1494
- description: "Optional ID of the account/client this estimate is for",
1494
+ description: "Optional ID of the company this estimate is for",
1495
1495
  },
1496
1496
  contact_id: {
1497
1497
  type: "string",
@@ -1554,9 +1554,9 @@ const tools = [
1554
1554
  type: "string",
1555
1555
  description: "Filter by estimate status",
1556
1556
  },
1557
- account_id: {
1557
+ company_id: {
1558
1558
  type: "string",
1559
- description: "Filter by account ID",
1559
+ description: "Filter by company ID",
1560
1560
  },
1561
1561
  limit: {
1562
1562
  type: "number",
@@ -1587,8 +1587,8 @@ const tools = [
1587
1587
  title: { type: "string", description: "Updated title" },
1588
1588
  description: { type: "string", description: "Updated description" },
1589
1589
  status: { type: "string", enum: ["draft", "sent", "accepted", "declined", "archived", "cancelled"], description: "Updated status" },
1590
- account_id: { type: "string", description: "Updated account/client" },
1591
- contact_id: { type: "string", description: "Updated contact at the account" },
1590
+ company_id: { type: "string", description: "Updated company" },
1591
+ contact_id: { type: "string", description: "Updated contact at the company" },
1592
1592
  tax_rate: { type: "number", description: "Updated tax rate percentage" },
1593
1593
  issue_date: { type: "string", description: "Updated issue date" },
1594
1594
  expiry_date: { type: "string", description: "Updated expiry date" },
@@ -1816,25 +1816,25 @@ const tools = [
1816
1816
  required: ["price_id"],
1817
1817
  },
1818
1818
  },
1819
- // Account-product attribution tools
1819
+ // Company-product attribution tools
1820
1820
  {
1821
- name: "helm__list_account_products",
1822
- description: "Customer-360 view: what products an account uses / has bought / has in pipeline. Unifies four sources (direct attribution, paid invoices, won deals, open deals) with source badges per row.",
1821
+ name: "helm__list_company_products",
1822
+ description: "Customer-360 view: what products a company uses / has bought / has in pipeline. Unifies four sources (direct attribution, paid invoices, won deals, open deals) with source badges per row.",
1823
1823
  inputSchema: {
1824
1824
  type: "object",
1825
1825
  properties: {
1826
- account_id: { type: "string", description: "UUID of the account." },
1826
+ company_id: { type: "string", description: "UUID of the company." },
1827
1827
  },
1828
- required: ["account_id"],
1828
+ required: ["company_id"],
1829
1829
  },
1830
1830
  },
1831
1831
  {
1832
- name: "helm__attach_product_to_account",
1833
- description: "Record that an account is a customer for a product, WITHOUT creating an invoice or payment. Use for migrating customers from other systems, informal arrangements, or relationships billed outside Helm.",
1832
+ name: "helm__attach_product_to_company",
1833
+ description: "Record that a company is a customer for a product, WITHOUT creating an invoice or payment. Use for migrating customers from other systems, informal arrangements, or relationships billed outside Helm.",
1834
1834
  inputSchema: {
1835
1835
  type: "object",
1836
1836
  properties: {
1837
- account_id: { type: "string", description: "UUID of the account." },
1837
+ company_id: { type: "string", description: "UUID of the company." },
1838
1838
  product_id: { type: "string", description: "UUID of the product." },
1839
1839
  product_price_id: { type: "string", description: "UUID of a specific price tier (from the product's `prices`). Omit for the default tier." },
1840
1840
  quantity: { type: "number", description: "Defaults to 1." },
@@ -1843,16 +1843,16 @@ const tools = [
1843
1843
  ended_at: { type: "string", description: "ISO date the relationship ended. Omit for active customers." },
1844
1844
  notes: { type: "string", description: "Optional context." },
1845
1845
  },
1846
- required: ["account_id", "product_id"],
1846
+ required: ["company_id", "product_id"],
1847
1847
  },
1848
1848
  },
1849
1849
  {
1850
- name: "helm__update_account_product",
1851
- description: "Update an account_products attribution row. Common: mark a relationship ended (set ended_at), change the price tier (upgrade/downgrade), adjust rate or quantity.",
1850
+ name: "helm__update_company_product",
1851
+ description: "Update a company-product attribution row. Common: mark a relationship ended (set ended_at), change the price tier (upgrade/downgrade), adjust rate or quantity.",
1852
1852
  inputSchema: {
1853
1853
  type: "object",
1854
1854
  properties: {
1855
- account_product_id: { type: "string", description: "UUID of the account_products row." },
1855
+ company_product_id: { type: "string", description: "UUID of the company-product row." },
1856
1856
  product_price_id: { type: "string", description: "Switch to a different price tier of the same product (e.g. upgrade). Rate follows the new tier unless you also pass rate." },
1857
1857
  quantity: { type: "number" },
1858
1858
  rate: { type: "number" },
@@ -1860,18 +1860,18 @@ const tools = [
1860
1860
  ended_at: { type: "string", description: "ISO date the relationship ended." },
1861
1861
  notes: { type: "string" },
1862
1862
  },
1863
- required: ["account_product_id"],
1863
+ required: ["company_product_id"],
1864
1864
  },
1865
1865
  },
1866
1866
  {
1867
- name: "helm__detach_product_from_account",
1868
- description: "Delete an account_products attribution row. Use only when it was a mistake — for relationships that ended naturally, prefer helm__update_account_product with ended_at.",
1867
+ name: "helm__detach_product_from_company",
1868
+ description: "Delete a company-product attribution row. Use only when it was a mistake — for relationships that ended naturally, prefer helm__update_company_product with ended_at.",
1869
1869
  inputSchema: {
1870
1870
  type: "object",
1871
1871
  properties: {
1872
- account_product_id: { type: "string", description: "UUID of the account_products row." },
1872
+ company_product_id: { type: "string", description: "UUID of the company-product row." },
1873
1873
  },
1874
- required: ["account_product_id"],
1874
+ required: ["company_product_id"],
1875
1875
  },
1876
1876
  },
1877
1877
  // Forms tools
@@ -2026,34 +2026,34 @@ const tools = [
2026
2026
  required: ["step_id"],
2027
2027
  },
2028
2028
  },
2029
- // Account tools
2029
+ // Company tools
2030
2030
  {
2031
- name: "helm__get_accounts",
2032
- description: "Get accounts/clients from Helm with optional filters. To find a specific account by name or email, ALWAYS pass `query` — without it you only get the most-recently-created accounts and may miss the one you want.",
2031
+ name: "helm__get_companies",
2032
+ description: "Get companies from Helm with optional filters. To find a specific company by name or email, ALWAYS pass `query` — without it you only get the most-recently-created companies and may miss the one you want.",
2033
2033
  inputSchema: {
2034
2034
  type: "object",
2035
2035
  properties: {
2036
2036
  query: {
2037
2037
  type: "string",
2038
- description: "Search by account name or email. Case-insensitive partial match. Use this whenever looking for a specific account.",
2038
+ description: "Search by company name or email. Case-insensitive partial match. Use this whenever looking for a specific company.",
2039
2039
  },
2040
2040
  status: {
2041
2041
  type: "string",
2042
2042
  enum: ["active", "inactive", "paused"],
2043
- description: "Filter by account status",
2043
+ description: "Filter by company status",
2044
2044
  },
2045
2045
  health: {
2046
2046
  type: "string",
2047
2047
  enum: ["not_set", "critical", "at_risk", "good"],
2048
- description: "Filter by account health",
2048
+ description: "Filter by company health",
2049
2049
  },
2050
2050
  owner_id: {
2051
2051
  type: "string",
2052
- description: "Filter by account owner ID",
2052
+ description: "Filter by company owner ID",
2053
2053
  },
2054
2054
  limit: {
2055
2055
  type: "number",
2056
- description: "Maximum number of accounts to return (default: 50, max 1000 per page)",
2056
+ description: "Maximum number of companies to return (default: 50, max 1000 per page)",
2057
2057
  },
2058
2058
  offset: {
2059
2059
  type: "number",
@@ -2064,29 +2064,29 @@ const tools = [
2064
2064
  },
2065
2065
  },
2066
2066
  {
2067
- name: "helm__get_account",
2068
- description: "Get a specific account by ID",
2067
+ name: "helm__get_company",
2068
+ description: "Get a specific company by ID",
2069
2069
  inputSchema: {
2070
2070
  type: "object",
2071
2071
  properties: {
2072
- account_id: {
2072
+ company_id: {
2073
2073
  type: "string",
2074
- description: "The ID of the account to retrieve",
2074
+ description: "The ID of the company to retrieve",
2075
2075
  },
2076
2076
  include_contacts: {
2077
2077
  type: "boolean",
2078
- description: "Also return the account's contacts",
2078
+ description: "Also return the company's contacts",
2079
2079
  },
2080
2080
  include_projects: {
2081
2081
  type: "boolean",
2082
- description: "Also return the account's projects",
2082
+ description: "Also return the company's projects",
2083
2083
  },
2084
2084
  include_invoices: {
2085
2085
  type: "boolean",
2086
- description: "Also return the account's invoices",
2086
+ description: "Also return the company's invoices",
2087
2087
  },
2088
2088
  },
2089
- required: ["account_id"],
2089
+ required: ["company_id"],
2090
2090
  },
2091
2091
  },
2092
2092
  {
@@ -2097,7 +2097,7 @@ const tools = [
2097
2097
  properties: {
2098
2098
  entity_type: {
2099
2099
  type: "string",
2100
- enum: ["account", "contact", "deal", "project", "task", "invoice", "estimate", "document", "time_entry"],
2100
+ enum: ["company", "contact", "deal", "project", "task", "invoice", "estimate", "document", "time_entry"],
2101
2101
  description: "Type of record to attach the activity to",
2102
2102
  },
2103
2103
  entity_id: { type: "string", description: "UUID of the record" },
@@ -2112,14 +2112,14 @@ const tools = [
2112
2112
  },
2113
2113
  },
2114
2114
  {
2115
- name: "helm__add_account",
2116
- description: "Create a new account/client in Helm",
2115
+ name: "helm__add_company",
2116
+ description: "Create a new company in Helm",
2117
2117
  inputSchema: {
2118
2118
  type: "object",
2119
2119
  properties: {
2120
2120
  name: {
2121
2121
  type: "string",
2122
- description: "The name of the account (required)",
2122
+ description: "The name of the company (required)",
2123
2123
  },
2124
2124
  email: {
2125
2125
  type: "string",
@@ -2136,16 +2136,16 @@ const tools = [
2136
2136
  status: {
2137
2137
  type: "string",
2138
2138
  enum: ["active", "inactive", "paused"],
2139
- description: "Account status (default: active)",
2139
+ description: "Company status (default: active)",
2140
2140
  },
2141
2141
  health: {
2142
2142
  type: "string",
2143
2143
  enum: ["not_set", "critical", "at_risk", "good"],
2144
- description: "Account health indicator (default: not_set)",
2144
+ description: "Company health indicator (default: not_set)",
2145
2145
  },
2146
2146
  description: {
2147
2147
  type: "string",
2148
- description: "Description of the account",
2148
+ description: "Description of the company",
2149
2149
  },
2150
2150
  address: {
2151
2151
  type: "string",
@@ -2169,7 +2169,7 @@ const tools = [
2169
2169
  },
2170
2170
  notes: {
2171
2171
  type: "string",
2172
- description: "Internal notes about the account",
2172
+ description: "Internal notes about the company",
2173
2173
  },
2174
2174
  industry: {
2175
2175
  type: "string",
@@ -2182,7 +2182,7 @@ const tools = [
2182
2182
  priority: {
2183
2183
  type: "string",
2184
2184
  enum: ["low", "medium", "high", "urgent"],
2185
- description: "Account priority",
2185
+ description: "Company priority",
2186
2186
  },
2187
2187
  linkedin_url: {
2188
2188
  type: "string",
@@ -2216,25 +2216,25 @@ const tools = [
2216
2216
  },
2217
2217
  owner_id: {
2218
2218
  type: "string",
2219
- description: "ID of the account owner (user)",
2219
+ description: "ID of the company owner (user)",
2220
2220
  },
2221
2221
  },
2222
2222
  required: ["name"],
2223
2223
  },
2224
2224
  },
2225
2225
  {
2226
- name: "helm__update_account",
2227
- description: "Update an existing account/client",
2226
+ name: "helm__update_company",
2227
+ description: "Update an existing company",
2228
2228
  inputSchema: {
2229
2229
  type: "object",
2230
2230
  properties: {
2231
- account_id: {
2231
+ company_id: {
2232
2232
  type: "string",
2233
- description: "The ID of the account to update",
2233
+ description: "The ID of the company to update",
2234
2234
  },
2235
2235
  name: {
2236
2236
  type: "string",
2237
- description: "Updated account name",
2237
+ description: "Updated company name",
2238
2238
  },
2239
2239
  email: {
2240
2240
  type: "string",
@@ -2251,12 +2251,12 @@ const tools = [
2251
2251
  status: {
2252
2252
  type: "string",
2253
2253
  enum: ["active", "inactive", "paused"],
2254
- description: "Updated account status",
2254
+ description: "Updated company status",
2255
2255
  },
2256
2256
  health: {
2257
2257
  type: "string",
2258
2258
  enum: ["not_set", "critical", "at_risk", "good"],
2259
- description: "Updated account health",
2259
+ description: "Updated company health",
2260
2260
  },
2261
2261
  description: {
2262
2262
  type: "string",
@@ -2284,7 +2284,7 @@ const tools = [
2284
2284
  },
2285
2285
  notes: {
2286
2286
  type: "string",
2287
- description: "Updated notes about the account",
2287
+ description: "Updated notes about the company",
2288
2288
  },
2289
2289
  industry: {
2290
2290
  type: "string",
@@ -2297,7 +2297,7 @@ const tools = [
2297
2297
  priority: {
2298
2298
  type: "string",
2299
2299
  enum: ["low", "medium", "high", "urgent"],
2300
- description: "Updated Account priority",
2300
+ description: "Updated company priority",
2301
2301
  },
2302
2302
  linkedin_url: {
2303
2303
  type: "string",
@@ -2331,10 +2331,10 @@ const tools = [
2331
2331
  },
2332
2332
  owner_id: {
2333
2333
  type: "string",
2334
- description: "Updated account owner ID",
2334
+ description: "Updated company owner ID",
2335
2335
  },
2336
2336
  },
2337
- required: ["account_id"],
2337
+ required: ["company_id"],
2338
2338
  },
2339
2339
  },
2340
2340
  // Contact tools
@@ -2348,13 +2348,13 @@ const tools = [
2348
2348
  type: "string",
2349
2349
  description: "Search by name (first or last) or email. Case-insensitive partial match — e.g. \"@example.com\" finds every contact at that domain. Use this whenever looking for a specific person or email.",
2350
2350
  },
2351
- account_id: {
2351
+ company_id: {
2352
2352
  type: "string",
2353
- description: "Filter by associated account ID",
2353
+ description: "Filter by associated company ID",
2354
2354
  },
2355
2355
  contact_type: {
2356
2356
  type: "string",
2357
- enum: ["lead", "prospect", "customer", "partner", "vendor"],
2357
+ enum: ["lead", "customer", "partner", "vendor"],
2358
2358
  description: "Filter by contact type",
2359
2359
  },
2360
2360
  priority: {
@@ -2410,9 +2410,9 @@ const tools = [
2410
2410
  type: "string",
2411
2411
  description: "Phone number",
2412
2412
  },
2413
- account_id: {
2413
+ company_id: {
2414
2414
  type: "string",
2415
- description: "ID of the associated account",
2415
+ description: "ID of the associated company",
2416
2416
  },
2417
2417
  title: {
2418
2418
  type: "string",
@@ -2420,7 +2420,7 @@ const tools = [
2420
2420
  },
2421
2421
  contact_type: {
2422
2422
  type: "string",
2423
- enum: ["lead", "prospect", "customer", "partner", "vendor"],
2423
+ enum: ["lead", "customer", "partner", "vendor"],
2424
2424
  description: "Type of contact",
2425
2425
  },
2426
2426
  priority: {
@@ -2489,9 +2489,9 @@ const tools = [
2489
2489
  type: "string",
2490
2490
  description: "Updated phone number",
2491
2491
  },
2492
- account_id: {
2492
+ company_id: {
2493
2493
  type: "string",
2494
- description: "Updated associated account ID",
2494
+ description: "Updated associated company ID",
2495
2495
  },
2496
2496
  title: {
2497
2497
  type: "string",
@@ -2499,7 +2499,7 @@ const tools = [
2499
2499
  },
2500
2500
  contact_type: {
2501
2501
  type: "string",
2502
- enum: ["lead", "prospect", "customer", "partner", "vendor"],
2502
+ enum: ["lead", "customer", "partner", "vendor"],
2503
2503
  description: "Updated contact type",
2504
2504
  },
2505
2505
  priority: {
@@ -2572,9 +2572,9 @@ const tools = [
2572
2572
  enum: ["low", "medium", "high", "urgent"],
2573
2573
  description: "Filter by priority level",
2574
2574
  },
2575
- account_id: {
2575
+ company_id: {
2576
2576
  type: "string",
2577
- description: "Filter by account ID",
2577
+ description: "Filter by company ID",
2578
2578
  },
2579
2579
  pipeline_id: {
2580
2580
  type: "string",
@@ -2640,9 +2640,9 @@ const tools = [
2640
2640
  type: "number",
2641
2641
  description: "Win probability (0-100)",
2642
2642
  },
2643
- account_id: {
2643
+ company_id: {
2644
2644
  type: "string",
2645
- description: "Associated account ID",
2645
+ description: "Associated company ID",
2646
2646
  },
2647
2647
  contact_id: {
2648
2648
  type: "string",
@@ -2652,6 +2652,18 @@ const tools = [
2652
2652
  type: "string",
2653
2653
  description: "Expected close date (ISO 8601 format)",
2654
2654
  },
2655
+ next_step: {
2656
+ type: "string",
2657
+ description: "What the deal is waiting on: the next action, in a sentence",
2658
+ },
2659
+ next_step_date: {
2660
+ type: "string",
2661
+ description: "When the next step is due (YYYY-MM-DD)",
2662
+ },
2663
+ source: {
2664
+ type: "string",
2665
+ description: "Where the deal came from (e.g. \"Referral from Sam\", \"Inbound form\"). Omit to record MCP as the source.",
2666
+ },
2655
2667
  },
2656
2668
  required: ["title"],
2657
2669
  },
@@ -2695,9 +2707,9 @@ const tools = [
2695
2707
  type: "number",
2696
2708
  description: "Updated win probability (0-100)",
2697
2709
  },
2698
- account_id: {
2710
+ company_id: {
2699
2711
  type: "string",
2700
- description: "Updated associated account ID",
2712
+ description: "Updated associated company ID",
2701
2713
  },
2702
2714
  contact_id: {
2703
2715
  type: "string",
@@ -2707,6 +2719,22 @@ const tools = [
2707
2719
  type: "string",
2708
2720
  description: "Updated expected close date",
2709
2721
  },
2722
+ next_step: {
2723
+ type: "string",
2724
+ description: "What the deal is waiting on: the next action, in a sentence. Update it when you take or schedule a step.",
2725
+ },
2726
+ next_step_date: {
2727
+ type: "string",
2728
+ description: "When the next step is due (YYYY-MM-DD)",
2729
+ },
2730
+ source: {
2731
+ type: "string",
2732
+ description: "Where the deal came from",
2733
+ },
2734
+ lost_reason: {
2735
+ type: "string",
2736
+ description: "Why the deal was lost. Set when moving it to a lost stage.",
2737
+ },
2710
2738
  },
2711
2739
  required: ["deal_id"],
2712
2740
  },
@@ -2894,9 +2922,9 @@ const tools = [
2894
2922
  type: "string",
2895
2923
  description: "Filter by project ID",
2896
2924
  },
2897
- account_id: {
2925
+ company_id: {
2898
2926
  type: "string",
2899
- description: "Filter by account ID",
2927
+ description: "Filter by company ID",
2900
2928
  },
2901
2929
  limit: {
2902
2930
  type: "number",
@@ -2970,9 +2998,9 @@ const tools = [
2970
2998
  type: "string",
2971
2999
  description: "Link event to a project",
2972
3000
  },
2973
- account_id: {
3001
+ company_id: {
2974
3002
  type: "string",
2975
- description: "Link event to an account/client",
3003
+ description: "Link event to a company",
2976
3004
  },
2977
3005
  attendees: {
2978
3006
  type: "array",
@@ -3046,9 +3074,9 @@ const tools = [
3046
3074
  type: "string",
3047
3075
  description: "Updated project link",
3048
3076
  },
3049
- account_id: {
3077
+ company_id: {
3050
3078
  type: "string",
3051
- description: "Updated account link",
3079
+ description: "Updated company link",
3052
3080
  },
3053
3081
  attendees: {
3054
3082
  type: "array",
@@ -3094,9 +3122,9 @@ const tools = [
3094
3122
  enum: ["draft", "open", "partially_paid", "paid", "archived", "cancelled"],
3095
3123
  description: "Filter by invoice status",
3096
3124
  },
3097
- account_id: {
3125
+ company_id: {
3098
3126
  type: "string",
3099
- description: "Filter by account/client ID",
3127
+ description: "Filter by company ID",
3100
3128
  },
3101
3129
  deal_id: {
3102
3130
  type: "string",
@@ -3142,9 +3170,9 @@ const tools = [
3142
3170
  type: "string",
3143
3171
  description: "Deal this invoice bills against. Links the invoice, and any payment recorded against it, to the deal's collected revenue.",
3144
3172
  },
3145
- account_id: {
3173
+ company_id: {
3146
3174
  type: "string",
3147
- description: "Account/client ID",
3175
+ description: "Company ID",
3148
3176
  },
3149
3177
  line_items: {
3150
3178
  type: "array",
@@ -3211,9 +3239,9 @@ const tools = [
3211
3239
  enum: ["draft", "open", "partially_paid", "paid", "archived", "cancelled"],
3212
3240
  description: "Updated status",
3213
3241
  },
3214
- account_id: {
3242
+ company_id: {
3215
3243
  type: "string",
3216
- description: "Updated account/client",
3244
+ description: "Updated company",
3217
3245
  },
3218
3246
  deal_id: {
3219
3247
  type: "string",
@@ -3256,7 +3284,7 @@ const tools = [
3256
3284
  status: { type: "string", enum: ["active", "trialing", "past_due", "unpaid", "canceled", "incomplete", "incomplete_expired", "paused"], description: "Stripe status, verbatim." },
3257
3285
  active_only: { type: "boolean", description: "Only subscriptions that are live revenue (active, trialing, past_due)." },
3258
3286
  origin: { type: "string", enum: ["helm", "external"], description: "Filter by revenue source." },
3259
- account_id: { type: "string", description: "Only subscriptions for this client account." },
3287
+ company_id: { type: "string", description: "Only subscriptions for this client company." },
3260
3288
  contact_id: { type: "string", description: "Only subscriptions for this contact." },
3261
3289
  product_id: { type: "string", description: "Only subscriptions for this product." },
3262
3290
  limit: { type: "number", description: "Max rows to return (default 50)." },
@@ -3291,7 +3319,7 @@ const tools = [
3291
3319
  contact_id: { type: "string", description: "The person to bill. Required -- Stripe bills a person, not an account." },
3292
3320
  product_id: { type: "string", description: "A recurring product from the catalogue." },
3293
3321
  product_price_id: { type: "string", description: "Optional price tier on that product; omit to use its default price." },
3294
- account_id: { type: "string", description: "Optional account attribution; defaults to the contact's account." },
3322
+ company_id: { type: "string", description: "Optional company attribution; defaults to the contact's company." },
3295
3323
  quantity: { type: "number", description: "Seats or units (default 1)." },
3296
3324
  method: { type: "string", enum: ["auto", "saved_card", "checkout"], description: "'auto' (default) uses a saved card if there is one and falls back to a link. 'checkout' always returns a link. 'saved_card' fails rather than falling back." },
3297
3325
  trial_days: { type: "number", description: "Free trial length in days before the first charge." },
@@ -3349,7 +3377,7 @@ const tools = [
3349
3377
  properties: {
3350
3378
  status: { type: "string", enum: ["open", "expired", "completed", "canceled", "all"], description: "Default: open and expired." },
3351
3379
  contact_id: { type: "string", description: "Only links for this contact." },
3352
- account_id: { type: "string", description: "Only links for this client account." },
3380
+ company_id: { type: "string", description: "Only links for this client company." },
3353
3381
  limit: { type: "number", description: "Max rows to return (default 50)." },
3354
3382
  },
3355
3383
  required: [],
@@ -3376,7 +3404,7 @@ const tools = [
3376
3404
  // Payment tools
3377
3405
  {
3378
3406
  name: "helm__get_payments",
3379
- description: "List recorded payments. Filter by deal_id to see what a deal actually collected, by invoice_id to see what has been paid against an invoice, by account_id for one client, or by date range for a period.",
3407
+ description: "List recorded payments. Filter by deal_id to see what a deal actually collected, by invoice_id to see what has been paid against an invoice, by company_id for one client, or by date range for a period.",
3380
3408
  inputSchema: {
3381
3409
  type: "object",
3382
3410
  properties: {
@@ -3388,7 +3416,7 @@ const tools = [
3388
3416
  type: "string",
3389
3417
  description: "Only payments against this invoice",
3390
3418
  },
3391
- account_id: {
3419
+ company_id: {
3392
3420
  type: "string",
3393
3421
  description: "Only payments from this client",
3394
3422
  },
@@ -3438,7 +3466,7 @@ const tools = [
3438
3466
  type: "string",
3439
3467
  description: "Deal to attribute this payment to. Inherited from the invoice when invoice_id is given.",
3440
3468
  },
3441
- account_id: {
3469
+ company_id: {
3442
3470
  type: "string",
3443
3471
  description: "Client who paid. Inherited from the invoice or deal when either is given.",
3444
3472
  },
@@ -3672,8 +3700,9 @@ const tools = [
3672
3700
  agent_id: { type: "string", description: "ID of the agent to fire" },
3673
3701
  name: { type: "string", description: "Name (e.g. 'Invoice due reminder')" },
3674
3702
  prompt: { type: "string", description: "What the agent should produce when it fires" },
3675
- entity_type: { type: "string", enum: ["calendar_event", "task", "invoice", "deal", "estimate", "project", "subscription"], description: "Which record type to watch" },
3676
- time_column: { type: "string", description: "Date column to anchor on. Allowed per entity — calendar_event: start_time; task: due_date|scheduled_start|scheduled_end|start_date; invoice: due_date|issue_date; deal: expected_close_date|actual_close_date|stage_entered_at; estimate: expiry_date|issue_date|accepted_date; project: stage_entered_at|created_at; subscription: current_period_end|trial_end" },
3703
+ entity_type: { type: "string", enum: ["calendar_event", "task", "invoice", "deal", "estimate", "project", "subscription", "person"], description: "Which record type to watch" },
3704
+ time_column: { type: "string", description: "Date column to anchor on. Allowed per entity — calendar_event: start_time; task: due_date|scheduled_start|scheduled_end|start_date; invoice: due_date|issue_date; deal: expected_close_date|actual_close_date|stage_entered_at; estimate: expiry_date|issue_date|accepted_date; project: stage_entered_at|created_at; subscription: current_period_end|trial_end; person: next_follow_up_at|last_replied_at|last_contacted_at|outreach_status_changed_at." },
3705
+ record_filter: { type: "array", items: { type: "object" }, description: "Person watches only: which people it fires for, as segment rules {field, operator, values} (same fields as a people segment), e.g. [{field:\"outreach_status\",operator:\"is\",values:[\"replied\"]}]. Checked again just before it fires. Omit or [] for every person." },
3677
3706
  offset_minutes: { type: "number", description: "Minutes relative to time_column to fire. Negative = before (e.g. -4320 = 3 days before), positive = after. Range ±43200 (±30 days)." },
3678
3707
  scope: { type: "string", enum: ["personal", "workspace"], description: "'workspace' (default) watches all matching records; 'personal' only the creator's records" },
3679
3708
  objective_id: { type: "string", description: "Optional: link this watch to a standing objective for continuity + rate limiting" },
@@ -3695,8 +3724,9 @@ const tools = [
3695
3724
  watch_id: { type: "string" },
3696
3725
  name: { type: "string" },
3697
3726
  prompt: { type: "string" },
3698
- entity_type: { type: "string", enum: ["calendar_event", "task", "invoice", "deal", "estimate", "project", "subscription"] },
3727
+ entity_type: { type: "string", enum: ["calendar_event", "task", "invoice", "deal", "estimate", "project", "subscription", "person"] },
3699
3728
  time_column: { type: "string" },
3729
+ record_filter: { type: "array", items: { type: "object" }, description: "Person watches only: which people it fires for, as segment rules {field, operator, values} (same fields as a people segment), e.g. [{field:\"outreach_status\",operator:\"is\",values:[\"replied\"]}]. Checked again just before it fires. Omit or [] for every person." },
3700
3730
  offset_minutes: { type: "number" },
3701
3731
  scope: { type: "string", enum: ["personal", "workspace"] },
3702
3732
  objective_id: { type: "string" },
@@ -4322,7 +4352,7 @@ const server = new Server({
4322
4352
  name: "helm-mcp-server",
4323
4353
  // Keep in step with package.json — this is what clients see in the MCP
4324
4354
  // handshake, and it had drifted four minor versions behind.
4325
- version: "0.30.2",
4355
+ version: "1.1.0",
4326
4356
  }, {
4327
4357
  capabilities: {
4328
4358
  tools: {},
@@ -4408,11 +4438,11 @@ const TOOL_ROUTES = {
4408
4438
  helm__create_product_price: { action: "create_product_price", method: "POST", resultKey: "price", successMsg: "Price tier added." },
4409
4439
  helm__update_product_price: { action: "update_product_price", method: "POST", resultKey: "price", successMsg: "Price tier updated." },
4410
4440
  helm__delete_product_price: { action: "delete_product_price", method: "POST", successMsg: "Price tier deleted." },
4411
- // Account-product attribution
4412
- helm__list_account_products: { action: "list_account_products", method: "GET", resultKey: "rows" },
4413
- helm__attach_product_to_account: { action: "attach_product_to_account", method: "POST", successMsg: "Product attached to account." },
4414
- helm__update_account_product: { action: "update_account_product", method: "POST", resultKey: "account_product", successMsg: "Updated." },
4415
- helm__detach_product_from_account: { action: "detach_product_from_account", method: "POST", successMsg: "Detached." },
4441
+ // Company-product attribution
4442
+ helm__list_company_products: { action: "list_account_products", method: "GET", resultKey: "rows" },
4443
+ helm__attach_product_to_company: { action: "attach_product_to_account", method: "POST", successMsg: "Product attached to company." },
4444
+ helm__update_company_product: { action: "update_account_product", method: "POST", resultKey: "account_product", successMsg: "Updated." },
4445
+ helm__detach_product_from_company: { action: "detach_product_from_account", method: "POST", successMsg: "Detached." },
4416
4446
  // Forms
4417
4447
  helm__list_forms: { action: "list_forms", method: "GET", resultKey: "forms" },
4418
4448
  helm__get_form: { action: "get_form", method: "GET", resultKey: "form" },
@@ -4426,12 +4456,12 @@ const TOOL_ROUTES = {
4426
4456
  helm__delete_form_field: { action: "delete_form_field", method: "POST", successMsg: "Field removed." },
4427
4457
  helm__update_form_step: { action: "update_form_step", method: "POST", resultKey: "step", successMsg: "Step updated." },
4428
4458
  helm__delete_form_step: { action: "delete_form_step", method: "POST", successMsg: "Step removed." },
4429
- // Accounts
4430
- helm__get_accounts: { action: "get_accounts", method: "GET", resultKey: "accounts" },
4431
- helm__get_account: { action: "get_account", method: "GET", resultKey: "account" },
4432
- helm__add_account: { action: "add_account", method: "POST", resultKey: "account", successMsg: "Account created successfully!" },
4459
+ // Companies
4460
+ helm__get_companies: { action: "get_accounts", method: "GET", resultKey: "accounts" },
4461
+ helm__get_company: { action: "get_account", method: "GET", resultKey: "account" },
4462
+ helm__add_company: { action: "add_account", method: "POST", resultKey: "account", successMsg: "Company created successfully!" },
4433
4463
  helm__log_activity: { action: "log_activity", method: "POST", successMsg: "Activity logged." },
4434
- helm__update_account: { action: "update_account", method: "POST", resultKey: "account", successMsg: "Account updated successfully!" },
4464
+ helm__update_company: { action: "update_account", method: "POST", resultKey: "account", successMsg: "Company updated successfully!" },
4435
4465
  // Contacts
4436
4466
  helm__get_contacts: { action: "get_contacts", method: "GET", resultKey: "contacts" },
4437
4467
  helm__get_contact: { action: "get_contact", method: "GET", resultKey: "contact" },
@@ -4535,6 +4565,47 @@ const TOOL_ROUTES = {
4535
4565
  helm__update_draft: { action: "update_draft", method: "POST", resultKey: "draft", successMsg: "Draft updated." },
4536
4566
  helm__delete_draft: { action: "delete_draft", method: "POST", successMsg: "Draft deleted." },
4537
4567
  };
4568
+ /**
4569
+ * The record users call a company is still an account in the API: the table,
4570
+ * the `account_id` columns and the edge actions (`get_accounts`) keep their
4571
+ * names. This server speaks company end to end, so arguments are translated
4572
+ * on the way in and results on the way out, and nothing a client sees says
4573
+ * account. Values are never touched except `entity_type`, whose value names
4574
+ * the record kind.
4575
+ */
4576
+ const TO_API_KEYS = {
4577
+ company_id: "account_id",
4578
+ company_ids: "account_ids",
4579
+ company_name: "account_name",
4580
+ company_product_id: "account_product_id",
4581
+ };
4582
+ const FROM_API_KEYS = {
4583
+ account_id: "company_id",
4584
+ account_ids: "company_ids",
4585
+ account_name: "company_name",
4586
+ account_product_id: "company_product_id",
4587
+ account_product: "company_product",
4588
+ account_products: "company_products",
4589
+ account: "company",
4590
+ accounts: "companies",
4591
+ };
4592
+ function renameKeys(value, keys, kind) {
4593
+ if (Array.isArray(value))
4594
+ return value.map((v) => renameKeys(v, keys, kind));
4595
+ if (!value || typeof value !== "object")
4596
+ return value;
4597
+ const src = value;
4598
+ const out = {};
4599
+ for (const [k, v] of Object.entries(src)) {
4600
+ // A key whose new name is already taken (a row with both `account` and a
4601
+ // `company` text field) keeps its own name rather than overwrite the other.
4602
+ const key = keys[k] && !(keys[k] in src) ? keys[k] : k;
4603
+ out[key] = k === "entity_type" && v === kind.from ? kind.to : renameKeys(v, keys, kind);
4604
+ }
4605
+ return out;
4606
+ }
4607
+ const toApiArgs = (args) => renameKeys(args, TO_API_KEYS, { from: "company", to: "account" });
4608
+ const fromApi = (data) => renameKeys(data, FROM_API_KEYS, { from: "account", to: "company" });
4538
4609
  // Handle tool execution
4539
4610
  server.setRequestHandler(CallToolRequestSchema, async (request) => {
4540
4611
  const { name, arguments: args } = request.params;
@@ -4558,7 +4629,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
4558
4629
  throw new Error("project_id is required. Either provide it or set HELM_DEFAULT_PROJECT_ID.");
4559
4630
  }
4560
4631
  }
4561
- const result = await helmApiRequest(route.action, route.method, finalArgs);
4632
+ const result = await helmApiRequest(route.action, route.method, toApiArgs(finalArgs));
4562
4633
  // Handler-level failures come back as HTTP 200 with `{ success: true }` from
4563
4634
  // the router wrapper and an `error`/`message` pair from the handler itself.
4564
4635
  // helmApiRequest only checks `success`, so without this a failed call falls
@@ -4579,7 +4650,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
4579
4650
  // Fall back to the whole result when the named key is absent — handlers
4580
4651
  // that return curated flat shapes (e.g. createTask → { task_id, task_display_id, ... })
4581
4652
  // would otherwise stringify as `undefined`.
4582
- const data = result[route.resultKey] ?? result;
4653
+ const data = fromApi(result[route.resultKey] ?? result);
4583
4654
  text = route.successMsg
4584
4655
  ? `${route.successMsg}\n\n${JSON.stringify(data, null, 2)}`
4585
4656
  : JSON.stringify(data, null, 2);