ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

Giving an AI read access to my meetings, without sending them anywhere

I wanted to ask my AI assistant things like "what did we agree in Tuesday's product sync?" or "what did I promise Ana last week?" and get an answer drawn from what was actually said. Most tools that do this put a bot in your call, upload the audio and answer from their own cloud. I took another rou

dev.toDienstag 05:19 · 24.11.6 Min. Lesezeit

Posted on Nov 24 • Originally published at abdielotzoy.github.io

I wanted to ask my AI assistant things like "what did we agree in Tuesday's product sync?" or "what did I promise Ana last week?" and get an answer drawn from what was actually said.

Most tools that do this put a bot in your call, upload the audio and answer from their own cloud. I took another route, in two parts:

claude mcp add escriba --env ESCRIBA_SELF_NAME = "Your Name" -- npx -y escriba-mcp Enter fullscreen mode Exit fullscreen mode I wrote about the extension side (automating a UI you don't own) in a previous article. This one is about the AI side: what it takes to give a model good, safe access to personal data.

The usual answer to "let an LLM answer questions over my documents" is RAG: chunk the text, embed it, store the vectors, retrieve the nearest chunks for each question.

I didn't need any of that here, and I think it's worth saying why:

If this had to work over thousands of hours of meetings across a company, retrieval would come back into the picture. For a personal archive, plain tools over files are simpler and give better answers.

They map to how you'd look for something yourself: browse, search, read. A few decisions made them work much better with a model.

The model picks a tool and fills its arguments from the description and the schema, so those are written for it:

server. registerTool ( 'search_transcripts', { description: 'Searches what was said in the saved meetings, ignoring case and accents. Returns the ' + 'matching paragraphs with file, title, date, speaker and time. `capped` is true when ' + 'there were more matches than the ones returned: narrow the search.', inputSchema: { query: z. string ( ). trim ( ). min ( 1 ). describe ( 'Text to look for' ),... filter }, annotations: { readOnlyHint: true, openWorldHint: false }, }, ( args ) => json ( searchTranscripts ( options, args ) ), ); Enter fullscreen mode Exit fullscreen mode Dates are validated with a regex in the Zod schema ( YYYY-MM-DD ), so a malformed argument fails with a message the model can correct, instead of silently matching nothing. readOnlyHint and openWorldHint: false tell the client these tools change nothing and touch nothing outside the machine, so it can call them without alarming the user.

A search for a common word across a year of meetings can return thousands of paragraphs. Dumping them all would fill the model's context and bury the answer. The search stops at 50 hits and returns capped: true, and the description tells the model what to do about it: narrow the search. In practice it adds a date range or a participant and tries again, which is exactly what you'd want.

A silent limit would be worse than no limit: the model would think it had seen everything.

Meetings in Spanish are full of names like Ibáñez or Muñoz. Users type them without accents and models sometimes do too. Every comparison folds case and accents first:

const fold = ( text ) => text. normalize ( 'NFD' ). replace ( / \ p { M } / gu, '' ). toLowerCase ( ); Enter fullscreen mode Exit fullscreen mode so ibanez finds Ibáñez.

Meet labels your own speech as "You" or "Tú", depending on its language. That breaks the most useful question of all: "what did I commit to?". With ESCRIBA_SELF_NAME set, the server replaces those labels with your name in every result and filter, without touching the files.

"Local" is easy to claim and easy to get wrong, so these are the rules the server keeps:

// A bare file name cannot leave the folder; anything with a directory part is refused. const bare = path. basename ( file ) === file && file. endsWith ( '.md' ); Enter fullscreen mode Exit fullscreen mode And one honest caveat, which is also in the README: the server keeps your data on your machine, but the AI app you connect it to receives what it reads. If that app is a cloud assistant, the transcript text goes to its provider. Giving people the full picture matters more than a nicer-sounding privacy claim.

MCP has two transports: stdio, where the client starts the server as a child process and they talk through its standard input and output, and Streamable HTTP, where the server listens on a URL. A lot of MCP examples reach for HTTP. For this server it would have been the wrong choice:

HTTP is the right transport when the server is shared or remote: one server for a team, a hosted product, or a web client like claude.ai that can't start local processes. Each of those means the transcripts live on, or travel to, someone else's machine, which is the thing this project exists to avoid. The cost of stdio is that each user needs Node.js installed, and npx keeps that to one line of configuration.

The extension has a strict rule: no build step and no runtime dependencies. Every file is a classic browser script that declares one global. The transcript parser ( transcript.js, Markdown in and out, including the Spanish field names older versions wrote) lives there.

The MCP server is a Node ES module with real dependencies (the MCP SDK and Zod). I didn't want a second parser that could drift from the first, and I didn't want to add a bundler to the extension to share one.

So the server loads the extension's parser the same way the browser does, as a classic script, with Node's vm module:

const transcript = vm. runInThisContext ( fs. readFileSync ( parserFile, 'utf8' ) + '\ntranscript', { filename: parserFile, } ); Enter fullscreen mode Exit fullscreen mode In the repository it reads../src/shared/transcript.js directly. For npm, a prepack script copies the file into the package. One source of truth, no build step on either side, and the server's dependencies stay out of the extension.

The extension saves into the browser's Downloads folder, and the server has to find it with no help from the browser. " ~/Downloads " is wrong more often than you'd think:

The lookup takes the system as a parameter ( platform, home, env, readFile, run ), so unit tests can feed it a fake registry or a fake user-dirs.dirs for each case, and anything that can't be detected falls back to the default and can be overridden with ESCRIBA_DIR.

All of it runs on Ubuntu, Windows and macOS in GitHub Actions, since the folder lookup is different on each.

An AI layer is only as good as the data it reads, and here the data comes from scraping a UI I don't control. A few things on the extension side exist so the transcripts can be trusted:

I'm a software engineer in Guatemala, building backend and AI integration work. If you're working on something similar, or hiring for it, I'd like to hear from you.

Quelle: dev.to (dev.to). Original öffnen