mcp-server-value-picker 1.0.1 → 1.0.2
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.js +6 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34123,13 +34123,12 @@ var import_cors = __toESM(require_lib4(), 1);
|
|
|
34123
34123
|
import { createServer } from "./server.js";
|
|
34124
34124
|
var isStdio = process.argv.includes("--stdio");
|
|
34125
34125
|
if (isStdio) {
|
|
34126
|
-
const
|
|
34127
|
-
|
|
34128
|
-
|
|
34129
|
-
|
|
34130
|
-
console.
|
|
34131
|
-
console.
|
|
34132
|
-
console.warn = stderrWrite;
|
|
34126
|
+
const noop = () => {};
|
|
34127
|
+
console.log = noop;
|
|
34128
|
+
console.info = noop;
|
|
34129
|
+
console.warn = noop;
|
|
34130
|
+
console.error = noop;
|
|
34131
|
+
console.debug = noop;
|
|
34133
34132
|
}
|
|
34134
34133
|
async function startStreamableHTTPServer(createServer2) {
|
|
34135
34134
|
const port = parseInt(process.env.PORT ?? "3456", 10);
|
|
@@ -34166,7 +34165,6 @@ async function startStreamableHTTPServer(createServer2) {
|
|
|
34166
34165
|
console.log(`Value Picker MCP server listening on http://localhost:${port}/mcp`);
|
|
34167
34166
|
});
|
|
34168
34167
|
const shutdown = () => {
|
|
34169
|
-
console.error("Shutting down...");
|
|
34170
34168
|
httpServer.close(() => process.exit(0));
|
|
34171
34169
|
};
|
|
34172
34170
|
process.on("SIGINT", shutdown);
|
|
@@ -34176,7 +34174,6 @@ async function startStdioServer(createServer2) {
|
|
|
34176
34174
|
const server = createServer2();
|
|
34177
34175
|
const transport = new StdioServerTransport;
|
|
34178
34176
|
await server.connect(transport);
|
|
34179
|
-
console.error("Value Picker MCP server running on STDIO");
|
|
34180
34177
|
}
|
|
34181
34178
|
async function main() {
|
|
34182
34179
|
if (isStdio) {
|