mcp-meilisearch 1.0.19 → 1.0.20
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/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import http from "node:http";
|
|
2
2
|
import { ServerOptions } from "./types/options.js";
|
|
3
3
|
/**
|
|
4
|
-
* Start a
|
|
4
|
+
* Start a MCP server
|
|
5
5
|
* @param options Configuration options for the MCP server
|
|
6
6
|
* @returns A promise that resolves to the HTTP server instance
|
|
7
7
|
*/
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { parse as parseUrl } from "node:url";
|
|
|
4
4
|
import { configHandler } from "./utils/config-handler.js";
|
|
5
5
|
import { createErrorResponse } from "./utils/error-handler.js";
|
|
6
6
|
/**
|
|
7
|
-
* Start a
|
|
7
|
+
* Start a MCP server
|
|
8
8
|
* @param options Configuration options for the MCP server
|
|
9
9
|
* @returns A promise that resolves to the HTTP server instance
|
|
10
10
|
*/
|
|
@@ -99,7 +99,7 @@ export async function mcpMeilisearchServer(options = {
|
|
|
99
99
|
process.on("SIGTERM", shutdownHandler);
|
|
100
100
|
return server;
|
|
101
101
|
}
|
|
102
|
-
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
102
|
+
if (import.meta.url === `file://${process.argv?.[1]}`) {
|
|
103
103
|
const args = process.argv.slice(2);
|
|
104
104
|
const options = {
|
|
105
105
|
meilisearchHost: "http://localhost:7700",
|