@imazeo/mcp 0.0.0-stage → 1.0.1
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/CHANGELOG.md +7 -0
- package/CONTRIBUTING.md +16 -0
- package/LICENSE +21 -0
- package/README.md +71 -2
- package/SECURITY.md +13 -0
- package/dist/api.js +111 -0
- package/dist/cli.js +24 -0
- package/dist/errors.js +52 -0
- package/dist/files.js +245 -0
- package/dist/schemas.js +181 -0
- package/dist/server.js +95 -0
- package/dist/tools/media.js +160 -0
- package/dist/tools/project.js +112 -0
- package/docs/architecture.md +15 -0
- package/docs/clients.md +92 -0
- package/docs/releasing.md +67 -0
- package/package.json +41 -6
- package/server.json +38 -0
package/docs/clients.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Local MCP clients
|
|
2
|
+
|
|
3
|
+
Use a supported Node.js version. The examples pin the npm release. For a source checkout, use `node` as the command and supply the absolute path to the built `dist/cli.js` as its only argument. If a Windows client cannot resolve `npx`, use `cmd.exe` with arguments `["/d", "/c", "npx", "--yes", "@imazeo/mcp@1.0.1"]`.
|
|
4
|
+
|
|
5
|
+
Add the optional `IMAZEO_INPUT_DIR` and `IMAZEO_OUTPUT_DIR` variables to the `env` object if you plan to upload or download files. Set each to the absolute path of a dedicated local directory. On Windows, escape backslashes in JSON or use forward slashes. Keep API keys and personal directory locations in private configuration.
|
|
6
|
+
|
|
7
|
+
## Cursor
|
|
8
|
+
|
|
9
|
+
Use the `mcpServers` object in `.cursor/mcp.json` or in the global MCP configuration. The Cursor process must have access to the environment variable used below. [Cursor MCP configuration](https://cursor.com/docs/mcp)
|
|
10
|
+
|
|
11
|
+
~~~json
|
|
12
|
+
{
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"imazeo": {
|
|
15
|
+
"type": "stdio",
|
|
16
|
+
"command": "npx",
|
|
17
|
+
"args": ["--yes", "@imazeo/mcp@1.0.1"],
|
|
18
|
+
"env": {
|
|
19
|
+
"IMAZEO_API_KEY": "${env:IMAZEO_API_KEY}"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
~~~
|
|
25
|
+
|
|
26
|
+
## Claude Desktop
|
|
27
|
+
|
|
28
|
+
Open Settings, then Developer, then Edit Config. Replace the placeholder in your private local configuration with a project key and restart Claude Desktop. Keep the configuration file private because the value is stored there. [Claude Desktop local server guide](https://modelcontextprotocol.io/docs/develop/connect-local-servers)
|
|
29
|
+
|
|
30
|
+
~~~json
|
|
31
|
+
{
|
|
32
|
+
"mcpServers": {
|
|
33
|
+
"imazeo": {
|
|
34
|
+
"command": "npx",
|
|
35
|
+
"args": ["--yes", "@imazeo/mcp@1.0.1"],
|
|
36
|
+
"env": {
|
|
37
|
+
"IMAZEO_API_KEY": "<project-api-key>"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
~~~
|
|
43
|
+
|
|
44
|
+
## Claude Code
|
|
45
|
+
|
|
46
|
+
Use `.mcp.json` for a project-scoped server. Claude Code expands the API key from the environment of the client process. Review the launch command when Claude Code asks you to trust the server. [Claude Code MCP configuration](https://code.claude.com/docs/en/mcp)
|
|
47
|
+
|
|
48
|
+
~~~json
|
|
49
|
+
{
|
|
50
|
+
"mcpServers": {
|
|
51
|
+
"imazeo": {
|
|
52
|
+
"type": "stdio",
|
|
53
|
+
"command": "npx",
|
|
54
|
+
"args": ["--yes", "@imazeo/mcp@1.0.1"],
|
|
55
|
+
"env": {
|
|
56
|
+
"IMAZEO_API_KEY": "${IMAZEO_API_KEY}"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
~~~
|
|
62
|
+
|
|
63
|
+
## VS Code
|
|
64
|
+
|
|
65
|
+
Use the native MCP configuration in `.vscode/mcp.json` or open the user configuration through the Command Palette. The password input keeps the key out of the checked-in configuration. [VS Code MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration)
|
|
66
|
+
|
|
67
|
+
~~~json
|
|
68
|
+
{
|
|
69
|
+
"inputs": [
|
|
70
|
+
{
|
|
71
|
+
"id": "imazeo-api-key",
|
|
72
|
+
"type": "promptString",
|
|
73
|
+
"description": "Imazeo project API key",
|
|
74
|
+
"password": true
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"servers": {
|
|
78
|
+
"imazeo": {
|
|
79
|
+
"type": "stdio",
|
|
80
|
+
"command": "npx",
|
|
81
|
+
"args": ["--yes", "@imazeo/mcp@1.0.1"],
|
|
82
|
+
"env": {
|
|
83
|
+
"IMAZEO_API_KEY": "${input:imazeo-api-key}"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
~~~
|
|
89
|
+
|
|
90
|
+
## Check a client connection
|
|
91
|
+
|
|
92
|
+
Start the server and check that the client lists Imazeo tools. Call `imazeo_project_capabilities` with `{}` to verify the key and project without consuming processing credits. For an end-to-end processing check, use a test project, an explicit credit quote and an approved processing request. Setup examples follow the linked client documentation. The automated suite tests the executable with official MCP clients for both protocol eras.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Releasing Imazeo Media
|
|
2
|
+
|
|
3
|
+
Release from `Imazeohq/imazeo-mcp` with the npm package `@imazeo/mcp` and the MCP Registry name `com.imazeo/media`. Release steps require maintainer authorization.
|
|
4
|
+
|
|
5
|
+
## Release a new version
|
|
6
|
+
|
|
7
|
+
After the [first publication](#first-publication) and [trusted publisher setup](#trusted-publishing-for-subsequent-versions), start from a clean `main` with the changes you want to release committed and verified. Put any new changelog notes under `## Unreleased` before committing them.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm ci
|
|
11
|
+
npm run release
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Choose `patch`, `minor`, `major`, or enter the exact next `X.Y.Z` version. The command updates both npm manifests, the MCP manifest, the server identity and pinned client examples. It labels any unreleased changelog notes, runs the local checks, then commits and pushes `main` and the new annotated tag together. You can also pass a version explicitly with `npm run release -- 1.0.1`.
|
|
15
|
+
|
|
16
|
+
The tag starts **Release MCP package**. It builds and tests the server, uploads the checked npm tarball and matching `server.json`, and starts the protected npm publishing job. If Git rejects the push, the release command prints the exact retry command for the existing local tag and commit. To prepare just the release files, run the workflow manually on the tag with the publish checkbox clear.
|
|
17
|
+
|
|
18
|
+
## Publish to npm
|
|
19
|
+
|
|
20
|
+
### First publication
|
|
21
|
+
|
|
22
|
+
npm requires an existing package before you can add a trusted publisher. Once the `v1.0.0` commit is reachable from `origin/main`, push the tag with `git push origin tag v1.0.0` to prepare the first artifact. Download and extract it. From the directory containing the tarball, an authorized `@imazeo` maintainer can publish it with an interactive npm login and two-factor authentication. [npm trust prerequisites](https://docs.npmjs.com/cli/v11/commands/npm-trust/)
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
npm login --registry=https://registry.npmjs.org
|
|
26
|
+
npm publish ./imazeo-mcp-1.0.0.tgz --access public --ignore-scripts
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Trusted publishing for subsequent versions
|
|
30
|
+
|
|
31
|
+
Configure the `npm` GitHub environment with deployment rules allowing release tags. GitHub publishes automatically unless the environment has a reviewer or other approval gate. When the next version is ready, add the following trusted publisher in `@imazeo/mcp` package settings on npmjs.com. Complete its first successful publish within two days of creating the connection. [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/)
|
|
32
|
+
|
|
33
|
+
| npm setting | Value |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| Provider | GitHub Actions |
|
|
36
|
+
| Organization or user | `Imazeohq` |
|
|
37
|
+
| Repository | `imazeo-mcp` |
|
|
38
|
+
| Workflow filename | `publish.yml` |
|
|
39
|
+
| Environment | `npm` |
|
|
40
|
+
| Allowed action | Enable direct `npm publish` |
|
|
41
|
+
|
|
42
|
+
Run `npm run release` to start publishing. To retry publication for an existing tag, run **Release MCP package** manually with the publish checkbox selected. The publish job sends the checked tarball to npm with GitHub OIDC and provenance. Verify the version and `mcpName` on npm before submitting the registry listing.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npm view @imazeo/mcp@1.0.0 version mcpName repository.url
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Replace `1.0.0` with the version you published.
|
|
49
|
+
|
|
50
|
+
## Publish to the MCP Registry
|
|
51
|
+
|
|
52
|
+
Publish the matching npm version first. Use `server.json` from the same workflow artifact. The Registry checks the versioned npm manifest's `mcpName` against the server name in `server.json`. The artifact's manifest passes `npm run check:registry` during preparation.
|
|
53
|
+
|
|
54
|
+
Authenticate with domain verification for `imazeo.com`. With DNS verification configured, run the following from the extracted artifact directory. The key file holds the hex signing key and belongs outside the checkout. The Registry also supports HTTP verification for this namespace. [MCP Registry authentication](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/authentication.mdx) [Publisher commands](https://github.com/modelcontextprotocol/registry/blob/main/docs/reference/cli/commands.md)
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
mcp-publisher login dns --domain=imazeo.com --private-key-file=/secure/path/to/key.hex
|
|
58
|
+
mcp-publisher publish server.json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Verify that the listing shows `com.imazeo/media`, the released version, and the `@imazeo/mcp` stdio package.
|
|
62
|
+
|
|
63
|
+
## Submit to other registries
|
|
64
|
+
|
|
65
|
+
Registries that import the official MCP Registry can discover the listing after it is published. For direct submissions, reuse the artifact's `server.json` wherever the registry accepts the standard manifest. If it accepts individual fields, use `com.imazeo/media`, the public repository URL, and the same versioned launch command, such as `npx --yes @imazeo/mcp@1.0.0`. Declare `IMAZEO_API_KEY` as a required secret and the two local directory settings as optional. Choose the local `stdio` listing type where available. Follow each registry's account verification and submission process. [MCP Registry aggregators](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/registry-aggregators.mdx)
|
|
66
|
+
|
|
67
|
+
If a correction is needed after publication, prepare a new version and repeat the checks. Coordinate any npm deprecation or Registry withdrawal with maintainers before changing a published listing.
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@imazeo/mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@imazeo/mcp",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Official Imazeo stdio MCP server for images, PDFs, document rendering, website capture, QR codes, and barcodes",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Imazeo",
|
|
8
|
+
"bin": { "imazeo-mcp": "dist/cli.js" },
|
|
9
|
+
"mcpName": "com.imazeo/media",
|
|
10
|
+
"files": ["dist", "docs", "server.json", "CHANGELOG.md", "SECURITY.md", "CONTRIBUTING.md"],
|
|
11
|
+
"engines": { "node": "^22.19.0 || ^24.0.0 || ^26.0.0" },
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc -p tsconfig.json",
|
|
14
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
15
|
+
"lint": "eslint .",
|
|
16
|
+
"test": "npm run build && node --test test/*.test.mjs",
|
|
17
|
+
"check:package": "node scripts/check-package.mjs",
|
|
18
|
+
"check:registry": "node scripts/check-registry.mjs",
|
|
19
|
+
"release": "node scripts/release.mjs",
|
|
20
|
+
"prepack": "npm run build"
|
|
21
|
+
},
|
|
22
|
+
"keywords": ["mcp", "model-context-protocol", "imazeo", "image-processing", "pdf", "document-rendering", "website-screenshot", "qr-code", "barcode"],
|
|
23
|
+
"repository": { "type": "git", "url": "git+https://github.com/Imazeohq/imazeo-mcp.git" },
|
|
24
|
+
"bugs": { "url": "https://github.com/Imazeohq/imazeo-mcp/issues" },
|
|
25
|
+
"homepage": "https://imazeo.com/docs/",
|
|
26
|
+
"publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" },
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@imazeo/sdk": "1.1.1",
|
|
29
|
+
"@modelcontextprotocol/server": "2.4.0",
|
|
30
|
+
"zod": "^4.1.13"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@modelcontextprotocol/client": "2.4.0",
|
|
34
|
+
"@types/node": "^22.19.0",
|
|
35
|
+
"ajv": "^8.17.1",
|
|
36
|
+
"ajv-formats": "^3.0.1",
|
|
37
|
+
"eslint": "^10.0.0",
|
|
38
|
+
"typescript": "~5.9.3",
|
|
39
|
+
"typescript-eslint": "^8.48.0"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/server.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "com.imazeo/media",
|
|
4
|
+
"title": "Imazeo Media",
|
|
5
|
+
"description": "Process images, PDFs, documents, website captures, QR codes, and barcodes with Imazeo.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"url": "https://github.com/Imazeohq/imazeo-mcp",
|
|
8
|
+
"source": "github"
|
|
9
|
+
},
|
|
10
|
+
"version": "1.0.1",
|
|
11
|
+
"websiteUrl": "https://imazeo.com/docs/",
|
|
12
|
+
"packages": [
|
|
13
|
+
{
|
|
14
|
+
"registryType": "npm",
|
|
15
|
+
"registryBaseUrl": "https://registry.npmjs.org",
|
|
16
|
+
"identifier": "@imazeo/mcp",
|
|
17
|
+
"version": "1.0.1",
|
|
18
|
+
"runtimeHint": "npx",
|
|
19
|
+
"transport": { "type": "stdio" },
|
|
20
|
+
"environmentVariables": [
|
|
21
|
+
{
|
|
22
|
+
"name": "IMAZEO_API_KEY",
|
|
23
|
+
"description": "Secret API key for the Imazeo project used by this server.",
|
|
24
|
+
"isRequired": true,
|
|
25
|
+
"isSecret": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "IMAZEO_INPUT_DIR",
|
|
29
|
+
"description": "Optional absolute directory containing local files you allow the server to upload."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "IMAZEO_OUTPUT_DIR",
|
|
33
|
+
"description": "Optional absolute directory where the server may write new media files."
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|