Skip to content

Commit d61fb4b

Browse files
authored
Merge pull request #73 from Hiram-Wong/main
feat: build on mcpb/dxt
2 parents c86fe6b + 285677c commit d61fb4b

File tree

10 files changed

+5021
-4
lines changed

10 files changed

+5021
-4
lines changed

drpy-node-mcp/.mcpbignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*
2+
!dist
3+
!dist/**
4+
!manifest.json
5+
!node_modules
6+
!node_modules/node-sqlite3-wasm
7+
!node_modules/node-sqlite3-wasm/**

drpy-node-mcp/drpy-node-mcp.mcpb

1.98 MB
Binary file not shown.

drpy-node-mcp/manifest.json

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"dxt_version": "0.1",
3+
"name": "drpy-node-mcp",
4+
"display_name": "Drpy Node MCP",
5+
"version": "1.0.0",
6+
"description": "MCP server for drpy-node: spider development, debugging, and file management tools",
7+
"long_description": "A comprehensive MCP server for drpy-node development. Provides tools for spider source management, rule debugging, file operations, database queries, and system configuration. Supports parsing HTML with drpy rules, validating spider syntax, and managing the drpy-node service.",
8+
"homepage": "https://github.com/hjdhnx/drpy-node/tree/main/drpy-node-mcp",
9+
"author": {
10+
"name": "hjdhnx",
11+
"url": "https://github.com/hjdhnx/"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/hjdhnx/drpy-node"
16+
},
17+
"documentation": "https://github.com/hjdhnx/drpy-node/tree/main/drpy-node-mcp#readme",
18+
"license": "AGPL-3.0",
19+
"keywords": [
20+
"drpy-node"
21+
],
22+
"server": {
23+
"type": "node",
24+
"entry_point": "dist/index.js",
25+
"mcp_config": {
26+
"command": "node",
27+
"args": [
28+
"${__dirname}/dist/index.js"
29+
],
30+
"env": {}
31+
}
32+
},
33+
"user_config": {
34+
"ROOT": {
35+
"type": "string",
36+
"title": "Project Root Directory",
37+
"description": "Absolute path to your drpy-node project root directory. Leave empty to use auto-detection (looks for .drpy-root marker file or parent directory).",
38+
"default": "/Users/hiram/Data/code/drpy-node/",
39+
"required": false
40+
}
41+
},
42+
"tools": [
43+
{
44+
"name": "list_directory",
45+
"description": "List files and directories in the project"
46+
},
47+
{
48+
"name": "read_file",
49+
"description": "Read the content of a file (automatically decodes DS sources)"
50+
},
51+
{
52+
"name": "write_file",
53+
"description": "Write content to a file (creates directories if needed)"
54+
},
55+
{
56+
"name": "delete_file",
57+
"description": "Delete a file or directory"
58+
},
59+
{
60+
"name": "list_sources",
61+
"description": "List all spider sources (js and catvod)"
62+
},
63+
{
64+
"name": "get_routes_info",
65+
"description": "Get information about registered routes/controllers"
66+
},
67+
{
68+
"name": "fetch_spider_url",
69+
"description": "Fetch a URL using drpy-node's request library to debug connectivity and anti-crawling measures"
70+
},
71+
{
72+
"name": "debug_spider_rule",
73+
"description": "Debug drpy spider rules by parsing HTML or fetching URL"
74+
},
75+
{
76+
"name": "get_spider_template",
77+
"description": "Get a standard template for creating a new drpy JS source"
78+
},
79+
{
80+
"name": "get_drpy_libs_info",
81+
"description": "Get information about available global helper functions and libraries in drpy environment"
82+
},
83+
{
84+
"name": "validate_spider",
85+
"description": "Validate a drpy spider file (syntax check + structure validation)"
86+
},
87+
{
88+
"name": "check_syntax",
89+
"description": "Check syntax of a JavaScript file"
90+
},
91+
{
92+
"name": "sql_query",
93+
"description": "Execute a read-only SQL query on the project database"
94+
},
95+
{
96+
"name": "read_logs",
97+
"description": "Read the latest application logs"
98+
},
99+
{
100+
"name": "manage_config",
101+
"description": "Read or update the project configuration"
102+
},
103+
{
104+
"name": "restart_service",
105+
"description": "Restart the drpy-node service"
106+
}
107+
],
108+
"tools_generated": false,
109+
"prompts_generated": false,
110+
"compatibility": {
111+
"claude_desktop": ">=0.10.0",
112+
"platforms": [
113+
"darwin",
114+
"win32",
115+
"linux"
116+
],
117+
"runtimes": {
118+
"node": ">=18.0.0"
119+
}
120+
}
121+
}

0 commit comments

Comments
 (0)