@deventerprisesoftware/scrapi-mcp 0.2.2 → 0.2.5
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 +4 -4
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.4";
|
|
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.
|
|
140
|
-
console.
|
|
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: {
|
|
@@ -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.
|
|
228
|
+
console.error(`ScrAPI MCP HTTP Server version ${SCRAPI_SERVER_VERSION} listening on port ${PORT}`);
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deventerprisesoftware/scrapi-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "MCP server for using ScrAPI to scrape web pages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"docker:release": "npm run build && npm run docker:build && npm run docker:push"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
41
|
-
"cors": "^2.8.
|
|
40
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
41
|
+
"cors": "^2.8.6",
|
|
42
42
|
"express": "^5.2.1",
|
|
43
43
|
"zod": "^3.25.76"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/cors": "^2.8.19",
|
|
47
47
|
"@types/express": "^5.0.6",
|
|
48
|
-
"@types/node": "^25.0
|
|
48
|
+
"@types/node": "^25.2.0",
|
|
49
49
|
"shx": "^0.4.0",
|
|
50
50
|
"typescript": "^5.9.3"
|
|
51
51
|
}
|