@chaprola/mcp-server 1.6.2 → 1.6.3

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -829,6 +829,15 @@ server.tool("chaprola_consolidate", "Merge a .MRG file into its parent .DA, prod
829
829
  const res = await authedFetch("/consolidate", { userid: username, project, file });
830
830
  return textResult(res);
831
831
  }));
832
+ // --- Challenge (Data Health) ---
833
+ server.tool("chaprola_challenge", "Data health check: finds missing data, overdue dates, and incomplete records. Returns issues sorted by severity.", {
834
+ project: z.string().describe("Project name"),
835
+ file: z.string().describe("Data file name (without extension)"),
836
+ }, async ({ project, file }) => withBaaCheck(async () => {
837
+ const { username } = getCredentials();
838
+ const res = await authedFetch("/challenge", { userid: username, project, file });
839
+ return textResult(res);
840
+ }));
832
841
  // --- Site Keys ---
833
842
  server.tool("chaprola_create_site_key", "Create an origin-locked site key for frontend JavaScript. Site keys are restricted to specific origins and endpoints, safe to embed in public code.", {
834
843
  label: z.string().describe("Human-readable label for this key (e.g., 'poll-frontend')"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaprola/mcp-server",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "MCP server for Chaprola — agent-first data platform. Gives AI agents 46 tools for structured data storage, record CRUD, querying, schema inspection, web search, URL fetching, scheduled jobs, and execution via plain HTTP.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",