@2kw/ai-mcp-server 7.0.0-dev.9 → 7.0.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/README.md CHANGED
@@ -62,7 +62,7 @@ Get an API key from your [2kw.ai dashboard](https://2kw.ai) — paid plans start
62
62
  | **Knowledge base** | CRUD, document upload/attach/versioning, hybrid search, and citation resolution |
63
63
  | **Files** | Upload, list, download, and delete files (agent input or knowledge documents) |
64
64
  | **Memory** | List, read, write and delete your own agent memory files, forget everything; admins see member totals and erase a member |
65
- | **Observability** | Analytics (spend, quality, providers, errors), traces, billing limits |
65
+ | **Observability** | Analytics (usage, quality, providers, errors), traces, billing limits |
66
66
  | **API docs** | Browse the platform API documentation by section |
67
67
 
68
68
  ## Why 2kw.ai
@@ -5,7 +5,7 @@ const dateRange = {
5
5
  endDate: z.string().optional().describe("End date (YYYY-MM-DD)"),
6
6
  };
7
7
  export function register(server, client) {
8
- server.tool("2kw_analytics_summary", "Cross-surface summary for the org: total operations, spend, p95 duration, and per-surface breakdown (extractions, conversions, chat, transcription, experiments). Default range is the trailing 30 days.", dateRange, async (params) => {
8
+ server.tool("2kw_analytics_summary", "Cross-surface summary for the org: total operations, tokens, p95 duration, and per-surface breakdown (extractions, conversions, chat, transcription, experiments). Default range is the trailing 30 days.", dateRange, async (params) => {
9
9
  try {
10
10
  const { data } = await client.GET("/v1/analytics/summary", {
11
11
  params: { query: { startDate: params.startDate, endDate: params.endDate } },
@@ -49,7 +49,7 @@ export function register(server, client) {
49
49
  };
50
50
  }
51
51
  });
52
- server.tool("2kw_analytics_schemas", "Top schemas by extraction count with success rate, token usage, and cost (extraction surface only).", {
52
+ server.tool("2kw_analytics_schemas", "Top schemas by extraction count with success rate and token usage (extraction surface only).", {
53
53
  ...dateRange,
54
54
  limit: z.number().int().min(1).max(100).optional().describe("Max rows (default 10)"),
55
55
  }, async (params) => {
@@ -74,7 +74,7 @@ export function register(server, client) {
74
74
  };
75
75
  }
76
76
  });
77
- server.tool("2kw_analytics_providers", "Provider usage breakdown (extraction surface only): counts, success rate, tokens, cost, avg duration.", dateRange, async (params) => {
77
+ server.tool("2kw_analytics_providers", "Provider usage breakdown (extraction surface only): counts, success rate, tokens, avg duration.", dateRange, async (params) => {
78
78
  try {
79
79
  const { data } = await client.GET("/v1/analytics/providers", {
80
80
  params: { query: { startDate: params.startDate, endDate: params.endDate } },
@@ -43,10 +43,10 @@ export function register(server, client) {
43
43
  };
44
44
  }
45
45
  });
46
- server.tool("2kw_billing_has_available", "Check whether the org has enough available capacity for a metered resource (extraction credits, conversion credits, gateway tokens) before consuming it.", {
46
+ server.tool("2kw_billing_has_available", "Check whether the org has enough usage left for a metered action, such as an extraction, a document conversion or a gateway call, before running it. Returns a single boolean answer.", {
47
47
  type: z
48
48
  .enum(["EXTRACTION_CREDITS", "CONVERSION_CREDITS", "GATEWAY_TOKENS"])
49
- .describe("Resource type to check"),
49
+ .describe("Metered action to check: EXTRACTION_CREDITS for an extraction, CONVERSION_CREDITS for a document conversion, GATEWAY_TOKENS for a gateway call"),
50
50
  required: z.number().optional().describe("Amount required (server defaults to 1)"),
51
51
  }, async (params) => {
52
52
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2kw/ai-mcp-server",
3
- "version": "7.0.0-dev.9",
3
+ "version": "7.0.0",
4
4
  "description": "MCP server for 2kw.ai — EU-hosted AI platform: OpenAI-compatible LLM gateway, schema-driven document extraction, transcription, agents with a knowledge base, and cost observability. 158 tools for Claude Code, Cursor, and Windsurf.",
5
5
  "mcpName": "ai.2kw/mcp-server",
6
6
  "keywords": [