@zokizuan/satori-mcp 4.9.0 → 4.9.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 +2 -2
- package/dist/config.js +5 -5
- package/dist/index.js +11 -14
- package/dist/server/bootstrap-stdio.d.ts +12 -0
- package/dist/server/bootstrap-stdio.js +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,7 +157,7 @@ No parameters.
|
|
|
157
157
|
"mcpServers": {
|
|
158
158
|
"satori": {
|
|
159
159
|
"command": "npx",
|
|
160
|
-
"args": ["-y", "@zokizuan/satori-mcp@4.9.
|
|
160
|
+
"args": ["-y", "@zokizuan/satori-mcp@4.9.1"],
|
|
161
161
|
"timeout": 180000,
|
|
162
162
|
"env": {
|
|
163
163
|
"EMBEDDING_PROVIDER": "VoyageAI",
|
|
@@ -178,7 +178,7 @@ No parameters.
|
|
|
178
178
|
```toml
|
|
179
179
|
[mcp_servers.satori]
|
|
180
180
|
command = "npx"
|
|
181
|
-
args = ["-y", "@zokizuan/satori-mcp@4.9.
|
|
181
|
+
args = ["-y", "@zokizuan/satori-mcp@4.9.1"]
|
|
182
182
|
startup_timeout_ms = 180000
|
|
183
183
|
env = { EMBEDDING_PROVIDER = "VoyageAI", EMBEDDING_MODEL = "voyage-4-large", EMBEDDING_OUTPUT_DIMENSION = "1024", VOYAGEAI_API_KEY = "your-api-key", VOYAGEAI_RERANKER_MODEL = "rerank-2.5", MILVUS_ADDRESS = "your-milvus-endpoint", MILVUS_TOKEN = "your-milvus-token" }
|
|
184
184
|
```
|
package/dist/config.js
CHANGED
|
@@ -169,7 +169,7 @@ export function showHelpMessage() {
|
|
|
169
169
|
console.log(`
|
|
170
170
|
Satori MCP Server
|
|
171
171
|
|
|
172
|
-
Usage: npx -y @zokizuan/satori-mcp@4.9.
|
|
172
|
+
Usage: npx -y @zokizuan/satori-mcp@4.9.1 [options]
|
|
173
173
|
|
|
174
174
|
Options:
|
|
175
175
|
--help, -h Show this help message
|
|
@@ -206,16 +206,16 @@ Environment Variables:
|
|
|
206
206
|
|
|
207
207
|
Examples:
|
|
208
208
|
# Start MCP server with OpenAI and explicit Milvus address
|
|
209
|
-
OPENAI_API_KEY=sk-xxx MILVUS_ADDRESS=localhost:19530 npx -y @zokizuan/satori-mcp@4.9.
|
|
209
|
+
OPENAI_API_KEY=sk-xxx MILVUS_ADDRESS=localhost:19530 npx -y @zokizuan/satori-mcp@4.9.1
|
|
210
210
|
|
|
211
211
|
# Start MCP server with VoyageAI and specific model
|
|
212
|
-
EMBEDDING_PROVIDER=VoyageAI VOYAGEAI_API_KEY=pa-xxx EMBEDDING_MODEL=voyage-4-large MILVUS_ADDRESS=https://your-zilliz-endpoint MILVUS_TOKEN=your-token npx -y @zokizuan/satori-mcp@4.9.
|
|
212
|
+
EMBEDDING_PROVIDER=VoyageAI VOYAGEAI_API_KEY=pa-xxx EMBEDDING_MODEL=voyage-4-large MILVUS_ADDRESS=https://your-zilliz-endpoint MILVUS_TOKEN=your-token npx -y @zokizuan/satori-mcp@4.9.1
|
|
213
213
|
|
|
214
214
|
# Start MCP server with Gemini and specific model
|
|
215
|
-
EMBEDDING_PROVIDER=Gemini GEMINI_API_KEY=xxx EMBEDDING_MODEL=gemini-embedding-001 MILVUS_ADDRESS=https://your-zilliz-endpoint MILVUS_TOKEN=your-token npx -y @zokizuan/satori-mcp@4.9.
|
|
215
|
+
EMBEDDING_PROVIDER=Gemini GEMINI_API_KEY=xxx EMBEDDING_MODEL=gemini-embedding-001 MILVUS_ADDRESS=https://your-zilliz-endpoint MILVUS_TOKEN=your-token npx -y @zokizuan/satori-mcp@4.9.1
|
|
216
216
|
|
|
217
217
|
# Start MCP server with Ollama and specific model
|
|
218
|
-
EMBEDDING_PROVIDER=Ollama EMBEDDING_MODEL=nomic-embed-text MILVUS_ADDRESS=localhost:19530 npx -y @zokizuan/satori-mcp@4.9.
|
|
218
|
+
EMBEDDING_PROVIDER=Ollama EMBEDDING_MODEL=nomic-embed-text MILVUS_ADDRESS=localhost:19530 npx -y @zokizuan/satori-mcp@4.9.1
|
|
219
219
|
`);
|
|
220
220
|
}
|
|
221
221
|
//# sourceMappingURL=config.js.map
|
package/dist/index.js
CHANGED
|
@@ -56,20 +56,17 @@ async function main() {
|
|
|
56
56
|
const runMode = resolveRunMode();
|
|
57
57
|
const originalStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
58
58
|
const protocolStdout = createProtocolStdout(originalStdoutWrite);
|
|
59
|
-
const {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
console.error("[STDOUT_GUARD_DISABLED] SATORI_CLI_STDOUT_GUARD=off");
|
|
71
|
-
}
|
|
72
|
-
}
|
|
59
|
+
const { installBootstrapStdioSafety } = await import("./server/bootstrap-stdio.js");
|
|
60
|
+
installBootstrapStdioSafety({
|
|
61
|
+
runMode,
|
|
62
|
+
guardMode: resolveGuardMode(),
|
|
63
|
+
onGuardDisabled: () => {
|
|
64
|
+
if (!guardDisabledWarningEmitted) {
|
|
65
|
+
guardDisabledWarningEmitted = true;
|
|
66
|
+
console.error("[STDOUT_GUARD_DISABLED] SATORI_CLI_STDOUT_GUARD=off");
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
});
|
|
73
70
|
const { startMcpServerFromEnv } = await import("./server/start-server.js");
|
|
74
71
|
activeServer = await startMcpServerFromEnv({
|
|
75
72
|
runMode,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StdoutGuardMode } from "./stdio-safety.js";
|
|
2
|
+
type BootstrapRunMode = "mcp" | "cli";
|
|
3
|
+
interface BootstrapStdioSafetyOptions {
|
|
4
|
+
runMode: BootstrapRunMode;
|
|
5
|
+
guardMode: StdoutGuardMode | "off";
|
|
6
|
+
stdout?: Record<string, any>;
|
|
7
|
+
writeToStderr?: (text: string) => void;
|
|
8
|
+
onGuardDisabled?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function installBootstrapStdioSafety(options: BootstrapStdioSafetyOptions): () => void;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=bootstrap-stdio.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { installCliStdoutRedirect, installConsoleToStderrPatch } from "./stdio-safety.js";
|
|
2
|
+
export function installBootstrapStdioSafety(options) {
|
|
3
|
+
const restoreConsole = installConsoleToStderrPatch({
|
|
4
|
+
writeToStderr: options.writeToStderr,
|
|
5
|
+
});
|
|
6
|
+
let restoreStdout = () => { };
|
|
7
|
+
if (options.guardMode !== "off") {
|
|
8
|
+
restoreStdout = installCliStdoutRedirect({
|
|
9
|
+
mode: options.guardMode,
|
|
10
|
+
stdout: options.stdout,
|
|
11
|
+
writeToStderr: options.writeToStderr,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
options.onGuardDisabled?.();
|
|
16
|
+
}
|
|
17
|
+
return () => {
|
|
18
|
+
restoreStdout();
|
|
19
|
+
restoreConsole();
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=bootstrap-stdio.js.map
|