diff --git a/README.md b/README.md index 066ad81..0ff88f7 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,32 @@ graph TD - `lint`: Run ESLint - `type-check`: Run TypeScript type checking +### Server Data Processing Scripts +The server includes several data processing scripts that can be run with npm: + +- `crawl-servers`: Crawls the MCP servers directory from the main repository +- `update-server-types`: Updates server type information from crawling results +- `clean-duplicates`: Cleans duplicate entries in the data +- `process_categories`: Processes and organizes categories data +- `process_locales`: Processes locale translations for internationalization + +#### Running Background Processes +For long-running data processing tasks, you can use nohup to run them in the background: + +```bash +# Run process_locales in the background with output to a log file +cd server && nohup npm run process_locales > process_locales.log 2>&1 & + +# Check if the process is running +ps aux | grep "process_locales" | grep -v grep + +# View the log output +tail -f process_locales.log + +# Stop the process (replace PID with the actual process ID from ps command) +kill +``` + ## Community 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. diff --git a/server/package.json b/server/package.json index 13cbfab..78a9f53 100644 --- a/server/package.json +++ b/server/package.json @@ -14,7 +14,8 @@ "crawl-servers": "tsx src/data/mcp_servers_crawler.ts --url https://raw.githubusercontent.com/modelcontextprotocol/servers/refs/heads/main/README.md", "update-server-types": "tsx src/data/mcp_server_crawler_result_updater.ts", "clean-duplicates": "tsx src/data/clean_duplicate.ts", - "process_categories": "tsx src/data/process_categories.ts" + "process_categories": "tsx src/data/process_categories.ts", + "process_locales": "tsx src/data/process_locales.ts" }, "dependencies": { "axios": "^1.6.0", diff --git a/server/src/data/process_locales.log.json b/server/src/data/process_locales.log.json index 1ad68ce..c38b234 100644 --- a/server/src/data/process_locales.log.json +++ b/server/src/data/process_locales.log.json @@ -1,5 +1,5 @@ { - "lastProcessed": "2025-04-02T08:29:31.975Z", + "lastProcessed": "2025-04-27T15:43:33.571Z", "processedFiles": [ "0006b282-ac88-4c32-b76c-02476e972a04_githubprojects", "00739d70-842d-4d36-bb98-04bde51a2220_kubernetes", @@ -1572,6 +1572,10 @@ "ff8ec593-c675-4b66-a958-c1b09a851dd4_azure", "ffb38101-e112-4321-8b41-be6126d7c08a_tungshingcalendar", "ffb406a3-a4a6-4553-98be-16ea0681b1c0_illumio", - "ffce4ec2-2670-47a0-ab1c-87e35dae0017_starwarsplanetarydata" + "ffce4ec2-2670-47a0-ab1c-87e35dae0017_starwarsplanetarydata", + "003f3571-5f97-4f84-b126-f09b89e4247e_amadeus", + "0184d212-0684-4707-855c-06ede10609ec_xero", + "02f9e25f-4904-4350-8a2e-a6a0a69f9dfb_onenote", + "03c5710b-d3b1-4564-b797-2e6515b299a6_mcpmanager" ] } \ No newline at end of file