@x12i/reportic-mcp 0.0.0-stage → 0.2.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Reportic contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
- # Temporary Holding Version
1
+ # @x12i/reportic-mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ reportic-mcp — typed, portable reporting from Markdown and data.
4
+
5
+ ESM package with TypeScript declarations. Requires Node.js 22 or later; Reportic format 0.2 and compatible Reportic 0.2.x workspace packages.
6
+
7
+ See the Reportic workspace README and docs/studio.md for setup, SDK examples, the editor, catalog, host identity integration, CLI, HTTP, MCP, and operational limits.
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
+ import { ReportOptions } from '@x12i/reportic';
4
+
5
+ declare function createReporticMcpServer(trustedOptions?: ReportOptions): McpServer;
6
+
7
+ export { createReporticMcpServer };
package/dist/index.js ADDED
@@ -0,0 +1,80 @@
1
+ #!/usr/bin/env node
2
+
3
+ // packages/reportic-mcp/src/index.ts
4
+ import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
5
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
+ import { z } from "zod";
7
+ import { randomUUID } from "crypto";
8
+ import { listComponents, getComponent, inspectTemplate, validateReport, generateReport, ReporticError } from "@x12i/reportic";
9
+ function createReporticMcpServer(trustedOptions = {}) {
10
+ const server = new McpServer({ name: "reportic", version: "0.2.0" }, { capabilities: { resources: {}, tools: {} } });
11
+ const jobs = /* @__PURE__ */ new Map();
12
+ const result = (value) => ({ content: [{ type: "text", text: JSON.stringify(value) }], structuredContent: value });
13
+ const format = z.enum(["pdf", "pptx", "docx", "html", "markdown"]);
14
+ const input = { template: z.string().max(1e6), 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() };
15
+ const readOnly = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false };
16
+ function getJob(id) {
17
+ const j = jobs.get(id);
18
+ if (!j || Date.now() - j.created > 36e5) {
19
+ jobs.delete(id);
20
+ throw new Error("Job was not found or has expired.");
21
+ }
22
+ return j;
23
+ }
24
+ function info(id) {
25
+ const j = getJob(id);
26
+ 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 })) } } : {} };
27
+ }
28
+ 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) }));
29
+ 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 }));
30
+ server.registerTool("reportic_inspect_template", { description: "Inspect Reportic source without exporting an artifact.", inputSchema: { template: input.template }, annotations: readOnly }, async ({ template }) => result(inspectTemplate(template)));
31
+ 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 })));
32
+ 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) => {
33
+ for (const [id2, j] of jobs) if (Date.now() - j.created > 36e5) {
34
+ j.controller.abort();
35
+ jobs.delete(id2);
36
+ }
37
+ if (jobs.size >= 100) throw new Error("Artifact capacity reached.");
38
+ const id = randomUUID(), controller = new AbortController(), job = { state: "running", created: Date.now(), controller };
39
+ jobs.set(id, job);
40
+ void generateReport(args.template, args.dataSets, args.variables, { ...trustedOptions, format: args.format, theme: args.theme, signal: controller.signal }).then((r) => {
41
+ if (!controller.signal.aborted) {
42
+ job.result = r;
43
+ job.diagnostics = r.diagnostics;
44
+ job.state = "succeeded";
45
+ }
46
+ }).catch((e) => {
47
+ if (!controller.signal.aborted) {
48
+ job.state = "failed";
49
+ job.diagnostics = e instanceof ReporticError ? e.diagnostics : [{ code: "RENDER_FAILED", severity: "error", phase: "render", message: "Report generation failed." }];
50
+ }
51
+ });
52
+ return result(info(id));
53
+ });
54
+ 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)));
55
+ 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 }) => {
56
+ const j = getJob(id);
57
+ if (j.state === "running" || j.state === "queued") {
58
+ j.controller.abort();
59
+ j.state = "cancelled";
60
+ }
61
+ return result(info(id));
62
+ });
63
+ server.registerResource("reportic-artifact", new ResourceTemplate("reportic://artifacts/{id}/{+path}", { list: void 0 }), { description: "A private generated report or its companion asset." }, async (uri, { id, path }) => {
64
+ const j = getJob(String(id));
65
+ if (j.state !== "succeeded" || !j.result) throw new Error("Artifact is not available.");
66
+ const artifact = String(path) === j.result.filename ? { ...j.result, path: j.result.filename } : j.result.assets.find((a) => a.path === String(path));
67
+ if (!artifact) throw new Error("Asset not found.");
68
+ if (artifact.bytes.length > 25e6) throw new Error("Artifact exceeds the MCP resource transfer limit. Use CLI or HTTP download.");
69
+ return { contents: [{ uri: uri.href, mimeType: artifact.mediaType, blob: Buffer.from(artifact.bytes).toString("base64") }] };
70
+ });
71
+ return server;
72
+ }
73
+ if (process.argv[1] && /reportic-mcp[\\/](?:src|dist)[\\/]index\.(?:ts|js)$/.test(process.argv[1])) {
74
+ const server = createReporticMcpServer();
75
+ await server.connect(new StdioServerTransport());
76
+ }
77
+ export {
78
+ createReporticMcpServer
79
+ };
80
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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.0'},{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,GAAE,MAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAE,WAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAE,QAAO,OAAO,SAAS,GAAE,OAAM,EAAE,OAAO,EAAC,MAAK,EAAE,KAAK,CAAC,aAAY,YAAW,UAAS,SAAS,CAAC,EAAE,SAAS,GAAE,QAAO,EAAE,OAAO,EAA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M,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,34 @@
1
1
  {
2
2
  "name": "@x12i/reportic-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "description": "reportic-mcp — typed, portable reporting from Markdown and data",
6
+ "license": "MIT",
7
+ "engines": {
8
+ "node": ">=22"
9
+ },
10
+ "main": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md"
21
+ ],
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "bin": {
26
+ "reportic-mcp": "dist/index.js"
27
+ },
28
+ "dependencies": {
29
+ "@x12i/reportic": "0.2.0",
30
+ "@x12i/reportic-api": "0.2.0",
31
+ "@modelcontextprotocol/sdk": "^1.25.0",
32
+ "zod": "^3.25.0"
33
+ }
34
+ }