From 7cfefc122be481894821cf61b87255e0a37800a1 Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Sun, 27 Apr 2025 15:43:45 +0000 Subject: [PATCH 1/2] feat: update last processed timestamp and add new processed files in process_locales log --- server/package.json | 3 ++- server/src/data/process_locales.log.json | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/server/package.json b/server/package.json index 13cbfabb..78a9f537 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 1ad68ce5..c38b234b 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 From a0b1843d4b08ddd027adf30d659868b467df5d61 Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Sun, 27 Apr 2025 15:48:32 +0000 Subject: [PATCH 2/2] feat: add data processing scripts and instructions for running background processes --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 066ad814..0ff88f71 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.