filecheck-mcp 0.1.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/LICENSE +21 -0
- package/README.md +67 -0
- package/dist/cli.js +1007 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +982 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +977 -0
- package/dist/index.js.map +1 -0
- package/package.json +67 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Filecheck
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# filecheck-mcp
|
|
2
|
+
|
|
3
|
+
[Model Context Protocol](https://modelcontextprotocol.io) server for the
|
|
4
|
+
[Filecheck](https://filecheck.io) API — check, fix, validate, optimize, and
|
|
5
|
+
preview print files from Claude, Cursor, or any MCP client.
|
|
6
|
+
|
|
7
|
+
## Quick start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
claude mcp add filecheck -e FILECHECK_API_KEY=sk_... -- npx -y filecheck-mcp
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Claude Desktop / Cursor config:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"filecheck": {
|
|
19
|
+
"command": "npx",
|
|
20
|
+
"args": ["-y", "filecheck-mcp"],
|
|
21
|
+
"env": { "FILECHECK_API_KEY": "sk_..." }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`FILECHECK_API_KEY` is your secret key (`sk_…`) from the Filecheck dashboard.
|
|
28
|
+
Optional: `FILECHECK_BASE_URL` to point at a different API host.
|
|
29
|
+
|
|
30
|
+
Prefer a hosted endpoint? The same tools (minus local-file access) are served
|
|
31
|
+
at `https://api.filecheck.io/mcp` with an `Authorization: Bearer sk_…` header.
|
|
32
|
+
|
|
33
|
+
## Tools
|
|
34
|
+
|
|
35
|
+
| Tool | What it does |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| `check_file` | Preflight a file (path, URL, or fileRef) against a profile — verdict, findings, recommended autofix |
|
|
38
|
+
| `fix_file` | Preflight + apply safe automatic fixes + re-check; returns the fixed file |
|
|
39
|
+
| `validate_pdf` | PDF/A / PDF/UA conformance (veraPDF) |
|
|
40
|
+
| `optimize_file` | Downsample, recompress, slim |
|
|
41
|
+
| `render_previews` | Rasterize pages so the agent can look at the file |
|
|
42
|
+
| `get_job` | Poll a job / re-mint fresh signed download URLs |
|
|
43
|
+
| `list_jobs` | Recent jobs, lean envelopes |
|
|
44
|
+
| `delete_job` | Soft-delete a job |
|
|
45
|
+
| `list_catalog` | Browse profiles, rules, workflows, connectors, optimize presets |
|
|
46
|
+
| `get_report` | Drill into the full preflight report, paginated per section |
|
|
47
|
+
| `save_artifact` | Save a deliverable to a local path (stdio server only) |
|
|
48
|
+
|
|
49
|
+
Results always carry two independent axes: `status` (did it run) and
|
|
50
|
+
`outcome` (the verdict) — `status: done` + `outcome: fail` means the check
|
|
51
|
+
completed and the file is **not** print-ready.
|
|
52
|
+
|
|
53
|
+
## Embedding
|
|
54
|
+
|
|
55
|
+
The server is also exported as a factory for embedding in your own transport:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import { createFilecheckMcp, LOCAL_CAPABILITIES } from 'filecheck-mcp';
|
|
59
|
+
import { Filecheck } from 'filecheck-node';
|
|
60
|
+
|
|
61
|
+
const server = createFilecheckMcp({
|
|
62
|
+
client: new Filecheck(process.env.FILECHECK_API_KEY),
|
|
63
|
+
capabilities: LOCAL_CAPABILITIES, // or REMOTE_CAPABILITIES
|
|
64
|
+
});
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Docs: https://filecheck.io/docs/integrations/mcp
|