@deventerprisesoftware/scrapi-mcp 0.2.1 → 0.2.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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { z } from "zod";
|
|
|
8
8
|
const PORT = process.env.PORT || 5000;
|
|
9
9
|
const SCRAPI_API_KEY = process.env.SCRAPI_API_KEY || "00000000-0000-0000-0000-000000000000";
|
|
10
10
|
const SCRAPI_SERVER_NAME = "ScrAPI MCP Server";
|
|
11
|
-
const SCRAPI_SERVER_VERSION = "0.2.
|
|
11
|
+
const SCRAPI_SERVER_VERSION = "0.2.2";
|
|
12
12
|
const app = express();
|
|
13
13
|
app.use(cors({
|
|
14
14
|
origin: "*",
|
|
@@ -209,7 +209,7 @@ app.all("/mcp", async (req, res) => {
|
|
|
209
209
|
await transport.handleRequest(req, res, req.body);
|
|
210
210
|
}
|
|
211
211
|
catch (error) {
|
|
212
|
-
console.error("Error handling MCP request:", error);
|
|
212
|
+
console.error("Error handling ScrAPI MCP request:", error);
|
|
213
213
|
if (!res.headersSent) {
|
|
214
214
|
res.status(500).json({
|
|
215
215
|
jsonrpc: "2.0",
|
|
@@ -225,7 +225,7 @@ async function main() {
|
|
|
225
225
|
if (transport === "http") {
|
|
226
226
|
// Run in HTTP mode
|
|
227
227
|
app.listen(PORT, () => {
|
|
228
|
-
console.log(`MCP HTTP Server listening on port ${PORT}`);
|
|
228
|
+
console.log(`ScrAPI MCP HTTP Server version ${SCRAPI_SERVER_VERSION} listening on port ${PORT}`);
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
else {
|
|
@@ -239,7 +239,7 @@ async function main() {
|
|
|
239
239
|
// Start receiving messages on stdin and sending messages on stdout
|
|
240
240
|
const stdioTransport = new StdioServerTransport();
|
|
241
241
|
await server.connect(stdioTransport);
|
|
242
|
-
console.
|
|
242
|
+
console.error(`ScrAPI MCP Server version ${SCRAPI_SERVER_VERSION} running in stdio mode`);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
// Start the server
|