
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
pi-zai-tools
Advanced tools
Pi package that exposes Z.AI Web Search, Web Reader, Zread, and Vision MCP tools.
Pi package for Z.AI remote MCP tools.
It bundles one pi extension that exposes these capabilities:
zai_web_searchzai_web_readerzai_zread_search_doczai_zread_get_repo_structurezai_zread_read_filezai_vision_ui_to_artifact — Turn UI screenshots into code, prompts, specs, or descriptionszai_vision_extract_text — OCR screenshots for code, terminals, docs, and general textzai_vision_diagnose_error — Analyze error snapshots and propose actionable fixeszai_vision_understand_diagram — Interpret architecture, flow, UML, ER, and system diagramszai_vision_analyze_data_viz — Read charts and dashboards to surface insights and trendszai_vision_ui_diff_check — Compare two UI shots to flag visual or implementation driftzai_vision_analyze_image — General-purpose image understanding when other tools don't fitzai_vision_analyze_video — Inspect videos (local/remote ≤8 MB; MP4/MOV/M4V)npx to spawn the MCP server)pi install npm:pi-zai-tools
pi install /absolute/path/to/pi-zai-tools
You can copy examples.env as a starting point for local development.
export ZAI_API_KEY=your_api_key
Enable only selected modules:
export ZAI_ENABLED_MODULES=search,reader,zread,vision
Defaults to all modules when omitted.
Set search location (affects web search results):
export ZAI_SEARCH_LOCATION=us # or 'cn'
Defaults to us when omitted. Use cn for Chinese search results.
Override timeout and base URL:
export ZAI_TIMEOUT_MS=30000
export ZAI_BASE_URL=https://api.z.ai
Enable debug logging:
export ZAI_DEBUG=true
When enabled, logs MCP request/response details to stderr for troubleshooting.
search → zai_web_searchreader → zai_web_readerzread → zai_zread_search_doc, zai_zread_get_repo_structure, zai_zread_read_filevision → zai_vision_ui_to_artifact, zai_vision_extract_text, zai_vision_diagnose_error, zai_vision_understand_diagram, zai_vision_analyze_data_viz, zai_vision_ui_diff_check, zai_vision_analyze_image, zai_vision_analyze_videozai_web_searchquery: stringcount?: numberfreshness?: 'day' | 'week' | 'month' | 'year'zai_web_readerurl: stringzai_zread_search_docrepo: string (owner/repo)query: stringzai_zread_get_repo_structurerepo: string (owner/repo)zai_zread_read_filerepo: string (owner/repo)path: stringzai_vision_ui_to_artifactimage_source: string (file path or URL)output_type: string (code, prompt, spec, or description)prompt: stringzai_vision_extract_textimage_source: string (file path or URL)prompt: stringprogramming_language?: string (optional hint)zai_vision_diagnose_errorimage_source: string (file path or URL)prompt: stringcontext?: string (optional context)zai_vision_understand_diagramimage_source: string (file path or URL)prompt: stringdiagram_type?: string (optional hint)zai_vision_analyze_data_vizimage_source: string (file path or URL)prompt: stringanalysis_focus?: string (optional focus)zai_vision_ui_diff_checkexpected_image_source: string (file path or URL)actual_image_source: string (file path or URL)prompt: stringzai_vision_analyze_imageimage_source: string (file path or URL)prompt: stringzai_vision_analyze_videovideo_source: string (file path or URL, MP4/MOV/M4V, ≤8 MB)prompt: stringIf a tool reports that ZAI_API_KEY is missing, export it in your shell before launching pi.
Check that:
Increase:
export ZAI_TIMEOUT_MS=60000
owner/repoThis package includes:
ZAI_API_KEY is availableQuota is controlled by your Z.AI plan, not by this package.
Do not hardcode API keys in the package or your repo. Prefer environment variables.
MIT
FAQs
Pi package that exposes Z.AI Web Search, Web Reader, Zread, and Vision MCP tools.
We found that pi-zai-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.