Skip to content

Commit a0b1843

Browse files
committed
feat: add data processing scripts and instructions for running background processes
1 parent 7cfefc1 commit a0b1843

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,32 @@ graph TD
130130
- `lint`: Run ESLint
131131
- `type-check`: Run TypeScript type checking
132132

133+
### Server Data Processing Scripts
134+
The server includes several data processing scripts that can be run with npm:
135+
136+
- `crawl-servers`: Crawls the MCP servers directory from the main repository
137+
- `update-server-types`: Updates server type information from crawling results
138+
- `clean-duplicates`: Cleans duplicate entries in the data
139+
- `process_categories`: Processes and organizes categories data
140+
- `process_locales`: Processes locale translations for internationalization
141+
142+
#### Running Background Processes
143+
For long-running data processing tasks, you can use nohup to run them in the background:
144+
145+
```bash
146+
# Run process_locales in the background with output to a log file
147+
cd server && nohup npm run process_locales > process_locales.log 2>&1 &
148+
149+
# Check if the process is running
150+
ps aux | grep "process_locales" | grep -v grep
151+
152+
# View the log output
153+
tail -f process_locales.log
154+
155+
# Stop the process (replace PID with the actual process ID from ps command)
156+
kill <PID>
157+
```
158+
133159
## Community
134160

135161
Join the open community to build the future of context-aware AI together. Whether you're an AI tool developer, an enterprise looking to leverage existing data, or an early adopter exploring the frontier, we invite you to contribute.

0 commit comments

Comments
 (0)