@deventerprisesoftware/scrapi-mcp 0.2.1 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. 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.1";
11
+ const SCRAPI_SERVER_VERSION = "0.2.3";
12
12
  const app = express();
13
13
  app.use(cors({
14
14
  origin: "*",
@@ -136,8 +136,8 @@ export default function createServer({ config, }) {
136
136
  }
137
137
  try {
138
138
  const requestBody = JSON.stringify(body);
139
- console.log(`Using ScrAPI on URL: ${url} with format: ${format}`);
140
- console.log(`Request body: ${requestBody}`);
139
+ console.error(`Using ScrAPI on URL: ${url} with format: ${format}`);
140
+ console.error(`Request body: ${requestBody}`);
141
141
  const response = await fetch("https://api.scrapi.tech/v1/scrape", {
142
142
  method: "POST",
143
143
  headers: {
@@ -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.error(`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.log("MCP Server running in stdio mode");
242
+ console.error(`ScrAPI MCP Server version ${SCRAPI_SERVER_VERSION} running in stdio mode`);
243
243
  }
244
244
  }
245
245
  // Start the server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deventerprisesoftware/scrapi-mcp",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "MCP server for using ScrAPI to scrape web pages.",
5
5
  "keywords": [
6
6
  "mcp",