@cueai/omni-reader-mcp 1.0.0 → 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/README.md +6 -6
- package/dist/cli/agent-config.js +2 -2
- package/dist/cube-client.d.ts +2 -2
- package/dist/cube-client.js +2 -2
- package/dist/index.js +13 -4
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @cueai/omni-reader-mcp
|
|
2
2
|
|
|
3
3
|
Local stdio MCP Bridge for parsing files from an Agent workspace through Omni Reader. Source bytes upload directly from the local Bridge to IIIS; they do not pass through Cube-MCP or the model conversation before `parse_document` is called.
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ Set the existing general Cue API Key, then run the interactive user-scope setup:
|
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
15
|
export CUE_API_KEY="YOUR_CUE_API_KEY"
|
|
16
|
-
npx -y @
|
|
16
|
+
npx -y @cueai/omni-reader-mcp setup
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Setup supports Cursor, Claude Desktop, and a generic MCP configuration for other Agents. The current working directory is allowed by default. To allow additional directories, provide them during setup or configure absolute paths in `OMNI_ALLOWED_ROOTS` (colon-separated on macOS/Linux and semicolon-separated on Windows).
|
|
@@ -41,9 +41,9 @@ Local parsing defaults to `no_store=true`. Files are restricted to configured ro
|
|
|
41
41
|
## Commands
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
npx -y @
|
|
45
|
-
npx -y @
|
|
46
|
-
npx -y @
|
|
44
|
+
npx -y @cueai/omni-reader-mcp setup
|
|
45
|
+
npx -y @cueai/omni-reader-mcp doctor
|
|
46
|
+
npx -y @cueai/omni-reader-mcp clean
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Running `npx -y @
|
|
49
|
+
Running `npx -y @cueai/omni-reader-mcp` without a command starts the stdio MCP server.
|
package/dist/cli/agent-config.js
CHANGED
|
@@ -51,7 +51,7 @@ export function displayConfigPath(configPath, environment) {
|
|
|
51
51
|
export function buildAgentEntry(extraRoots, platform) {
|
|
52
52
|
const entry = {
|
|
53
53
|
command: "npx",
|
|
54
|
-
args: ["-y", "@
|
|
54
|
+
args: ["-y", "@cueai/omni-reader-mcp"],
|
|
55
55
|
};
|
|
56
56
|
if (extraRoots.length > 0) {
|
|
57
57
|
entry.env = {
|
|
@@ -277,7 +277,7 @@ function isExpectedOmniEntry(value) {
|
|
|
277
277
|
|| !Array.isArray(args)
|
|
278
278
|
|| args.length !== 2
|
|
279
279
|
|| args[0] !== "-y"
|
|
280
|
-
|| args[1] !== "@
|
|
280
|
+
|| args[1] !== "@cueai/omni-reader-mcp")
|
|
281
281
|
return false;
|
|
282
282
|
if (value.env === undefined) {
|
|
283
283
|
return keys.length === 2 && keys[0] === "args" && keys[1] === "command";
|
package/dist/cube-client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OperationJournal } from "./operation-journal.js";
|
|
2
|
-
declare const BRIDGE_PACKAGE = "@
|
|
3
|
-
declare const BRIDGE_VERSION = "1.0.
|
|
2
|
+
declare const BRIDGE_PACKAGE = "@cueai/omni-reader-mcp";
|
|
3
|
+
declare const BRIDGE_VERSION = "1.0.1";
|
|
4
4
|
export interface GrantRequestInput {
|
|
5
5
|
readonly contentLength: number;
|
|
6
6
|
readonly contentType: string;
|
package/dist/cube-client.js
CHANGED
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
import { DEFAULT_CUBE_BASE_URL, MAX_FILE_BYTES, PROTOCOL_VERSION, } from "./constants.js";
|
|
4
4
|
import { OmniBridgeError } from "./errors.js";
|
|
5
5
|
const GRANT_PATH = "/api/omni-reader/direct-upload/v1/parse-grants";
|
|
6
|
-
const BRIDGE_PACKAGE = "@
|
|
7
|
-
const BRIDGE_VERSION = "1.0.
|
|
6
|
+
const BRIDGE_PACKAGE = "@cueai/omni-reader-mcp";
|
|
7
|
+
const BRIDGE_VERSION = "1.0.1";
|
|
8
8
|
const grantResponseSchema = z
|
|
9
9
|
.object({
|
|
10
10
|
grant_id: z.string().min(1),
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { execFile as execFileCallback } from "node:child_process";
|
|
3
|
-
import { readFile } from "node:fs/promises";
|
|
4
|
-
import {
|
|
3
|
+
import { readFile, realpath } from "node:fs/promises";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { createInterface } from "node:readline/promises";
|
|
6
6
|
import { stdin, stdout as processStdout } from "node:process";
|
|
7
7
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -165,8 +165,17 @@ async function main() {
|
|
|
165
165
|
if (code !== 0)
|
|
166
166
|
process.exitCode = code;
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
if (invokedPath
|
|
168
|
+
async function isMainModule(invokedPath) {
|
|
169
|
+
if (invokedPath === undefined)
|
|
170
|
+
return false;
|
|
171
|
+
try {
|
|
172
|
+
return await realpath(invokedPath) === fileURLToPath(import.meta.url);
|
|
173
|
+
}
|
|
174
|
+
catch {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (await isMainModule(process.argv[1])) {
|
|
170
179
|
void main().catch(() => {
|
|
171
180
|
process.stderr.write("Bridge startup failed.\n");
|
|
172
181
|
process.exitCode = 1;
|
package/dist/server.js
CHANGED
|
@@ -2,7 +2,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
2
2
|
import { SAFETY_INSTRUCTIONS } from "./protocol.js";
|
|
3
3
|
import { registerOmniTools } from "./tools.js";
|
|
4
4
|
const SERVER_NAME = "omni-reader-mcp";
|
|
5
|
-
const SERVER_VERSION = "1.0.
|
|
5
|
+
const SERVER_VERSION = "1.0.1";
|
|
6
6
|
export function createOmniMcpServer(dependencies) {
|
|
7
7
|
const server = new McpServer({ name: SERVER_NAME, version: SERVER_VERSION }, { instructions: SAFETY_INSTRUCTIONS });
|
|
8
8
|
registerOmniTools(server, dependencies);
|