@trylighthouse/mcp-server 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/build/server.js +18 -18
  2. package/package.json +1 -1
package/build/server.js CHANGED
@@ -16,7 +16,7 @@ export function createServer(apiKey) {
16
16
  const api = new LighthouseAPI(apiKey);
17
17
  const server = new McpServer({
18
18
  name: "lighthouse",
19
- version: "0.1.9",
19
+ version: "0.1.10",
20
20
  });
21
21
  // ─────────────────────────────────────────────────────────
22
22
  // FILTER FORMAT REFERENCE (used in tool descriptions)
@@ -127,14 +127,14 @@ export function createServer(apiKey) {
127
127
  });
128
128
  server.registerTool("lighthouse_crm_get_attribute", {
129
129
  title: "Get CRM Attribute",
130
- description: "Get a single custom field definition by its field_permalink.",
130
+ description: "Get a single custom field definition. Response returns 'permalink', 'is_custom', 'data_type', 'links_to'.",
131
131
  inputSchema: {
132
- field_permalink: z.string().describe("Field permalink (unique key) of the attribute"),
132
+ permalink: z.string().describe("Field permalink (unique key) of the attribute"),
133
133
  record_type: z.enum(["company", "person", "deal", "task"]).describe("Record type (required)"),
134
134
  },
135
135
  }, async (params) => {
136
136
  try {
137
- const res = await api.get(`/attributes/${params.record_type}/${params.field_permalink}`);
137
+ const res = await api.get(`/attributes/${params.record_type}/${params.permalink}`);
138
138
  return text(res);
139
139
  }
140
140
  catch (e) {
@@ -168,14 +168,14 @@ export function createServer(apiKey) {
168
168
  title: "Update CRM Attribute",
169
169
  description: "Update a custom field's label or configuration.",
170
170
  inputSchema: {
171
- field_permalink: z.string().describe("Field permalink of the attribute to update"),
171
+ permalink: z.string().describe("Field permalink of the attribute to update"),
172
172
  record_type: z.enum(["company", "person", "deal"]).describe("Record type (required)"),
173
173
  label: z.string().optional().describe("New display label"),
174
174
  },
175
175
  }, async (params) => {
176
176
  try {
177
- const { field_permalink, record_type, ...body } = params;
178
- const res = await api.patch(`/attributes/${record_type}/${field_permalink}`, body);
177
+ const { permalink, record_type, ...body } = params;
178
+ const res = await api.patch(`/attributes/${record_type}/${permalink}`, body);
179
179
  return text(res);
180
180
  }
181
181
  catch (e) {
@@ -186,12 +186,12 @@ export function createServer(apiKey) {
186
186
  title: "Delete CRM Attribute",
187
187
  description: "Delete (archive) a custom field. Only custom fields can be deleted, not system fields.",
188
188
  inputSchema: {
189
- field_permalink: z.string().describe("Field permalink of the attribute to delete"),
189
+ permalink: z.string().describe("Field permalink of the attribute to delete"),
190
190
  record_type: z.enum(["company", "person", "deal"]).describe("Record type (required)"),
191
191
  },
192
192
  }, async (params) => {
193
193
  try {
194
- const res = await api.delete(`/attributes/${params.record_type}/${params.field_permalink}`);
194
+ const res = await api.delete(`/attributes/${params.record_type}/${params.permalink}`);
195
195
  return text(res);
196
196
  }
197
197
  catch (e) {
@@ -220,11 +220,11 @@ export function createServer(apiKey) {
220
220
  "Use this to discover available values for select fields before setting them on records.",
221
221
  inputSchema: {
222
222
  record_type: z.enum(["company", "person", "deal", "task"]).describe("Record type"),
223
- field_permalink: z.string().describe("Field permalink of the select/multi_select field"),
223
+ permalink: z.string().describe("Field permalink of the select/multi_select field"),
224
224
  },
225
225
  }, async (params) => {
226
226
  try {
227
- const res = await api.get(`/options/${params.record_type}/${params.field_permalink}`);
227
+ const res = await api.get(`/options/${params.record_type}/${params.permalink}`);
228
228
  return text(res);
229
229
  }
230
230
  catch (e) {
@@ -236,14 +236,14 @@ export function createServer(apiKey) {
236
236
  description: "Add a new option to a select/multi_select field. The option value is auto-generated from the label. Returns the updated list of options for the field.",
237
237
  inputSchema: {
238
238
  record_type: z.enum(["company", "person", "deal", "task"]).describe("Record type"),
239
- field_permalink: z.string().describe("Field permalink of the select/multi_select field"),
239
+ permalink: z.string().describe("Field permalink of the select/multi_select field"),
240
240
  label: z.string().describe("Option display label"),
241
241
  color: z.string().optional().describe("Option color (hex code from palette, auto-assigned if omitted)"),
242
242
  },
243
243
  }, async (params) => {
244
244
  try {
245
- const { record_type, field_permalink, ...body } = params;
246
- const res = await api.post(`/options/${record_type}/${field_permalink}`, body);
245
+ const { record_type, permalink, ...body } = params;
246
+ const res = await api.post(`/options/${record_type}/${permalink}`, body);
247
247
  return text(res);
248
248
  }
249
249
  catch (e) {
@@ -255,12 +255,12 @@ export function createServer(apiKey) {
255
255
  description: "Delete an option value from a select/multi_select field. Cannot delete system default options.",
256
256
  inputSchema: {
257
257
  record_type: z.enum(["company", "person", "deal", "task"]).describe("Record type"),
258
- field_permalink: z.string().describe("Field permalink of the select/multi_select field"),
258
+ permalink: z.string().describe("Field permalink of the select/multi_select field"),
259
259
  value: z.string().describe("Option value to delete"),
260
260
  },
261
261
  }, async (params) => {
262
262
  try {
263
- const res = await api.delete(`/options/${params.record_type}/${params.field_permalink}/${params.value}`);
263
+ const res = await api.delete(`/options/${params.record_type}/${params.permalink}/${params.value}`);
264
264
  return text(res);
265
265
  }
266
266
  catch (e) {
@@ -713,7 +713,7 @@ export function createServer(apiKey) {
713
713
  })
714
714
  .optional()
715
715
  .describe("Records to link: {company: [ids], person: [ids], deal: [ids]}"),
716
- attributes: z.record(z.any()).optional().describe("Custom task field values as {field_permalink: value}"),
716
+ attributes: z.record(z.any()).optional().describe("Custom task field values as {permalink: value}"),
717
717
  },
718
718
  }, async (params) => {
719
719
  try {
@@ -748,7 +748,7 @@ export function createServer(apiKey) {
748
748
  })
749
749
  .optional()
750
750
  .describe("Records to link (replaces current): {company: [ids], person: [ids], deal: [ids]}"),
751
- attributes: z.record(z.any()).optional().describe("Custom task field values as {field_permalink: value}"),
751
+ attributes: z.record(z.any()).optional().describe("Custom task field values as {permalink: value}"),
752
752
  },
753
753
  }, async (params) => {
754
754
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trylighthouse/mcp-server",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "MCP server for the Lighthouse CRM API",
5
5
  "type": "module",
6
6
  "main": "./build/server.js",