@lil2good/nubis-mcp-server 1.0.50 → 1.0.52

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/build/index.js CHANGED
@@ -138,7 +138,34 @@ server.tool("get_task_details", "Get a task by ID", {
138
138
  },
139
139
  {
140
140
  type: "text",
141
- text: `Always provide API Usage information separately. Usage: ${JSON.stringify(json.api_usage)}`,
141
+ text: `API Usage: ${JSON.stringify(json.api_usage)}`,
142
+ }
143
+ ],
144
+ };
145
+ });
146
+ /**
147
+ * Get Task Context -> Get context for a task
148
+ */
149
+ server.tool("get_task_context", "Get context for a task", {
150
+ taskID: zod_1.z.string(),
151
+ }, async ({ taskID }) => {
152
+ const json = await getResultsFromMiddleware({
153
+ endpoint: 'get_task_context',
154
+ schema: {
155
+ taskID
156
+ }
157
+ });
158
+ if (!json.data)
159
+ throw new Error('No data returned from middleware');
160
+ return {
161
+ content: [
162
+ {
163
+ type: "text",
164
+ text: JSON.stringify(json.data),
165
+ },
166
+ {
167
+ type: "text",
168
+ text: `API Usage: ${JSON.stringify(json.api_usage)}`,
142
169
  }
143
170
  ],
144
171
  };
@@ -168,7 +195,7 @@ server.tool("add_context_to_task", "Add context to a task", {
168
195
  },
169
196
  {
170
197
  type: "text",
171
- text: `Always provide API Usage information separately. Usage: ${JSON.stringify({ taskID, context })}`,
198
+ text: `API Usage: ${JSON.stringify({ taskID, context })}`,
172
199
  }
173
200
  ],
174
201
  };
@@ -193,7 +220,7 @@ server.tool("get_task_images", "Get/View images for a task", {
193
220
  },
194
221
  {
195
222
  type: "text",
196
- text: `Always provide API Usage information separately. Usage: ${JSON.stringify(json.api_usage)}`,
223
+ text: `API Usage: ${JSON.stringify(json.api_usage)}`,
197
224
  }
198
225
  ],
199
226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lil2good/nubis-mcp-server",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "MCP server for Nubis task management",
5
5
  "main": "build/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -177,7 +177,39 @@ server.tool(
177
177
  },
178
178
  {
179
179
  type: "text",
180
- text: `Always provide API Usage information separately. Usage: ${JSON.stringify(json.api_usage)}`,
180
+ text: `API Usage: ${JSON.stringify(json.api_usage)}`,
181
+ }
182
+ ],
183
+ };
184
+ }
185
+ );
186
+
187
+ /**
188
+ * Get Task Context -> Get context for a task
189
+ */
190
+ server.tool(
191
+ "get_task_context",
192
+ "Get context for a task",
193
+ {
194
+ taskID: z.string(),
195
+ },
196
+ async ({ taskID }) => {
197
+ const json = await getResultsFromMiddleware({
198
+ endpoint: 'get_task_context',
199
+ schema: {
200
+ taskID
201
+ }
202
+ });
203
+ if (!json.data) throw new Error('No data returned from middleware');
204
+ return {
205
+ content: [
206
+ {
207
+ type: "text",
208
+ text: JSON.stringify(json.data),
209
+ },
210
+ {
211
+ type: "text",
212
+ text: `API Usage: ${JSON.stringify(json.api_usage)}`,
181
213
  }
182
214
  ],
183
215
  };
@@ -212,7 +244,7 @@ server.tool(
212
244
  },
213
245
  {
214
246
  type: "text",
215
- text: `Always provide API Usage information separately. Usage: ${JSON.stringify({ taskID, context })}`,
247
+ text: `API Usage: ${JSON.stringify({ taskID, context })}`,
216
248
  }
217
249
  ],
218
250
  };
@@ -242,7 +274,7 @@ server.tool(
242
274
  },
243
275
  {
244
276
  type: "text",
245
- text: `Always provide API Usage information separately. Usage: ${JSON.stringify(json.api_usage)}`,
277
+ text: `API Usage: ${JSON.stringify(json.api_usage)}`,
246
278
  }
247
279
  ],
248
280
  };