@rolexjs/mcp-server 1.4.0 → 1.5.0-dev-20260309054045

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
@@ -133,6 +133,10 @@ Try again with the correct id or alias.`
133
133
  );
134
134
  if (result == null) return `${command} done.`;
135
135
  if (typeof result === "string") return result;
136
+ if (command === "!project.produce") {
137
+ const opResult = result;
138
+ return renderProductResult("produce", opResult.state);
139
+ }
136
140
  if (command.startsWith("!project.")) {
137
141
  const action = command.slice("!project.".length);
138
142
  const opResult = result;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/state.ts"],"sourcesContent":["/**\n * @rolexjs/mcp-server — individual-level MCP tools.\n *\n * Pure pass-through: all rendering happens in rolexjs.\n * MCP only translates protocol calls to API calls.\n *\n * Tool schemas are defined once in @rolexjs/prototype (tools)\n * and converted to Zod here for FastMCP registration.\n */\n\nimport { genesis } from \"@rolexjs/genesis\";\nimport { localPlatform } from \"@rolexjs/local-platform\";\nimport { FastMCP } from \"fastmcp\";\nimport {\n createRoleX,\n detail,\n type ParamDef,\n type ProductAction,\n type ProjectAction,\n protocol,\n renderProductResult,\n renderProjectResult,\n type State,\n type ToolDef,\n} from \"rolexjs\";\n\nimport { z } from \"zod\";\nimport { McpState } from \"./state.js\";\n\n// ========== Setup ==========\n\nconst rolex = await createRoleX(\n localPlatform({\n prototypes: [genesis],\n })\n);\nconst state = new McpState();\n\n// ========== Zod conversion ==========\n\nfunction paramToZod(param: ParamDef, required: boolean): z.ZodTypeAny {\n let zodType: z.ZodTypeAny;\n switch (param.type) {\n case \"string\":\n case \"gherkin\":\n zodType = z.string();\n break;\n case \"string[]\":\n zodType = z.array(z.string());\n break;\n case \"number\":\n zodType = z.number();\n break;\n case \"record\":\n zodType = z.record(z.unknown());\n break;\n default:\n zodType = z.unknown();\n }\n zodType = zodType.describe(param.description);\n if (!required) zodType = zodType.optional();\n return zodType;\n}\n\nfunction toZodSchema(def: ToolDef): z.ZodTypeAny {\n const shape: Record<string, z.ZodTypeAny> = {};\n for (const [key, param] of Object.entries(def.params)) {\n shape[key] = paramToZod(param, param.required);\n }\n const schema = z.object(shape);\n return schema;\n}\n\n// ========== Tool execution ==========\n\ntype ToolExecutor = (params: Record<string, unknown>) => Promise<string>;\n\nconst executors: Record<string, ToolExecutor> = {\n async activate({ roleId }) {\n try {\n const role = await rolex.activate(roleId as string);\n state.role = role;\n return await role.project();\n } catch {\n const census = await rolex.direct<string>(\"!census.list\");\n throw new Error(\n `\"${roleId}\" not found. Available:\\n\\n${census}\\n\\nTry again with the correct id or alias.`\n );\n }\n },\n\n async focus({ id }) {\n return await state.requireRole().focus(id as string | undefined);\n },\n\n async want({ id, goal }) {\n return await state.requireRole().want(goal as string, id as string);\n },\n\n async plan({ id, plan, after, fallback }) {\n return await state\n .requireRole()\n .plan(\n plan as string,\n id as string,\n after as string | undefined,\n fallback as string | undefined\n );\n },\n\n async todo({ id, task }) {\n return await state.requireRole().todo(task as string, id as string);\n },\n\n async finish({ id, encounter }) {\n return await state.requireRole().finish(id as string, encounter as string | undefined);\n },\n\n async complete({ id, encounter }) {\n return await state\n .requireRole()\n .complete(id as string | undefined, encounter as string | undefined);\n },\n\n async abandon({ id, encounter }) {\n return await state\n .requireRole()\n .abandon(id as string | undefined, encounter as string | undefined);\n },\n\n async reflect({ ids, id, experience }) {\n return await state\n .requireRole()\n .reflect(ids as string[], experience as string | undefined, id as string);\n },\n\n async realize({ ids, id, principle }) {\n return await state\n .requireRole()\n .realize(ids as string[], principle as string | undefined, id as string);\n },\n\n async master({ ids, id, procedure }) {\n return await state\n .requireRole()\n .master(procedure as string, id as string, ids as string[] | undefined);\n },\n\n async forget({ id }) {\n return await state.requireRole().forget(id as string);\n },\n\n async skill({ locator }) {\n return await state.requireRole().skill(locator as string);\n },\n\n async use({ command, args }) {\n const a = args as Record<string, unknown> | undefined;\n const result = await state\n .requireRole()\n .use(command as string, a && Object.keys(a).length > 0 ? a : undefined);\n if (result == null) return `${command} done.`;\n if (typeof result === \"string\") return result;\n return JSON.stringify(result, null, 2);\n },\n\n async direct({ command, args }) {\n const a = args as Record<string, unknown> | undefined;\n const result = await rolex.direct(\n command as string,\n a && Object.keys(a).length > 0 ? a : undefined\n );\n if (result == null) return `${command} done.`;\n if (typeof result === \"string\") return result;\n if ((command as string).startsWith(\"!project.\")) {\n const action = (command as string).slice(\"!project.\".length) as ProjectAction;\n const opResult = result as { state: State };\n return renderProjectResult(action, opResult.state);\n }\n if ((command as string).startsWith(\"!product.\")) {\n const action = (command as string).slice(\"!product.\".length) as ProductAction;\n const opResult = result as { state: State };\n return renderProductResult(action, opResult.state);\n }\n return JSON.stringify(result, null, 2);\n },\n};\n\n// ========== Server ==========\n\nconst server = new FastMCP({\n name: \"rolex\",\n version: \"0.12.0\",\n instructions: protocol.instructions,\n});\n\n// Register all tools from unified schema\nfor (const toolDef of protocol.tools) {\n const executor = executors[toolDef.name];\n if (!executor) {\n throw new Error(`No executor for tool \"${toolDef.name}\"`);\n }\n\n server.addTool({\n name: toolDef.name,\n description: detail(toolDef.name),\n parameters: toZodSchema(toolDef),\n execute: async (params) => {\n return await executor(params as Record<string, unknown>);\n },\n });\n}\n\n// ========== Start ==========\n\nserver.start({\n transportType: \"stdio\",\n});\n","/**\n * McpState — thin session holder for the MCP server.\n *\n * Holds the active Role handle. All business logic (state tracking,\n * cognitive hints, encounter/experience registries) lives in Role + RoleContext.\n */\nimport type { Role } from \"rolexjs\";\n\nexport class McpState {\n role: Role | null = null;\n\n requireRole(): Role {\n if (!this.role) throw new Error(\"No active role. Call activate first.\");\n return this.role;\n }\n}\n"],"mappings":";;;AAUA,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB;AAAA,EACE;AAAA,EACA;AAAA,EAIA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AAEP,SAAS,SAAS;;;AClBX,IAAM,WAAN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,IAAI,QAAQ;AAAA,EACzB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,cAAc,SAAS;AACzB,CAAC;AAGD,WAAW,WAAW,SAAS,OAAO;AACpC,QAAM,WAAW,UAAU,QAAQ,IAAI;AACvC,MAAI,CAAC,UAAU;AACb,UAAM,IAAI,MAAM,yBAAyB,QAAQ,IAAI,GAAG;AAAA,EAC1D;AAEA,SAAO,QAAQ;AAAA,IACb,MAAM,QAAQ;AAAA,IACd,aAAa,OAAO,QAAQ,IAAI;AAAA,IAChC,YAAY,YAAY,OAAO;AAAA,IAC/B,SAAS,OAAO,WAAW;AACzB,aAAO,MAAM,SAAS,MAAiC;AAAA,IACzD;AAAA,EACF,CAAC;AACH;AAIA,OAAO,MAAM;AAAA,EACX,eAAe;AACjB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/state.ts"],"sourcesContent":["/**\n * @rolexjs/mcp-server — individual-level MCP tools.\n *\n * Pure pass-through: all rendering happens in rolexjs.\n * MCP only translates protocol calls to API calls.\n *\n * Tool schemas are defined once in @rolexjs/prototype (tools)\n * and converted to Zod here for FastMCP registration.\n */\n\nimport { genesis } from \"@rolexjs/genesis\";\nimport { localPlatform } from \"@rolexjs/local-platform\";\nimport { FastMCP } from \"fastmcp\";\nimport {\n createRoleX,\n detail,\n type ParamDef,\n type ProductAction,\n type ProjectAction,\n protocol,\n renderProductResult,\n renderProjectResult,\n type State,\n type ToolDef,\n} from \"rolexjs\";\n\nimport { z } from \"zod\";\nimport { McpState } from \"./state.js\";\n\n// ========== Setup ==========\n\nconst rolex = await createRoleX(\n localPlatform({\n prototypes: [genesis],\n })\n);\nconst state = new McpState();\n\n// ========== Zod conversion ==========\n\nfunction paramToZod(param: ParamDef, required: boolean): z.ZodTypeAny {\n let zodType: z.ZodTypeAny;\n switch (param.type) {\n case \"string\":\n case \"gherkin\":\n zodType = z.string();\n break;\n case \"string[]\":\n zodType = z.array(z.string());\n break;\n case \"number\":\n zodType = z.number();\n break;\n case \"record\":\n zodType = z.record(z.unknown());\n break;\n default:\n zodType = z.unknown();\n }\n zodType = zodType.describe(param.description);\n if (!required) zodType = zodType.optional();\n return zodType;\n}\n\nfunction toZodSchema(def: ToolDef): z.ZodTypeAny {\n const shape: Record<string, z.ZodTypeAny> = {};\n for (const [key, param] of Object.entries(def.params)) {\n shape[key] = paramToZod(param, param.required);\n }\n const schema = z.object(shape);\n return schema;\n}\n\n// ========== Tool execution ==========\n\ntype ToolExecutor = (params: Record<string, unknown>) => Promise<string>;\n\nconst executors: Record<string, ToolExecutor> = {\n async activate({ roleId }) {\n try {\n const role = await rolex.activate(roleId as string);\n state.role = role;\n return await role.project();\n } catch {\n const census = await rolex.direct<string>(\"!census.list\");\n throw new Error(\n `\"${roleId}\" not found. Available:\\n\\n${census}\\n\\nTry again with the correct id or alias.`\n );\n }\n },\n\n async focus({ id }) {\n return await state.requireRole().focus(id as string | undefined);\n },\n\n async want({ id, goal }) {\n return await state.requireRole().want(goal as string, id as string);\n },\n\n async plan({ id, plan, after, fallback }) {\n return await state\n .requireRole()\n .plan(\n plan as string,\n id as string,\n after as string | undefined,\n fallback as string | undefined\n );\n },\n\n async todo({ id, task }) {\n return await state.requireRole().todo(task as string, id as string);\n },\n\n async finish({ id, encounter }) {\n return await state.requireRole().finish(id as string, encounter as string | undefined);\n },\n\n async complete({ id, encounter }) {\n return await state\n .requireRole()\n .complete(id as string | undefined, encounter as string | undefined);\n },\n\n async abandon({ id, encounter }) {\n return await state\n .requireRole()\n .abandon(id as string | undefined, encounter as string | undefined);\n },\n\n async reflect({ ids, id, experience }) {\n return await state\n .requireRole()\n .reflect(ids as string[], experience as string | undefined, id as string);\n },\n\n async realize({ ids, id, principle }) {\n return await state\n .requireRole()\n .realize(ids as string[], principle as string | undefined, id as string);\n },\n\n async master({ ids, id, procedure }) {\n return await state\n .requireRole()\n .master(procedure as string, id as string, ids as string[] | undefined);\n },\n\n async forget({ id }) {\n return await state.requireRole().forget(id as string);\n },\n\n async skill({ locator }) {\n return await state.requireRole().skill(locator as string);\n },\n\n async use({ command, args }) {\n const a = args as Record<string, unknown> | undefined;\n const result = await state\n .requireRole()\n .use(command as string, a && Object.keys(a).length > 0 ? a : undefined);\n if (result == null) return `${command} done.`;\n if (typeof result === \"string\") return result;\n return JSON.stringify(result, null, 2);\n },\n\n async direct({ command, args }) {\n const a = args as Record<string, unknown> | undefined;\n const result = await rolex.direct(\n command as string,\n a && Object.keys(a).length > 0 ? a : undefined\n );\n if (result == null) return `${command} done.`;\n if (typeof result === \"string\") return result;\n if ((command as string) === \"!project.produce\") {\n const opResult = result as { state: State };\n return renderProductResult(\"produce\" as ProductAction, opResult.state);\n }\n if ((command as string).startsWith(\"!project.\")) {\n const action = (command as string).slice(\"!project.\".length) as ProjectAction;\n const opResult = result as { state: State };\n return renderProjectResult(action, opResult.state);\n }\n if ((command as string).startsWith(\"!product.\")) {\n const action = (command as string).slice(\"!product.\".length) as ProductAction;\n const opResult = result as { state: State };\n return renderProductResult(action, opResult.state);\n }\n return JSON.stringify(result, null, 2);\n },\n};\n\n// ========== Server ==========\n\nconst server = new FastMCP({\n name: \"rolex\",\n version: \"0.12.0\",\n instructions: protocol.instructions,\n});\n\n// Register all tools from unified schema\nfor (const toolDef of protocol.tools) {\n const executor = executors[toolDef.name];\n if (!executor) {\n throw new Error(`No executor for tool \"${toolDef.name}\"`);\n }\n\n server.addTool({\n name: toolDef.name,\n description: detail(toolDef.name),\n parameters: toZodSchema(toolDef),\n execute: async (params) => {\n return await executor(params as Record<string, unknown>);\n },\n });\n}\n\n// ========== Start ==========\n\nserver.start({\n transportType: \"stdio\",\n});\n","/**\n * McpState — thin session holder for the MCP server.\n *\n * Holds the active Role handle. All business logic (state tracking,\n * cognitive hints, encounter/experience registries) lives in Role + RoleContext.\n */\nimport type { Role } from \"rolexjs\";\n\nexport class McpState {\n role: Role | null = null;\n\n requireRole(): Role {\n if (!this.role) throw new Error(\"No active role. Call activate first.\");\n return this.role;\n }\n}\n"],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B,aAAO,oBAAoB,QAAQ,SAAS,KAAK;AAAA,IACnD;AACA,QAAK,QAAmB,WAAW,WAAW,GAAG;AAC/C,YAAM,SAAU,QAAmB,MAAM,YAAY,MAAM;AAC3D,YAAM,WAAW;AACjB,aAAO,oBAAoB,QAAQ,SAAS,KAAK;AAAA,IACnD;AACA,WAAO,KAAK,UAAU,QAAQ,MAAM,CAAC;AAAA,EACvC;AACF;AAIA,IAAM,SAAS,IAAI,QAAQ;AAAA,EACzB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,cAAc,SAAS;AACzB,CAAC;AAGD,WAAW,WAAW,SAAS,OAAO;AACpC,QAAM,WAAW,UAAU,QAAQ,IAAI;AACvC,MAAI,CAAC,UAAU;AACb,UAAM,IAAI,MAAM,yBAAyB,QAAQ,IAAI,GAAG;AAAA,EAC1D;AAEA,SAAO,QAAQ;AAAA,IACb,MAAM,QAAQ;AAAA,IACd,aAAa,OAAO,QAAQ,IAAI;AAAA,IAChC,YAAY,YAAY,OAAO;AAAA,IAC/B,SAAS,OAAO,WAAW;AACzB,aAAO,MAAM,SAAS,MAAiC;AAAA,IACzD;AAAA,EACF,CAAC;AACH;AAIA,OAAO,MAAM;AAAA,EACX,eAAe;AACjB,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolexjs/mcp-server",
3
- "version": "1.4.0",
3
+ "version": "1.5.0-dev-20260309054045",
4
4
  "description": "MCP server for Rolex — expose RDD role management as MCP tools",
5
5
  "keywords": [
6
6
  "rolex",
@@ -41,9 +41,9 @@
41
41
  "clean": "rm -rf dist"
42
42
  },
43
43
  "dependencies": {
44
- "rolexjs": "^1.4.0",
45
- "@rolexjs/local-platform": "^1.4.0",
46
- "@rolexjs/genesis": "^1.4.0",
44
+ "rolexjs": "1.5.0-dev-20260309054045",
45
+ "@rolexjs/local-platform": "1.5.0-dev-20260309054045",
46
+ "@rolexjs/genesis": "1.5.0-dev-20260309054045",
47
47
  "fastmcp": "^3.0.0",
48
48
  "zod": "^3.25.0"
49
49
  },