@chaprola/mcp-server 1.11.2 → 1.12.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/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -456,8 +456,9 @@ server.tool("chaprola_run", "Execute a compiled .PR program. Use async:true for
|
|
|
456
456
|
async_exec: z.boolean().optional().describe("If true, run asynchronously and return job_id for polling"),
|
|
457
457
|
secondary_files: z.array(z.string()).optional().describe("Secondary files to make available"),
|
|
458
458
|
nophi: z.boolean().optional().describe("If true, obfuscate PHI-flagged fields during execution"),
|
|
459
|
+
params: z.string().optional().describe('JSON object of named params for PARAM.name fields, e.g. {"video_id": "V-AT"}. Read in programs via MOVE PARAM.name or LET Rn = PARAM.name.'),
|
|
459
460
|
userid: z.string().optional().describe("Project owner's username. Required when accessing a shared project where you are a writer. Defaults to the authenticated user."),
|
|
460
|
-
}, async ({ project, name, primary_file, record, async_exec, secondary_files, nophi, userid }) => withBaaCheck(async () => {
|
|
461
|
+
}, async ({ project, name, primary_file, record, async_exec, secondary_files, nophi, params, userid }) => withBaaCheck(async () => {
|
|
461
462
|
const { username } = getCredentials();
|
|
462
463
|
const body = { userid: userid || username, project, name };
|
|
463
464
|
if (primary_file)
|
|
@@ -470,6 +471,8 @@ server.tool("chaprola_run", "Execute a compiled .PR program. Use async:true for
|
|
|
470
471
|
body.secondary_files = secondary_files;
|
|
471
472
|
if (nophi !== undefined)
|
|
472
473
|
body.nophi = nophi;
|
|
474
|
+
if (params)
|
|
475
|
+
body.params = JSON.parse(params);
|
|
473
476
|
const res = await authedFetch("/run", body);
|
|
474
477
|
return textResult(res);
|
|
475
478
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaprola/mcp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "MCP server for Chaprola — agent-first data platform. Gives AI agents tools for structured data storage, record CRUD, querying, schema inspection, documentation lookup, web search, URL fetching, scheduled jobs, scoped site keys, and execution via plain HTTP.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|