feat(cli): vault set / watch add / webhook create + prune dead MCP stubs
Closes the last functional gaps where the MCP tool registry exposed write verbs the CLI didn't: - vault set <k> <v> [--type env|file --mount <path> --description ...] Client-side crypto_secretbox_easy with a fresh symmetric key sealed to the member's own pubkey via crypto_box_seal — same pattern used for file shares. Pairs with the existing vault list/delete. - watch add <url> [--label --interval --mode --extract --notify-on] Pairs with watch list/remove. - webhook create <name> — pairs with webhook list/delete. Cleanup: deletes 22 stub files under apps/cli/src/mcp/tools/* plus router.ts, middleware/, handlers/ (~120 LoC). These were FAMILY/TOOLS metadata-only re-exports left over from before the 1.5.0 tool-less push-pipe flip; nothing imports them. The legitimate MCP surfaces stay: the inbound <channel> push pipe, mesh skills as prompts and skill:// resources, and the mesh-service proxy mode. Released as 1.23.0 on npm. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
|
||||
@@ -1 +0,0 @@
|
||||
export { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
||||
@@ -1 +0,0 @@
|
||||
export function formatToolError(err: unknown): string { return err instanceof Error ? err.message : String(err); }
|
||||
@@ -1,3 +0,0 @@
|
||||
export function logToolCall(toolName: string, durationMs: number): void {
|
||||
if (process.env.CLAUDEMESH_DEBUG === "1") process.stderr.write("[mcp] " + toolName + " (" + durationMs + "ms)\n");
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
// Tool dispatch — server.ts handles all routing via switch statement.
|
||||
export const ROUTER_VERSION = "1.0" as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: clock-write
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "clock-write" as const;
|
||||
export const TOOLS = ["mesh_set_clock", "mesh_pause_clock", "mesh_resume_clock"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: contexts
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "contexts" as const;
|
||||
export const TOOLS = ["share_context", "get_context", "list_contexts"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: files
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "files" as const;
|
||||
export const TOOLS = ["share_file", "get_file", "list_files", "file_status", "delete_file", "grant_file_access", "read_peer_file", "list_peer_files"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: graph
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "graph" as const;
|
||||
export const TOOLS = ["graph_query", "graph_execute"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: groups
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "groups" as const;
|
||||
export const TOOLS = ["join_group", "leave_group"] as const;
|
||||
@@ -1,21 +0,0 @@
|
||||
export { FAMILY as memoryFamily, TOOLS as memoryTools } from "./memory.js";
|
||||
export { FAMILY as stateFamily, TOOLS as stateTools } from "./state.js";
|
||||
export { FAMILY as messagingFamily, TOOLS as messagingTools } from "./messaging.js";
|
||||
export { FAMILY as profileFamily, TOOLS as profileTools } from "./profile.js";
|
||||
export { FAMILY as groupsFamily, TOOLS as groupsTools } from "./groups.js";
|
||||
export { FAMILY as filesFamily, TOOLS as filesTools } from "./files.js";
|
||||
export { FAMILY as vectorsFamily, TOOLS as vectorsTools } from "./vectors.js";
|
||||
export { FAMILY as graphFamily, TOOLS as graphTools } from "./graph.js";
|
||||
export { FAMILY as sqlFamily, TOOLS as sqlTools } from "./sql.js";
|
||||
export { FAMILY as streamsFamily, TOOLS as streamsTools } from "./streams.js";
|
||||
export { FAMILY as contextsFamily, TOOLS as contextsTools } from "./contexts.js";
|
||||
export { FAMILY as tasksFamily, TOOLS as tasksTools } from "./tasks.js";
|
||||
export { FAMILY as schedulingFamily, TOOLS as schedulingTools } from "./scheduling.js";
|
||||
export { FAMILY as meshMetaFamily, TOOLS as meshMetaTools } from "./mesh-meta.js";
|
||||
export { FAMILY as clockWriteFamily, TOOLS as clockWriteTools } from "./clock-write.js";
|
||||
export { FAMILY as skillsFamily, TOOLS as skillsTools } from "./skills.js";
|
||||
export { FAMILY as mcpRegistryPeerFamily, TOOLS as mcpRegistryPeerTools } from "./mcp-registry-peer.js";
|
||||
export { FAMILY as mcpRegistryBrokerFamily, TOOLS as mcpRegistryBrokerTools } from "./mcp-registry-broker.js";
|
||||
export { FAMILY as vaultFamily, TOOLS as vaultTools } from "./vault.js";
|
||||
export { FAMILY as urlWatchFamily, TOOLS as urlWatchTools } from "./url-watch.js";
|
||||
export { FAMILY as webhooksFamily, TOOLS as webhooksTools } from "./webhooks.js";
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: mcp-registry-broker
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "mcp-registry-broker" as const;
|
||||
export const TOOLS = ["mesh_mcp_deploy", "mesh_mcp_undeploy", "mesh_mcp_update", "mesh_mcp_logs", "mesh_mcp_scope", "mesh_mcp_schema", "mesh_mcp_catalog"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: mcp-registry-peer
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "mcp-registry-peer" as const;
|
||||
export const TOOLS = ["mesh_mcp_register", "mesh_mcp_list", "mesh_tool_call", "mesh_mcp_remove"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: memory
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "memory" as const;
|
||||
export const TOOLS = ["remember", "recall", "forget"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: mesh-meta
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "mesh-meta" as const;
|
||||
export const TOOLS = ["mesh_info", "mesh_stats", "mesh_clock", "ping_mesh"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: messaging
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "messaging" as const;
|
||||
export const TOOLS = ["send_message", "list_peers", "check_messages", "message_status"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: profile
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "profile" as const;
|
||||
export const TOOLS = ["set_profile", "set_status", "set_summary", "set_visible"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: scheduling
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "scheduling" as const;
|
||||
export const TOOLS = ["schedule_reminder", "list_scheduled", "cancel_scheduled"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: skills
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "skills" as const;
|
||||
export const TOOLS = ["share_skill", "get_skill", "list_skills", "remove_skill", "mesh_skill_deploy"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: sql
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "sql" as const;
|
||||
export const TOOLS = ["mesh_query", "mesh_execute", "mesh_schema"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: state
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "state" as const;
|
||||
export const TOOLS = ["set_state", "get_state", "list_state"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: streams
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "streams" as const;
|
||||
export const TOOLS = ["create_stream", "publish", "subscribe", "list_streams"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: tasks
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "tasks" as const;
|
||||
export const TOOLS = ["create_task", "claim_task", "complete_task", "list_tasks"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: url-watch
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "url-watch" as const;
|
||||
export const TOOLS = ["mesh_watch", "mesh_unwatch", "mesh_watches"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: vault
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "vault" as const;
|
||||
export const TOOLS = ["vault_set", "vault_list", "vault_delete"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: vectors
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "vectors" as const;
|
||||
export const TOOLS = ["vector_store", "vector_search", "vector_delete", "list_collections"] as const;
|
||||
@@ -1,4 +0,0 @@
|
||||
// MCP tool family: webhooks
|
||||
// Handlers in mcp/server.ts; this file defines the family for the spec's folder structure.
|
||||
export const FAMILY = "webhooks" as const;
|
||||
export const TOOLS = ["create_webhook", "list_webhooks", "delete_webhook"] as const;
|
||||
Reference in New Issue
Block a user