mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
- Added main server file (index.ts) to initialize the Crawlab MCP Server. - Created prompts for spider analysis, task debugging, spider setup, and system monitoring. - Developed tools for managing spiders, tasks, nodes, schedules, and system health. - Implemented a mock client for testing server functionality. - Added versioning support with version.ts. - Created a test script (test-server.mjs) to validate tool configurations and server responses. - Included build validation script (validate-build.mjs) to ensure proper setup and functionality. - Configured TypeScript settings with tsconfig.json for better development experience.
47 lines
1.3 KiB
JSON
47 lines
1.3 KiB
JSON
{
|
|
"name": "@crawlab/mcp",
|
|
"version": "0.1.0",
|
|
"description": "MCP server for interacting with Crawlab web crawler management platform",
|
|
"license": "MIT",
|
|
"author": "Crawlab Team",
|
|
"type": "module",
|
|
"bin": {
|
|
"mcp-server-crawlab": "dist/index.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"prebuild": "node -p \"'export const packageVersion = ' + JSON.stringify(require('./package.json').version) + ';\\r'\" > src/version.ts",
|
|
"build": "tsc && shx chmod +x dist/*.js",
|
|
"prepare": "npm run build",
|
|
"watch": "tsc --watch",
|
|
"inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
|
|
"start": "node dist/index.js",
|
|
"lint": "eslint src/**/*.ts",
|
|
"lint:fix": "eslint src/**/*.ts --fix",
|
|
"clean": "shx rm -rf dist",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.12.2",
|
|
"axios": "^1.6.7",
|
|
"tailwindcss": "^4.1.10",
|
|
"zod": "^3.25.63",
|
|
"zod-to-json-schema": "^3.24.5"
|
|
},
|
|
"devDependencies": {
|
|
"@modelcontextprotocol/inspector": "^0.14.0",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^22",
|
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
"@typescript-eslint/parser": "^6.21.0",
|
|
"eslint": "^8.57.0",
|
|
"jest": "^29.7.0",
|
|
"prettier": "^3.5.3",
|
|
"shx": "^0.4.0",
|
|
"ts-jest": "^29.4.0",
|
|
"typescript": "^5.8.3"
|
|
}
|
|
}
|