@adatechnology/audio-transcription-mcp 0.1.0-rc.2
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/CLAUDE.md +18 -0
- package/README.md +51 -0
- package/dist/chunk-USVPIM64.js +220 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +21 -0
- package/dist/server.d.ts +36 -0
- package/dist/server.js +7 -0
- package/package.json +52 -0
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CLAUDE.md — @adatechnology/audio-transcription-mcp
|
|
2
|
+
|
|
3
|
+
Servidor MCP (stdio) sobre o engine local do `@adatechnology/audio-transcription-provider`. Duas ferramentas: `transcribe_audio` e `check_transcription_setup`.
|
|
4
|
+
|
|
5
|
+
## O que um agente precisa saber para não errar
|
|
6
|
+
|
|
7
|
+
- **`filePath` é absoluto e é da máquina do servidor**, não do cliente. Caminho relativo é recusado de propósito: não existe cwd compartilhado entre cliente e servidor MCP.
|
|
8
|
+
- **A transcrição é síncrona e demora.** Ordem de grandeza: ~25s para 7 minutos de áudio em GPU de laptop, bem mais em CPU de container. Não é travamento.
|
|
9
|
+
- **Áudio sem fala devolve `(áudio sem fala detectável)`**, não string vazia — string vazia deixaria o cliente sem saber se transcreveu nada ou se a ferramenta quebrou.
|
|
10
|
+
- **Falhou? Chame `check_transcription_setup` antes de investigar o áudio.** Três dependências externas (whisper.cpp, ffmpeg, modelo ggml) e a mensagem de subprocesso não diz qual faltou.
|
|
11
|
+
- **O texto já vem sem loop de repetição** — o provider aplica `collapseRepetitions`. Não pós-processe de novo.
|
|
12
|
+
|
|
13
|
+
## Armadilhas de implementação
|
|
14
|
+
|
|
15
|
+
- **Nada além do protocolo pode ir para o stdout.** O transporte é stdio: um `console.log` corrompe a sessão. Diagnóstico vai para stderr (`main.ts`).
|
|
16
|
+
- **`whisper-cli --version` não é teste de existência.** Ele inicializa o backend de GPU antes de responder (8,4s no Metal) e sai com código não-zero. Só `ENOENT` significa ausência — qualquer outra falha significa que o binário está lá.
|
|
17
|
+
- **Contenção de caminho compara depois de `resolve`**, e com `sep` no fim: sem isso `../` passa e `/audios-privados` casa com a raiz `/audios`. Há teste para os dois casos.
|
|
18
|
+
- **Configuração é validada no boot** (`parseEnvironment`), com a variável faltante nomeada na mensagem. Um servidor MCP mal configurado falha em silêncio no cliente; este falha ao iniciar.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @adatechnology/audio-transcription-mcp
|
|
2
|
+
|
|
3
|
+
Servidor MCP que expõe transcrição de áudio por Whisper **rodando na própria máquina**: sem chave de API, sem upload, sem custo por minuto. É um invólucro fino sobre o engine local do [`@adatechnology/audio-transcription-provider`](../../backend/audio-transcription-provider).
|
|
4
|
+
|
|
5
|
+
## Pré-requisitos
|
|
6
|
+
|
|
7
|
+
Três coisas fora do processo: o binário `whisper-cli` (whisper.cpp), o `ffmpeg` e um modelo ggml no disco.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
brew install whisper-cpp ffmpeg # macOS
|
|
11
|
+
curl -L -o ~/models/ggml-large-v3-turbo.bin \
|
|
12
|
+
https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo.bin
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Use `large-v3-turbo` (~1.5GB). Modelos menores trocam palavras e entram em loop de repetição em pt-BR — o motivo está detalhado no README do provider.
|
|
16
|
+
|
|
17
|
+
## Registrar no Claude Code
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
claude mcp add ada-transcription -- \
|
|
21
|
+
bunx @adatechnology/audio-transcription-mcp
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Com as variáveis de ambiente:
|
|
25
|
+
|
|
26
|
+
| Variável | Obrigatória | Padrão | Para quê |
|
|
27
|
+
|---|---|---|---|
|
|
28
|
+
| `WHISPER_MODEL_PATH` | ✅ | — | caminho do modelo ggml |
|
|
29
|
+
| `WHISPER_BINARY_PATH` | | `whisper-cli` | binário do whisper.cpp |
|
|
30
|
+
| `FFMPEG_PATH` | | `ffmpeg` | conversão para WAV 16kHz mono |
|
|
31
|
+
| `WHISPER_THREADS` | | do whisper.cpp | threads na inferência |
|
|
32
|
+
| `TRANSCRIPTION_LANGUAGE` | | `pt` | idioma padrão |
|
|
33
|
+
| `TRANSCRIPTION_ALLOWED_ROOT` | | — | limita a leitura a uma pasta |
|
|
34
|
+
|
|
35
|
+
**Sobre `TRANSCRIPTION_ALLOWED_ROOT`:** quem escolhe o caminho do arquivo é o modelo, não uma pessoa digitando. Sem essa variável o servidor lê qualquer arquivo que o usuário do processo consiga ler. Aponte para a pasta de áudios e o problema deixa de existir.
|
|
36
|
+
|
|
37
|
+
## Ferramentas
|
|
38
|
+
|
|
39
|
+
**`transcribe_audio`** — `{ filePath, languageHint? }` → texto. Caminho absoluto, na máquina que roda o servidor. Aceita m4a, mp3, ogg/opus, wav, flac, webm, amr e aac.
|
|
40
|
+
|
|
41
|
+
**`check_transcription_setup`** — sem argumentos. Diz qual dos três pré-requisitos falta. Use quando `transcribe_audio` falhar, antes de investigar o áudio.
|
|
42
|
+
|
|
43
|
+
## Medição
|
|
44
|
+
|
|
45
|
+
Áudio real de reunião gravado por celular (7min38s, m4a), via MCP de ponta a ponta, Apple M3 Pro com Metal: **23,3s**, 4.964 caracteres, sem loop de repetição. Em CPU de container espere bem mais lento.
|
|
46
|
+
|
|
47
|
+
## Testes
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
bun test
|
|
51
|
+
```
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
|
|
5
|
+
// src/server.ts
|
|
6
|
+
import { readFile } from "fs/promises";
|
|
7
|
+
import { createWhisperLocalTranscriber } from "@adatechnology/audio-transcription-provider/whisper-local";
|
|
8
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
9
|
+
import { z as z2 } from "zod";
|
|
10
|
+
|
|
11
|
+
// src/audio-transcription-mcp.constant.ts
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
var SERVER_NAME = "ada-audio-transcription";
|
|
14
|
+
var SERVER_VERSION = "0.1.0-rc.1";
|
|
15
|
+
var DEFAULT_LANGUAGE = "pt";
|
|
16
|
+
var MAX_AUDIO_BYTES = 512 * 1024 * 1024;
|
|
17
|
+
var MIME_BY_EXTENSION = Object.freeze({
|
|
18
|
+
m4a: "audio/mp4",
|
|
19
|
+
mp4: "audio/mp4",
|
|
20
|
+
mp3: "audio/mpeg",
|
|
21
|
+
ogg: "audio/ogg",
|
|
22
|
+
opus: "audio/ogg",
|
|
23
|
+
wav: "audio/wav",
|
|
24
|
+
flac: "audio/flac",
|
|
25
|
+
webm: "audio/webm",
|
|
26
|
+
amr: "audio/amr",
|
|
27
|
+
aac: "audio/aac"
|
|
28
|
+
});
|
|
29
|
+
var environmentSchema = z.object({
|
|
30
|
+
WHISPER_MODEL_PATH: z.string().min(1, "WHISPER_MODEL_PATH \xE9 obrigat\xF3rio (caminho do modelo ggml)."),
|
|
31
|
+
WHISPER_BINARY_PATH: z.string().min(1).default("whisper-cli"),
|
|
32
|
+
FFMPEG_PATH: z.string().min(1).default("ffmpeg"),
|
|
33
|
+
WHISPER_THREADS: z.coerce.number().int().positive().optional(),
|
|
34
|
+
TRANSCRIPTION_LANGUAGE: z.string().min(2).default(DEFAULT_LANGUAGE),
|
|
35
|
+
/**
|
|
36
|
+
* Sem isto o servidor lê qualquer arquivo que o usuário do processo conseguir ler, e quem manda o
|
|
37
|
+
* caminho é o modelo. Num servidor local isso costuma ser aceitável; apontar para uma pasta de
|
|
38
|
+
* áudios torna aceitável sempre.
|
|
39
|
+
*/
|
|
40
|
+
TRANSCRIPTION_ALLOWED_ROOT: z.string().min(1).optional()
|
|
41
|
+
});
|
|
42
|
+
function parseEnvironment(source) {
|
|
43
|
+
const parsed = environmentSchema.safeParse(source);
|
|
44
|
+
if (!parsed.success) {
|
|
45
|
+
const details = parsed.error.issues.map((issue) => `${issue.path.join(".")}: ${issue.message}`).join("; ");
|
|
46
|
+
throw new Error(`Configura\xE7\xE3o inv\xE1lida do ${SERVER_NAME} \u2014 ${details}`);
|
|
47
|
+
}
|
|
48
|
+
return Object.freeze(parsed.data);
|
|
49
|
+
}
|
|
50
|
+
__name(parseEnvironment, "parseEnvironment");
|
|
51
|
+
function mimeTypeFor(filePath) {
|
|
52
|
+
const extension = filePath.split(".").pop()?.toLowerCase() ?? "";
|
|
53
|
+
return MIME_BY_EXTENSION[extension] ?? "application/octet-stream";
|
|
54
|
+
}
|
|
55
|
+
__name(mimeTypeFor, "mimeTypeFor");
|
|
56
|
+
|
|
57
|
+
// src/check-setup.util.ts
|
|
58
|
+
import { execFile } from "child_process";
|
|
59
|
+
import { stat } from "fs/promises";
|
|
60
|
+
import { promisify } from "util";
|
|
61
|
+
var execFileAsync = promisify(execFile);
|
|
62
|
+
var VERSION_TIMEOUT_MS = 3e4;
|
|
63
|
+
async function checkSetup({ binaryPath, ffmpegPath, modelPath }) {
|
|
64
|
+
return Object.freeze(await Promise.all([
|
|
65
|
+
checkBinary("whisper.cpp", binaryPath, [
|
|
66
|
+
"--version"
|
|
67
|
+
]),
|
|
68
|
+
checkBinary("ffmpeg", ffmpegPath, [
|
|
69
|
+
"-version"
|
|
70
|
+
]),
|
|
71
|
+
checkModel(modelPath)
|
|
72
|
+
]));
|
|
73
|
+
}
|
|
74
|
+
__name(checkSetup, "checkSetup");
|
|
75
|
+
async function checkBinary(name, path, args) {
|
|
76
|
+
try {
|
|
77
|
+
await execFileAsync(path, [
|
|
78
|
+
...args
|
|
79
|
+
], {
|
|
80
|
+
timeout: VERSION_TIMEOUT_MS
|
|
81
|
+
});
|
|
82
|
+
return Object.freeze({
|
|
83
|
+
name,
|
|
84
|
+
ok: true,
|
|
85
|
+
detail: `encontrado em "${path}"`
|
|
86
|
+
});
|
|
87
|
+
} catch (error) {
|
|
88
|
+
if (error.code === "ENOENT") {
|
|
89
|
+
return Object.freeze({
|
|
90
|
+
name,
|
|
91
|
+
ok: false,
|
|
92
|
+
detail: `n\xE3o encontrado em "${path}"`
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return Object.freeze({
|
|
96
|
+
name,
|
|
97
|
+
ok: true,
|
|
98
|
+
detail: `encontrado em "${path}" (n\xE3o respondeu a ${args.join(" ")})`
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
__name(checkBinary, "checkBinary");
|
|
103
|
+
async function checkModel(modelPath) {
|
|
104
|
+
const stats = await stat(modelPath).catch(() => void 0);
|
|
105
|
+
if (!stats?.isFile()) return Object.freeze({
|
|
106
|
+
name: "modelo ggml",
|
|
107
|
+
ok: false,
|
|
108
|
+
detail: `n\xE3o encontrado em "${modelPath}"`
|
|
109
|
+
});
|
|
110
|
+
const megabytes = Math.round(stats.size / 1024 / 1024);
|
|
111
|
+
const isSuspiciouslySmall = megabytes < 400;
|
|
112
|
+
return Object.freeze({
|
|
113
|
+
name: "modelo ggml",
|
|
114
|
+
ok: true,
|
|
115
|
+
detail: isSuspiciouslySmall ? `${megabytes}MB em "${modelPath}" \u2014 pequeno demais para pt-BR confi\xE1vel; prefira large-v3-turbo (~1.5GB)` : `${megabytes}MB em "${modelPath}"`
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
__name(checkModel, "checkModel");
|
|
119
|
+
|
|
120
|
+
// src/resolve-audio-path.util.ts
|
|
121
|
+
import { stat as stat2 } from "fs/promises";
|
|
122
|
+
import { isAbsolute, resolve, sep } from "path";
|
|
123
|
+
async function resolveAudioPath({ filePath, allowedRoot }) {
|
|
124
|
+
if (!isAbsolute(filePath)) {
|
|
125
|
+
throw new Error(`Informe o caminho absoluto do \xE1udio \u2014 recebido "${filePath}".`);
|
|
126
|
+
}
|
|
127
|
+
const resolvedPath = resolve(filePath);
|
|
128
|
+
if (allowedRoot) {
|
|
129
|
+
const resolvedRoot = resolve(allowedRoot);
|
|
130
|
+
const isInsideRoot = resolvedPath === resolvedRoot || resolvedPath.startsWith(resolvedRoot + sep);
|
|
131
|
+
if (!isInsideRoot) throw new Error(`Caminho fora da pasta permitida (${resolvedRoot}).`);
|
|
132
|
+
}
|
|
133
|
+
const stats = await stat2(resolvedPath).catch(() => void 0);
|
|
134
|
+
if (!stats) throw new Error(`Arquivo n\xE3o encontrado: ${resolvedPath}`);
|
|
135
|
+
if (!stats.isFile()) throw new Error(`N\xE3o \xE9 um arquivo: ${resolvedPath}`);
|
|
136
|
+
if (stats.size === 0) throw new Error(`Arquivo vazio: ${resolvedPath}`);
|
|
137
|
+
if (stats.size > MAX_AUDIO_BYTES) {
|
|
138
|
+
throw new Error(`Arquivo de ${Math.round(stats.size / 1024 / 1024)}MB excede o limite de ${MAX_AUDIO_BYTES / 1024 / 1024}MB.`);
|
|
139
|
+
}
|
|
140
|
+
return resolvedPath;
|
|
141
|
+
}
|
|
142
|
+
__name(resolveAudioPath, "resolveAudioPath");
|
|
143
|
+
|
|
144
|
+
// src/server.ts
|
|
145
|
+
function createTranscriptionMcpServer(environment) {
|
|
146
|
+
const server = new McpServer({
|
|
147
|
+
name: SERVER_NAME,
|
|
148
|
+
version: SERVER_VERSION
|
|
149
|
+
});
|
|
150
|
+
const transcriber = createWhisperLocalTranscriber({
|
|
151
|
+
modelPath: environment.WHISPER_MODEL_PATH,
|
|
152
|
+
binaryPath: environment.WHISPER_BINARY_PATH,
|
|
153
|
+
ffmpegPath: environment.FFMPEG_PATH,
|
|
154
|
+
languageHint: environment.TRANSCRIPTION_LANGUAGE,
|
|
155
|
+
...environment.WHISPER_THREADS ? {
|
|
156
|
+
threads: environment.WHISPER_THREADS
|
|
157
|
+
} : {}
|
|
158
|
+
});
|
|
159
|
+
server.registerTool("transcribe_audio", {
|
|
160
|
+
description: "Transcreve um arquivo de \xE1udio local para texto usando Whisper (whisper.cpp) na pr\xF3pria m\xE1quina. Sem chave de API e sem enviar o \xE1udio para fora. Aceita m4a, mp3, ogg/opus, wav, flac, webm, amr e aac.",
|
|
161
|
+
inputSchema: z2.object({
|
|
162
|
+
filePath: z2.string().describe("Caminho absoluto do arquivo de \xE1udio na m\xE1quina que roda o servidor"),
|
|
163
|
+
languageHint: z2.string().optional().describe("Idioma falado em ISO 639-1 (ex: 'pt', 'en'). Padr\xE3o: o configurado no servidor")
|
|
164
|
+
})
|
|
165
|
+
}, async ({ filePath, languageHint }) => {
|
|
166
|
+
const resolvedPath = await resolveAudioPath({
|
|
167
|
+
filePath,
|
|
168
|
+
...environment.TRANSCRIPTION_ALLOWED_ROOT ? {
|
|
169
|
+
allowedRoot: environment.TRANSCRIPTION_ALLOWED_ROOT
|
|
170
|
+
} : {}
|
|
171
|
+
});
|
|
172
|
+
const result = await transcriber.transcribe({
|
|
173
|
+
buffer: await readFile(resolvedPath),
|
|
174
|
+
mimeType: mimeTypeFor(resolvedPath),
|
|
175
|
+
...languageHint ? {
|
|
176
|
+
languageHint
|
|
177
|
+
} : {}
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
content: [
|
|
181
|
+
{
|
|
182
|
+
type: "text",
|
|
183
|
+
text: result.text || "(\xE1udio sem fala detect\xE1vel)"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
};
|
|
187
|
+
});
|
|
188
|
+
server.registerTool("check_transcription_setup", {
|
|
189
|
+
description: "Verifica se o whisper.cpp, o ffmpeg e o modelo ggml est\xE3o dispon\xEDveis para o servidor. Use quando transcribe_audio falhar, antes de investigar o \xE1udio.",
|
|
190
|
+
inputSchema: z2.object({})
|
|
191
|
+
}, async () => {
|
|
192
|
+
const checks = await checkSetup({
|
|
193
|
+
binaryPath: environment.WHISPER_BINARY_PATH,
|
|
194
|
+
ffmpegPath: environment.FFMPEG_PATH,
|
|
195
|
+
modelPath: environment.WHISPER_MODEL_PATH
|
|
196
|
+
});
|
|
197
|
+
const lines = checks.map((check) => `${check.ok ? "\u2705" : "\u274C"} ${check.name}: ${check.detail}`);
|
|
198
|
+
const isReady = checks.every((check) => check.ok);
|
|
199
|
+
return {
|
|
200
|
+
content: [
|
|
201
|
+
{
|
|
202
|
+
type: "text",
|
|
203
|
+
text: [
|
|
204
|
+
isReady ? "Pronto para transcrever." : "Faltam pr\xE9-requisitos:",
|
|
205
|
+
...lines
|
|
206
|
+
].join("\n")
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
};
|
|
210
|
+
});
|
|
211
|
+
return server;
|
|
212
|
+
}
|
|
213
|
+
__name(createTranscriptionMcpServer, "createTranscriptionMcpServer");
|
|
214
|
+
|
|
215
|
+
export {
|
|
216
|
+
__name,
|
|
217
|
+
SERVER_NAME,
|
|
218
|
+
parseEnvironment,
|
|
219
|
+
createTranscriptionMcpServer
|
|
220
|
+
};
|
package/dist/main.d.ts
ADDED
package/dist/main.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
SERVER_NAME,
|
|
4
|
+
__name,
|
|
5
|
+
createTranscriptionMcpServer,
|
|
6
|
+
parseEnvironment
|
|
7
|
+
} from "./chunk-USVPIM64.js";
|
|
8
|
+
|
|
9
|
+
// src/main.ts
|
|
10
|
+
import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
|
|
11
|
+
async function main() {
|
|
12
|
+
const environment = parseEnvironment(process.env);
|
|
13
|
+
const server = createTranscriptionMcpServer(environment);
|
|
14
|
+
await server.connect(new StdioServerTransport());
|
|
15
|
+
console.error(`[${SERVER_NAME}] pronto (modelo: ${environment.WHISPER_MODEL_PATH})`);
|
|
16
|
+
}
|
|
17
|
+
__name(main, "main");
|
|
18
|
+
main().catch((error) => {
|
|
19
|
+
console.error(`[${SERVER_NAME}] falhou ao iniciar:`, error instanceof Error ? error.message : error);
|
|
20
|
+
process.exit(1);
|
|
21
|
+
});
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/server';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2026 Ada Technology. MIT License.
|
|
6
|
+
*
|
|
7
|
+
* Configuração do servidor, validada no boot.
|
|
8
|
+
*
|
|
9
|
+
* Um servidor MCP falha em silêncio quando a configuração está errada: o cliente só vê a ferramenta
|
|
10
|
+
* devolver erro, sem pista de qual variável faltou. Validar aqui, com mensagem nomeando a variável,
|
|
11
|
+
* transforma isso num erro de inicialização que aparece no log do cliente MCP.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
declare const environmentSchema: z.ZodObject<{
|
|
15
|
+
WHISPER_MODEL_PATH: z.ZodString;
|
|
16
|
+
WHISPER_BINARY_PATH: z.ZodDefault<z.ZodString>;
|
|
17
|
+
FFMPEG_PATH: z.ZodDefault<z.ZodString>;
|
|
18
|
+
WHISPER_THREADS: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
19
|
+
TRANSCRIPTION_LANGUAGE: z.ZodDefault<z.ZodString>;
|
|
20
|
+
TRANSCRIPTION_ALLOWED_ROOT: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
type ServerEnvironment = z.infer<typeof environmentSchema>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Copyright (c) 2026 Ada Technology. MIT License.
|
|
26
|
+
*
|
|
27
|
+
* Servidor MCP sobre o engine local do `@adatechnology/audio-transcription-provider`.
|
|
28
|
+
*
|
|
29
|
+
* O ganho é a ausência de conta: nenhuma chave de API, nenhum upload, nenhum custo por minuto — o
|
|
30
|
+
* áudio não sai da máquina. Em troca, exige whisper.cpp, ffmpeg e o modelo ggml instalados, e é por
|
|
31
|
+
* isso que a ferramenta de diagnóstico faz parte da superfície e não é um extra.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
declare function createTranscriptionMcpServer(environment: ServerEnvironment): McpServer;
|
|
35
|
+
|
|
36
|
+
export { createTranscriptionMcpServer };
|
package/dist/server.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@adatechnology/audio-transcription-mcp",
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
|
+
"description": "MCP server exposing local Whisper transcription (whisper.cpp) as a tool — no API key, no upload",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/main.js",
|
|
7
|
+
"types": "dist/main.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"audio-transcription-mcp": "dist/main.js"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/server.d.ts",
|
|
14
|
+
"import": "./dist/server.js",
|
|
15
|
+
"default": "./dist/server.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"CLAUDE.md"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"mcp",
|
|
24
|
+
"transcription",
|
|
25
|
+
"whisper",
|
|
26
|
+
"speech-to-text",
|
|
27
|
+
"pt-br"
|
|
28
|
+
],
|
|
29
|
+
"author": "Ada Technology",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@modelcontextprotocol/server": "^2.0.0",
|
|
36
|
+
"zod": "^4.4.3",
|
|
37
|
+
"@adatechnology/audio-transcription-provider": "0.1.0-rc.2"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/bun": "1.3.14",
|
|
41
|
+
"tsup": "^8.5.1",
|
|
42
|
+
"typescript": "^5.9.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsup",
|
|
46
|
+
"check": "tsc --noEmit",
|
|
47
|
+
"start": "bun src/main.ts",
|
|
48
|
+
"test": "bun test",
|
|
49
|
+
"format": "prettier --write package.json src tsconfig.json tsup.config.ts",
|
|
50
|
+
"format:check": "prettier --check package.json src tsconfig.json tsup.config.ts"
|
|
51
|
+
}
|
|
52
|
+
}
|