Agent-Native Calendar
Agent-Native Google Calendar - manage events, sync, and public booking
作者提供的说明(英文原文)
Read tables, figures and dates out of a PDF, Word file, CSV or paste, with a verdict on the reading.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
TRUECOPY_MCP_ROOT你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"truecopy": {
"command": "npx",
"args": [
"-y",
"truecopy",
"mcp"
],
"env": {
"TRUECOPY_MCP_ROOT": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add truecopy --env TRUECOPY_MCP_ROOT=your-value -- npx -y truecopy mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"truecopy": {
"command": "npx",
"args": [
"-y",
"truecopy",
"mcp"
],
"env": {
"TRUECOPY_MCP_ROOT": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"truecopy": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"truecopy",
"mcp"
],
"env": {
"TRUECOPY_MCP_ROOT": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
TRUECOPY_MCP_ROOT env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 truecopydev 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(2.0.22)于前天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Agent-Native Google Calendar - manage events, sync, and public booking
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Extract tables from a PDF in TypeScript, and know when the extraction is wrong.
Turn a document into rows, and refuse the readings you cannot trust. A PDF, a Word or OpenDocument file, a paste, a CSV, an OCR page: one engine reads all of them.
A parser that returns a plausible-looking table from a document it misread is worse than one that returns nothing, because nobody checks a table that looks right. truecopy is the pipeline around whichever reader you write: the door bytes come through, the checks that catch a wrong reading, a way to see what it decided, and a conformance kit that goes red the day the reading stops being honest.
npx -y -p truecopy -p pdfjs-dist truecopy a-statement.pdf
No install, no project, no line of code. The engine is named on the line because it is an optional peer dependency and npm does not fetch one on its own: a project that only ever reads a paste or a CSV never downloads a PDF reader, and for those npx truecopy the-file.csv is the whole command. Left out on a PDF it says no-engine rather than guessing. It prints the cut it made, what each column holds, how often it is filled, and then, on its own, what it could not vouch for.
page 1 - cut at 68, 229, 356, 411, 490
what this reading cannot vouch for:
npm install truecopy
import { readTable } from 'truecopy';
const { rows, warnings, findings } = await readTable(file); // rows [['02/05/2026', 'CARTE AMAZON', '12,40'], …] // warnings ['column 3 of page 2 is filled on only 8% of its rows - the cut may have invented it'] // findings [{ code: 'thin-column', page: 2, column: 3, shareFilled: 0.08, message: '…' }]
No kindOf, no thresholds, no roles. If you only want the cells, destructure rows and go.
file is whatever was dropped. The cut does not care which ruler measured the page, so the same two lines read a PDF, a table pasted out of one, a CSV and a TSV:
| What was dropped | Where a column starts |
|---|---|
| a PDF | the item's x, in points |
| a table pasted with spaces | the character the field starts at |
| a file written with a delimiter | the field's index: a CSV lines nothing up |
| prose, or a file that quotes its fields | nowhere: the row comes back whole, and warnings says so |
That last line is the rule and not the exception. A quoted CSV field may hold the delimiter itself, so splitting on it anyway would shift every column after it. truecopy hands the rows back uncut instead, because half-parsing is the failure this library exists to prevent.
explainDocument names the ruler, so a cut is never a bare list of numbers: cut at 100, 290 on a page, cut at characters 7, 22 on a paste, cut on the delimiter on a CSV, where the columns _are_ the fields and their indices would tell you nothing.
The second field is why this is not just another extractor. An empty `warnings` is not a promise that the reading is right: it means nothing looked wrong from the shape of the page, which is a much smaller claim. Every warning is computed without knowing anything about your document: a page with no columns at all, a column that is almost always empty, pages cut differently from one another, a blank page in the middle.
findings is that same list with a code on it, plus the page and the column it is about. A person reads the sentence; a program branches on the code, and never on English that could be reworded tomorrow.
When the rows have to be trusted (when something downstream acts on them), the rest of this page is how.
A complete reader that runs, in one file and one command:
node example/read-a-statement.mjs
example/read-a-statement.mjs builds a real PDF, opens it, prints what the reading decided, and drives it through the contract. Nothing in it is stubbed, and it needs no document from you: it makes its own.
The first thing you need when a reading comes out wrong is not a better parser. It is knowing which of the three things broke: the document is odd, the cut into columns is wrong, or your rule is wrong. Each calls for a different fix.
import { openDocument, explainDocument } from 'truecopy';
const document = await openDocument(file);
console.log( explainDocument(document, { signature: { kindOf: (cell) => (isDate(cell) ? 'date' : isAmount(cell) ? 'amount' : 'text'), thresholds: { date: { share: 0.6, emptyIsAnomalyAbove: 0.7 }, amount: { share: 0.6 }, text: { share: 0.6 } } }, roles: [ { role: 'when', kind: 'date', minimum: 0.6, take: 'best' }, { role: 'money', kind: 'amount', minimum: 0.6, take: 'each' } ] }) );
truecopy - statement-2026-05.pdf pdf, 1 page(s), 6 row(s)
page 1 - cut at 100, 290
3 column(s), 6 row(s)
col kind filled role 0 date 83% when 1 text 100% - 2 amount 100% money
1 02/05/2026 | CARTE 28/04 AMAZON EU> | 12,40 2 03/05/2026 | VIR SEPA LOYER MAI | 750,00 3 05/05/2026 | CARTE 03/05 SNCF CONN> | 68,00 4 09/05/2026 | PRLV EDF | 91,32 5 12/05/2026 | CARTE 11/05 LE BOULAN> | 7,90 6 ! | TOTAL DES DEBITS | 929,62 <- column 0 (date) is empty
Text, not an image: it goes into a terminal, a CI log, a bug report, a test's expected value. It needs no canvas and no headless browser.
The usual way to read a table is to tune settings until one issuer's layout comes out right. It works, and it stops working at the second issuer: every new bank, every new format, every redesign is another block of settings that only its author understands.
truecopy learns the table from the table. A column full of dates is the date column, whatever its header says; a row that breaks what every other row does is a total, a balance, a footer.
import { findRowAnomalies } from 'truecopy/signature';
// Which rows fall outside the signature the table itself sets. const anomalies = findRowAnomalies(rows, signature);
It reads no label, so it survives an issuer you have never seen. A list of forbidden words only recognises yesterday's documents.
What reads no label is the judgement: which rows belong to the table, which column holds what. The cut is a different problem, and it is the one that still needs help.
Measured on a real bank statement whose header labels were deliberately hidden: the page-wide spread of x proposed twelve columns where the table had five, because it counts the letterhead, the address block and the footer as evidence of where a column starts. Cut on the rows that share the table's shape instead (the ones carrying a date and an amount), it proposed five, and three of the five roles were named from content alone.
`boundariesFromRecurrence` is the general answer, and readTable uses it: keep only the x that come back row after row, because a real column's left edge recurs and a word inside a description does not. On the statement above it took the cut from twelve columns to seven, and named the rest as thin. Where the page gives you something better to trust (a header row, a rule), boundariesFromAnchors takes it.
And whatever you do, keep the self-check. On that same statement the reading still came back wrong, and the only reason that was visible is that the sum of the rows did not match the balances the document itself declares.
That is the honest shape of this library. It does not promise to read an unknown layout correctly. It promises to tell you when it did not.
A value you cannot point at is a value nobody can check. Handed a list of figures, a person has to hunt through the document again; handed a place, they jump to it, and that difference is what makes a correction screen used or abandoned.
import { cellsOf, placesOf } from 'truecopy/layout';
const cells = cellsOf(page); // cells3 is what the fourth row holds const places = placesOf(page); // places3 is where to find it // { page: 1, x: 430, y: 700, width: 30 }
The two are laid out identically, so they are read together. A cell nothing fell into has no place: null, not a rectangle of nothing. ReviewableRow.where carries the same thing for the rows a person is asked to confirm.
No height, because none is known: a text item carries no height here, and inventing a line spacing would draw a rectangle the document never had.
That 1 234,50 and 1,234.50 are the same quantity, that (123,45) is negative and so is 123,45-, that 25/01 is a day before a month here and after it there: none of that says anything about banks or invoices. It says how the page was typeset, and it is the part everybody rewrites and everybody gets wrong once.
import { readNumber, findNumbers, readLeadingDate } from 'truecopy/notation';
readNumber('27800.50'); // 27800.5 - not 2 780 050 readNumber('(123,45)'); // -123.45 - the accounting negative readNumber("1'234.56"); // 1234.56
// Never starts a match inside another number: a date glued to a figure // reads as one figure, not as "026 300,00". findNumbers('30/05/2026 300,00', 2); // [{ value: 300, ... }]
readLeadingDate('25 janv. 2026 GROCERIES', { dateOrder: 'DMY', months }); // { date, length: 13 } - so the caller strips it and keeps the wording
It says null rather than guess. On figures somebody will act upon, a refusal costs a correction and a wrong reading costs a decision.
None of this needs a PDF. truecopy/notation takes strings, so an API field, an HTML scrape or a pasted email gets the same reading as a page, and pdfjs-dist is never loaded. It is the layer worth reaching for before writing a pattern of your own - because the pattern everybody writes instead has a defect nobody sees:
import { accentFree } from 'truecopy/notation';
// \w is [A-Za-z0-9_] in JavaScript, whatever the document is written in. /d[ée]tach\w+/.test('détaché'); // false - the suffix is an accented letter /d[ée]tach\p{L}*/u.test('détaché'); // true accentFree('Détaché'); // 'detache' - or fold first and compare plainly
Nothing fails there: the pattern compiles, runs, and returns a plausible fraction of the matches, which then reads as a fact about the documents rather than a defect in the rule.
try {
await openDocument(file); } catch (error) { if (error instanceof UnreadableDocument) { // 'empty' | 'too-big' | 'no-text' | 'too-slow' | 'no-engine' | 'not-opened' showInYourOwnWords(error.reason); } }
The reason is named so the sentence is not. A library that ships only English prose forces an application that speaks anything else to keep its own copy of the door.
no-engine and not-opened are kept apart on purpose, and the difference is not cosmetic: one says _install pdfjs-dist_, the other says _this file will not open, look for its password_. Told the wrong one, a person hunts for a lock that does not exist and an agent wr
只显示了开头部分;其余内容请在仓库中阅读