@contextstream/mcp-server 0.3.10 → 0.3.11

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/dist/index.js +79 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4578,6 +4578,14 @@ var ContextStreamClient = class {
4578
4578
  createWorkspace(input) {
4579
4579
  return request(this.config, "/workspaces", { body: input });
4580
4580
  }
4581
+ updateWorkspace(workspaceId, input) {
4582
+ uuidSchema.parse(workspaceId);
4583
+ return request(this.config, `/workspaces/${workspaceId}`, { method: "PUT", body: input });
4584
+ }
4585
+ deleteWorkspace(workspaceId) {
4586
+ uuidSchema.parse(workspaceId);
4587
+ return request(this.config, `/workspaces/${workspaceId}`, { method: "DELETE" });
4588
+ }
4581
4589
  listProjects(params) {
4582
4590
  const withDefaults = this.withDefaults(params || {});
4583
4591
  const query = new URLSearchParams();
@@ -4591,6 +4599,14 @@ var ContextStreamClient = class {
4591
4599
  const payload = this.withDefaults(input);
4592
4600
  return request(this.config, "/projects", { body: payload });
4593
4601
  }
4602
+ updateProject(projectId, input) {
4603
+ uuidSchema.parse(projectId);
4604
+ return request(this.config, `/projects/${projectId}`, { method: "PUT", body: input });
4605
+ }
4606
+ deleteProject(projectId) {
4607
+ uuidSchema.parse(projectId);
4608
+ return request(this.config, `/projects/${projectId}`, { method: "DELETE" });
4609
+ }
4594
4610
  indexProject(projectId) {
4595
4611
  uuidSchema.parse(projectId);
4596
4612
  return request(this.config, `/projects/${projectId}/index`, { body: {} });
@@ -6154,6 +6170,38 @@ function registerTools(server, client, sessionManager) {
6154
6170
  return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
6155
6171
  }
6156
6172
  );
6173
+ registerTool(
6174
+ "workspaces_update",
6175
+ {
6176
+ title: "Update workspace",
6177
+ description: "Update a workspace (rename, change description, or visibility)",
6178
+ inputSchema: external_exports.object({
6179
+ workspace_id: external_exports.string().uuid(),
6180
+ name: external_exports.string().optional(),
6181
+ description: external_exports.string().optional(),
6182
+ visibility: external_exports.enum(["private", "team", "org"]).optional()
6183
+ })
6184
+ },
6185
+ async (input) => {
6186
+ const { workspace_id, ...updates } = input;
6187
+ const result = await client.updateWorkspace(workspace_id, updates);
6188
+ return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
6189
+ }
6190
+ );
6191
+ registerTool(
6192
+ "workspaces_delete",
6193
+ {
6194
+ title: "Delete workspace",
6195
+ description: "Delete a workspace and all its contents (projects, memory, etc.). This action is irreversible.",
6196
+ inputSchema: external_exports.object({
6197
+ workspace_id: external_exports.string().uuid()
6198
+ })
6199
+ },
6200
+ async (input) => {
6201
+ const result = await client.deleteWorkspace(input.workspace_id);
6202
+ return { content: [{ type: "text", text: formatContent(result || { success: true, message: "Workspace deleted successfully" }) }], structuredContent: toStructured(result) };
6203
+ }
6204
+ );
6157
6205
  registerTool(
6158
6206
  "projects_list",
6159
6207
  {
@@ -6182,6 +6230,37 @@ function registerTools(server, client, sessionManager) {
6182
6230
  return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
6183
6231
  }
6184
6232
  );
6233
+ registerTool(
6234
+ "projects_update",
6235
+ {
6236
+ title: "Update project",
6237
+ description: "Update a project (rename or change description)",
6238
+ inputSchema: external_exports.object({
6239
+ project_id: external_exports.string().uuid(),
6240
+ name: external_exports.string().optional(),
6241
+ description: external_exports.string().optional()
6242
+ })
6243
+ },
6244
+ async (input) => {
6245
+ const { project_id, ...updates } = input;
6246
+ const result = await client.updateProject(project_id, updates);
6247
+ return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
6248
+ }
6249
+ );
6250
+ registerTool(
6251
+ "projects_delete",
6252
+ {
6253
+ title: "Delete project",
6254
+ description: "Delete a project and all its contents (indexed files, memory events, etc.). This action is irreversible.",
6255
+ inputSchema: external_exports.object({
6256
+ project_id: external_exports.string().uuid()
6257
+ })
6258
+ },
6259
+ async (input) => {
6260
+ const result = await client.deleteProject(input.project_id);
6261
+ return { content: [{ type: "text", text: formatContent(result || { success: true, message: "Project deleted successfully" }) }], structuredContent: toStructured(result) };
6262
+ }
6263
+ );
6185
6264
  registerTool(
6186
6265
  "projects_index",
6187
6266
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextstream/mcp-server",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "MCP server exposing ContextStream public API - code context, memory, search, and AI tools for developers",
5
5
  "type": "module",
6
6
  "license": "MIT",