@x12i/reportic-mcp 0.2.3 → 0.2.4
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 +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
import { randomUUID } from "crypto";
|
|
8
8
|
import { listComponents, getComponent, inspectTemplate, validateReport, generateReport, ReporticError } from "@x12i/reportic";
|
|
9
9
|
function createReporticMcpServer(trustedOptions = {}) {
|
|
10
|
-
const server = new McpServer({ name: "reportic", version: "0.2.
|
|
10
|
+
const server = new McpServer({ name: "reportic", version: "0.2.4" }, { capabilities: { resources: {}, tools: {} } });
|
|
11
11
|
const jobs = /* @__PURE__ */ new Map();
|
|
12
12
|
const result = (value) => ({ content: [{ type: "text", text: JSON.stringify(value) }], structuredContent: value });
|
|
13
13
|
const format = z.enum(["pdf", "pptx", "docx", "html", "markdown"]);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { z } from 'zod';\nimport { randomUUID } from 'node:crypto';\nimport { listComponents, getComponent, inspectTemplate, validateReport, generateReport, ReporticError } from '@x12i/reportic';\nimport type { ReportOptions, ReportResult, Diagnostic } from '@x12i/reportic';\n\nexport function createReporticMcpServer(trustedOptions:ReportOptions={}){\n const server=new McpServer({name:'reportic',version:'0.2.3'},{capabilities:{resources:{},tools:{}}});\n const jobs=new Map<string,{state:string;created:number;result?:ReportResult;diagnostics?:Diagnostic[];controller:AbortController}>();\n const result=(value:any)=>({content:[{type:'text' as const,text:JSON.stringify(value)}],structuredContent:value});\n const format=z.enum(['pdf','pptx','docx','html','markdown']);\n const input={template:z.string().max(1000000),dataSets:z.array(z.object({name:z.string(),data:z.record(z.unknown())})).default([]),variables:z.record(z.unknown()).default({}),format:format.optional(),theme:z.object({name:z.enum(['editorial','midnight','forest','minimal']).optional(),tokens:z.record(z.unknown()).optional()}).optional()};\n const readOnly={readOnlyHint:true,destructiveHint:false,idempotentHint:true,openWorldHint:false};\n function getJob(id:string){const j=jobs.get(id);if(!j||Date.now()-j.created>3600000){jobs.delete(id);throw new Error('Job was not found or has expired.');}return j;}\n function info(id:string){const j=getJob(id);return{id,state:j.state,diagnostics:j.diagnostics ?? [],...(j.result?{artifact:{uri:`reportic://artifacts/${id}/${j.result.filename}`,filename:j.result.filename,mediaType:j.result.mediaType,bytes:j.result.bytes.length,assets:j.result.assets.map(a=>({uri:`reportic://artifacts/${id}/${a.path}`,mediaType:a.mediaType}))}}:{})};}\n server.registerTool('reportic_list_components',{description:'Discover Reportic elements, schemas, and target capabilities.',inputSchema:{format:format.optional(),editability:z.enum(['strict','normal']).optional()},annotations:readOnly},async args=>result({components:listComponents(args,trustedOptions.registry)}));\n server.registerTool('reportic_get_component',{description:'Get one component authoring schema and example.',inputSchema:{type:z.string()},annotations:readOnly},async({type})=>result({component:getComponent(type,trustedOptions.registry) ?? null}));\n server.registerTool('reportic_inspect_template',{description:'Inspect Reportic source without exporting an artifact.',inputSchema:{template:input.template},annotations:readOnly},async({template})=>result(inspectTemplate(template)));\n server.registerTool('reportic_validate_report',{description:'Validate template and inputs with the same engine used by all Reportic interfaces.',inputSchema:input,annotations:readOnly},async args=>result(await validateReport(args.template,args.dataSets,args.variables,{...trustedOptions,format:args.format,theme:args.theme as any})));\n server.registerTool('reportic_generate_report',{description:'Create a private local report job. PDF is the default. Poll reportic_get_job for its authorized resource link.',inputSchema:input,annotations:{...readOnly,readOnlyHint:false,idempotentHint:false}},async args=>{\n for(const[id,j]of jobs)if(Date.now()-j.created>3600000){j.controller.abort();jobs.delete(id);}if(jobs.size>=100)throw new Error('Artifact capacity reached.');\n const id=randomUUID(),controller=new AbortController(),job:{state:string;created:number;controller:AbortController;result?:ReportResult;diagnostics?:Diagnostic[]}={state:'running',created:Date.now(),controller};jobs.set(id,job);\n void generateReport(args.template,args.dataSets,args.variables,{...trustedOptions,format:args.format,theme:args.theme as any,signal:controller.signal}).then(r=>{if(!controller.signal.aborted){job.result=r;job.diagnostics=r.diagnostics;job.state='succeeded';}}).catch(e=>{if(!controller.signal.aborted){job.state='failed';job.diagnostics=e instanceof ReporticError?e.diagnostics:[{code:'RENDER_FAILED',severity:'error',phase:'render',message:'Report generation failed.'}];}});\n return result(info(id));\n });\n server.registerTool('reportic_get_job',{description:'Read report job state and available artifact resources.',inputSchema:{id:z.string().uuid()},annotations:readOnly},async({id})=>result(info(id)));\n server.registerTool('reportic_cancel_job',{description:'Cancel a local report job. Repeated cancellation is safe.',inputSchema:{id:z.string().uuid()},annotations:{...readOnly,readOnlyHint:false}},async({id})=>{const j=getJob(id);if(j.state==='running'||j.state==='queued'){j.controller.abort();j.state='cancelled';}return result(info(id));});\n server.registerResource('reportic-artifact',new ResourceTemplate('reportic://artifacts/{id}/{+path}',{list:undefined}),{description:'A private generated report or its companion asset.'},async(uri,{id,path})=>{const j=getJob(String(id));if(j.state!=='succeeded'||!j.result)throw new Error('Artifact is not available.');const artifact=String(path)===j.result.filename?{...j.result,path:j.result.filename}:j.result.assets.find(a=>a.path===String(path));if(!artifact)throw new Error('Asset not found.');if(artifact.bytes.length>25_000_000)throw new Error('Artifact exceeds the MCP resource transfer limit. Use CLI or HTTP download.');return{contents:[{uri:uri.href,mimeType:artifact.mediaType,blob:Buffer.from(artifact.bytes).toString('base64')}]};});\n return server;\n}\nif(process.argv[1]&&/reportic-mcp[\\\\/](?:src|dist)[\\\\/]index\\.(?:ts|js)$/.test(process.argv[1])){const server=createReporticMcpServer();await server.connect(new StdioServerTransport());}\n"],"mappings":";;;AACA,SAAS,WAAW,wBAAwB;AAC5C,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAClB,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AAAE,QAAM,OAAO,QAAQ,IAAI,qBAAqB,CAAC;AAAE;","names":["id"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { z } from 'zod';\nimport { randomUUID } from 'node:crypto';\nimport { listComponents, getComponent, inspectTemplate, validateReport, generateReport, ReporticError } from '@x12i/reportic';\nimport type { ReportOptions, ReportResult, Diagnostic } from '@x12i/reportic';\n\nexport function createReporticMcpServer(trustedOptions:ReportOptions={}){\n const server=new McpServer({name:'reportic',version:'0.2.4'},{capabilities:{resources:{},tools:{}}});\n const jobs=new Map<string,{state:string;created:number;result?:ReportResult;diagnostics?:Diagnostic[];controller:AbortController}>();\n const result=(value:any)=>({content:[{type:'text' as const,text:JSON.stringify(value)}],structuredContent:value});\n const format=z.enum(['pdf','pptx','docx','html','markdown']);\n const input={template:z.string().max(1000000),dataSets:z.array(z.object({name:z.string(),data:z.record(z.unknown())})).default([]),variables:z.record(z.unknown()).default({}),format:format.optional(),theme:z.object({name:z.enum(['editorial','midnight','forest','minimal']).optional(),tokens:z.record(z.unknown()).optional()}).optional()};\n const readOnly={readOnlyHint:true,destructiveHint:false,idempotentHint:true,openWorldHint:false};\n function getJob(id:string){const j=jobs.get(id);if(!j||Date.now()-j.created>3600000){jobs.delete(id);throw new Error('Job was not found or has expired.');}return j;}\n function info(id:string){const j=getJob(id);return{id,state:j.state,diagnostics:j.diagnostics ?? [],...(j.result?{artifact:{uri:`reportic://artifacts/${id}/${j.result.filename}`,filename:j.result.filename,mediaType:j.result.mediaType,bytes:j.result.bytes.length,assets:j.result.assets.map(a=>({uri:`reportic://artifacts/${id}/${a.path}`,mediaType:a.mediaType}))}}:{})};}\n server.registerTool('reportic_list_components',{description:'Discover Reportic elements, schemas, and target capabilities.',inputSchema:{format:format.optional(),editability:z.enum(['strict','normal']).optional()},annotations:readOnly},async args=>result({components:listComponents(args,trustedOptions.registry)}));\n server.registerTool('reportic_get_component',{description:'Get one component authoring schema and example.',inputSchema:{type:z.string()},annotations:readOnly},async({type})=>result({component:getComponent(type,trustedOptions.registry) ?? null}));\n server.registerTool('reportic_inspect_template',{description:'Inspect Reportic source without exporting an artifact.',inputSchema:{template:input.template},annotations:readOnly},async({template})=>result(inspectTemplate(template)));\n server.registerTool('reportic_validate_report',{description:'Validate template and inputs with the same engine used by all Reportic interfaces.',inputSchema:input,annotations:readOnly},async args=>result(await validateReport(args.template,args.dataSets,args.variables,{...trustedOptions,format:args.format,theme:args.theme as any})));\n server.registerTool('reportic_generate_report',{description:'Create a private local report job. PDF is the default. Poll reportic_get_job for its authorized resource link.',inputSchema:input,annotations:{...readOnly,readOnlyHint:false,idempotentHint:false}},async args=>{\n for(const[id,j]of jobs)if(Date.now()-j.created>3600000){j.controller.abort();jobs.delete(id);}if(jobs.size>=100)throw new Error('Artifact capacity reached.');\n const id=randomUUID(),controller=new AbortController(),job:{state:string;created:number;controller:AbortController;result?:ReportResult;diagnostics?:Diagnostic[]}={state:'running',created:Date.now(),controller};jobs.set(id,job);\n void generateReport(args.template,args.dataSets,args.variables,{...trustedOptions,format:args.format,theme:args.theme as any,signal:controller.signal}).then(r=>{if(!controller.signal.aborted){job.result=r;job.diagnostics=r.diagnostics;job.state='succeeded';}}).catch(e=>{if(!controller.signal.aborted){job.state='failed';job.diagnostics=e instanceof ReporticError?e.diagnostics:[{code:'RENDER_FAILED',severity:'error',phase:'render',message:'Report generation failed.'}];}});\n return result(info(id));\n });\n server.registerTool('reportic_get_job',{description:'Read report job state and available artifact resources.',inputSchema:{id:z.string().uuid()},annotations:readOnly},async({id})=>result(info(id)));\n server.registerTool('reportic_cancel_job',{description:'Cancel a local report job. Repeated cancellation is safe.',inputSchema:{id:z.string().uuid()},annotations:{...readOnly,readOnlyHint:false}},async({id})=>{const j=getJob(id);if(j.state==='running'||j.state==='queued'){j.controller.abort();j.state='cancelled';}return result(info(id));});\n server.registerResource('reportic-artifact',new ResourceTemplate('reportic://artifacts/{id}/{+path}',{list:undefined}),{description:'A private generated report or its companion asset.'},async(uri,{id,path})=>{const j=getJob(String(id));if(j.state!=='succeeded'||!j.result)throw new Error('Artifact is not available.');const artifact=String(path)===j.result.filename?{...j.result,path:j.result.filename}:j.result.assets.find(a=>a.path===String(path));if(!artifact)throw new Error('Asset not found.');if(artifact.bytes.length>25_000_000)throw new Error('Artifact exceeds the MCP resource transfer limit. Use CLI or HTTP download.');return{contents:[{uri:uri.href,mimeType:artifact.mediaType,blob:Buffer.from(artifact.bytes).toString('base64')}]};});\n return server;\n}\nif(process.argv[1]&&/reportic-mcp[\\\\/](?:src|dist)[\\\\/]index\\.(?:ts|js)$/.test(process.argv[1])){const server=createReporticMcpServer();await server.connect(new StdioServerTransport());}\n"],"mappings":";;;AACA,SAAS,WAAW,wBAAwB;AAC5C,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAClB,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB,cAAc,iBAAiB,gBAAgB,gBAAgB,qBAAqB;AAGtG,SAAS,wBAAwB,iBAA6B,CAAC,GAAE;AACtE,QAAM,SAAO,IAAI,UAAU,EAAC,MAAK,YAAW,SAAQ,QAAO,GAAE,EAAC,cAAa,EAAC,WAAU,CAAC,GAAE,OAAM,CAAC,EAAC,EAAC,CAAC;AACnG,QAAM,OAAK,oBAAI,IAAoH;AACnI,QAAM,SAAO,CAAC,WAAa,EAAC,SAAQ,CAAC,EAAC,MAAK,QAAgB,MAAK,KAAK,UAAU,KAAK,EAAC,CAAC,GAAE,mBAAkB,MAAK;AAC/G,QAAM,SAAO,EAAE,KAAK,CAAC,OAAM,QAAO,QAAO,QAAO,UAAU,CAAC;AAC3D,QAAM,QAAM,EAAC,UAAS,EAAE,OAAO,EAAE,IAAI,GAAO,GAAE,UAAS,EAAE,MAAM,EAAE,OAAO,EAAC,MAAK,EAAE,OAAO,GAA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UAAQ,eAAa,CAAC,EAAE,OAAO,OAAM,IAAI,MAAM,4BAA4B;AAAE,UAAM,WAAS,OAAO,IAAI,MAAI,EAAE,OAAO,WAAS,EAAC,GAAG,EAAE,QAAO,MAAK,EAAE,OAAO,SAAQ,IAAE,EAAE,OAAO,OAAO,KAAK,OAAG,EAAE,SAAO,OAAO,IAAI,CAAC;AAAE,QAAG,CAAC,SAAS,OAAM,IAAI,MAAM,kBAAkB;AAAE,QAAG,SAAS,MAAM,SAAO,KAAW,OAAM,IAAI,MAAM,6EAA6E;AAAE,WAAM,EAAC,UAAS,CAAC,EAAC,KAAI,IAAI,MAAK,UAAS,SAAS,WAAU,MAAK,OAAO,KAAK,SAAS,KAAK,EAAE,SAAS,QAAQ,EAAC,CAAC,EAAC;AAAA,EAAE,CAAC;AACzuB,SAAO;AACT;AACA,IAAG,QAAQ,KAAK,CAAC,KAAG,sDAAsD,KAAK,QAAQ,KAAK,CAAC,CAAC,GAAE;AAAC,QAAM,SAAO,wBAAwB;AAAE,QAAM,OAAO,QAAQ,IAAI,qBAAqB,CAAC;AAAE;","names":["id"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x12i/reportic-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "reportic-mcp — typed, portable reporting from Markdown and data",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"reportic-mcp": "dist/index.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@x12i/reportic": "0.2.
|
|
30
|
-
"@x12i/reportic-api": "0.2.
|
|
29
|
+
"@x12i/reportic": "0.2.4",
|
|
30
|
+
"@x12i/reportic-api": "0.2.4",
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.25.0",
|
|
32
32
|
"zod": "^3.25.0"
|
|
33
33
|
}
|