New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

patchxnote-agent

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

patchxnote-agent

Installer wrapper for the PatchXNote Agent CLI, local MCP server, and PatchXNote MCP Skill.

Source
npmnpm
Version
0.2.11
Version published
Weekly downloads
71
-88.4%
Maintainers
1
Weekly downloads
 
Created
Source

PatchXNote Agent npm wrapper

English README | 简体中文说明 | 飞书公开使用指南

This npm package is the installer and thin launcher wrapper for PatchXNote Agent. It downloads or verifies the matching native patchxnote CLI binary from GitHub Releases, verifies checksums.txt, and installs it into a user-writable directory before delegating runtime commands to that binary.

PatchXNote Agent is the local AI assistant connector for PatchXNote. It lets an MCP-capable AI assistant find PatchXNote records, inspect AI-generated results, create Markdown drafts, and manually send user-approved messages to Feishu, DingTalk, or another webhook.

Give this one-line prompt to a local-command-capable AI assistant:

Help me connect PatchXNote MCP and install the PatchXNote MCP Skill when the client supports Agent Skills. First, if this is a local command-capable environment, execute npx -y patchxnote-agent@latest skill install on this machine so future or long sessions remember the PatchXNote SOP; if skill installation is not supported, continue with MCP setup directly. Identify the MCP client you are running in; if this is a local MCP client such as Codex, Cursor, VS Code, Claude Desktop, Claude Code, or Windsurf, run npx -y patchxnote-agent@latest setup --client <client-id> on this machine in the same OS/runtime that will later launch the MCP server. If you are not sure which client ID to use, first run npx -y patchxnote-agent@latest mcp config and use the printed generic stdio config. For login, open the browser and let me complete PatchXNote phone-code authorization there; do not ask me to paste OTP codes, OAuth codes, authorization codes, access tokens, refresh tokens, or webhook secrets into chat. After setup, call patchxnote_get_current_user and patchxnote_list_memories with {"platform":"mobile","limit":5} to verify it works. References: https://github.com/ZsTs119/patchxnote-agent and https://patchx2025.feishu.cn/wiki/PnVRwYT7IirFPckairGcWPnHnCd

The npm package includes an Agent Skills package at skills/patchxnote-mcp/. Compatible agents can install or refresh it with:

npx -y patchxnote-agent@latest skill install

The skill teaches the AI the PatchXNote SOP. MCP setup and browser login still use the commands below. Use --agent <id> only after that client's local skills directory is verified.

Run setup for a supported local client:

npx -y patchxnote-agent@latest setup --client cursor
npx -y patchxnote-agent@latest setup --client vscode
npx -y patchxnote-agent@latest setup --client codex

PatchXNote Agent currently exposes two login surfaces and two MCP service shapes:

ModeEntryUse when
Browser MCP loginnpx -y patchxnote-agent@latest mcp loginRecommended for desktop editors and local MCP hosts.
Terminal CLI loginnpx -y patchxnote-agent@latest loginTerminal-only users, headless runtimes, or the legacy local Agent path.
Local MCP servicenpx -y patchxnote-agent@latest mcp serveVS Code, Cursor, Codex, Claude Desktop, Windsurf, Trae, Qoder, WorkBuddy, and other stdio MCP clients.
Hosted remote MCP gatewayhttps://ws-lab.patch-x.cn/patchnote-test-api/mcpFeishu Aily, Doubao Work Partner, Tencent Agent Development Platform, enterprise WorkBuddy, and other platform clients that cannot run local commands.

Log in with browser OAuth, then check or clear the MCP login state:

npx -y patchxnote-agent@latest mcp login
npx -y patchxnote-agent@latest mcp status
npx -y patchxnote-agent@latest mcp logout --local-only

Print the generic MCP config manually:

npx -y patchxnote-agent@latest mcp config

The generated config uses this universal local stdio MCP command:

npx -y patchxnote-agent@latest mcp serve

The older terminal Agent login remains available for legacy local CLI/MCP fallback:

npx -y patchxnote-agent@latest login

setup reuses the same mcp login browser OAuth flow. The GoServer website owns phone OTP input; the local Agent owns the loopback callback, token exchange, secure storage, and stdio bridge. mcp serve never opens a browser during editor startup. It stores credentials in the OS-native keychain and keeps MCP config free of phone numbers, OTP codes, access tokens, refresh tokens, webhook secrets, and base URL by default.

P0 local client IDs: vscode, cursor, codex, claude-code, claude-desktop, windsurf, trae, qoder, workbuddy.

Platform clients such as Feishu Aily, Doubao Work Partner, Tencent Agent Development Platform, and enterprise WorkBuddy need the hosted remote MCP gateway plus platform-console acceptance; local npx setup is for desktop and terminal clients.

If a client rejects npx or times out during first binary download, run the stable absolute-path fallback:

npx -y patchxnote-agent@latest install --print-config

It currently exposes 19 MCP tools grouped around account/record lookup, webhook configuration and sending, and explicit AI result inspection.

Common CLI examples:

patchxnote model-io list --platform mobile
patchxnote model-io packaged-result --memory-id <memory_or_request_id> --platform mobile --out ./packaged-result.json
patchxnote model-io provider-response --request-id <request_id> --platform mobile --out ./provider-response.json
patchxnote webhook set "Product Feishu" --type feishu --url-stdin
patchxnote webhook send --target "Product Feishu" --file ./message.md

Webhook aliases can contain Chinese text, spaces, and dots.

Server-backed PatchXNote data access remains read-only through dedicated /v1/agent/** APIs. Record lookup can include formal saved results and readable model-generated outputs returned by the server. Local webhook tools can configure named targets and perform explicit manual sends. AI result tools can inspect source text, AI response, parsed result, and final result when explicitly called. MCP config contains no phone number, OTP, access token, refresh token, webhook secret, or base URL by default. The CLI stores credentials and webhook secrets in the OS-native keychain when available, never lists webhook URLs or signing secrets back, and does not expose raw audio, audio downloads, hardware write actions, payment flows, or Admin APIs.

For full installation, MCP setup, security notes, and troubleshooting, read the GitHub documentation:

Keywords

patchxnote

FAQs

Package last updated on 04 Sep 2026

Related posts