@2kw/ai-mcp-server 6.1.0-dev.7 → 6.1.0-dev.8

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
@@ -51,7 +51,7 @@ Get an API key from your [2kw.ai dashboard](https://2kw.ai) — paid plans start
51
51
  |----------|---------------------------|
52
52
  | **Document conversion** | Convert PDF, DOCX, XLSX, images, and 20+ formats to Markdown/text/HTML/JSON |
53
53
  | **Data extraction** | Run schema-driven extractions (sync/async), estimate tokens, re-run, inspect results |
54
- | **AI Gateway** | Chat completions and Responses (agent or direct model) through the OpenAI-compatible gateway, embeddings, list available models |
54
+ | **AI Gateway** | Chat completions and Responses (agent or direct model) through the OpenAI-compatible gateway, list available models |
55
55
  | **Transcription** | Transcribe audio (FLAC, MP3, MP4, OGG, WAV, WebM) to text, JSON, SRT, VTT |
56
56
  | **Schemas** | CRUD, versioning, labels, validation, and testing against sample documents |
57
57
  | **Prompts** | Versioned prompt management, labels, compilation, testing |
@@ -150,41 +150,6 @@ export function register(server, client) {
150
150
  };
151
151
  }
152
152
  });
153
- // ── create_embeddings ───────────────────────────────────────────────────
154
- server.tool("2kw_create_embeddings", "Create embeddings for input text through Backbone's OpenAI-compatible embeddings endpoint (POST /v1/embeddings).", {
155
- input: z.string().min(1).describe("The text to embed"),
156
- model: z.string().describe("Model identifier in 'provider/model' format"),
157
- }, async ({ input, model }) => {
158
- try {
159
- const { data } = await client.POST("/v1/embeddings", {
160
- // POST /v1/embeddings has no request body in the generated spec
161
- // (backend: "Not yet implemented"); cast, same as the untyped
162
- // convert.ts source-conversion calls in the CLI.
163
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
164
- body: { model, input },
165
- });
166
- const result = data;
167
- const items = result.data ?? [];
168
- const lines = items.map((item, i) => `[${item.index ?? i}] ${item.embedding?.length ?? 0} dimensions`);
169
- if (result.usage) {
170
- lines.push(`\n[Usage: ${result.usage.prompt_tokens} prompt / ${result.usage.total_tokens} total tokens]`);
171
- }
172
- return {
173
- content: [
174
- {
175
- type: "text",
176
- text: `Embeddings (model: ${result.model}):\n${lines.join("\n") || "(none)"}`,
177
- },
178
- ],
179
- };
180
- }
181
- catch (error) {
182
- return {
183
- content: [{ type: "text", text: formatErrorForMcp(error) }],
184
- isError: true,
185
- };
186
- }
187
- });
188
153
  // ── list_models ─────────────────────────────────────────────────────────
189
154
  server.tool("2kw_list_models", "List available AI models and providers accessible through the Backbone AI gateway.", {}, async () => {
190
155
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2kw/ai-mcp-server",
3
- "version": "6.1.0-dev.7",
3
+ "version": "6.1.0-dev.8",
4
4
  "description": "MCP server for 2kw.ai — EU-hosted AI platform: OpenAI-compatible LLM gateway, schema-driven document extraction, transcription, and cost observability. 88 tools for Claude Code, Cursor, and Windsurf.",
5
5
  "mcpName": "ai.2kw/mcp-server",
6
6
  "keywords": [