Repository navigation
Releases
v2.2.1 - 修复 proxy 模式 OAuth 连接错误
修复内容\n\n### Bug 1: isTokenValid 检查路径错误\n原代码检查 token.access_token.expires_at,但 access_token 是 JWT 字符串(不是对象),导致检查永远返回 false。每次启动 connector 都会跳过有效检查、直接触发 refresh。\n\n修复:改为读顶层的 token.expires_at。\n\n### Bug 2: proxy 模式静默 OAuth 不可靠\n当 refresh_token 过期时,proxy 模式(connector 作为 WorkBuddy/Kimi Work 的子进程)会静默打开浏览器走 OAuth。但父进程有启动超时,浏览器回调到 127.0.0.1:38271 时子进程已被杀掉,导致 ERR_CONNECTION_REFUSED。\n\n修复:在非 TTY 模式下直接抛清晰错误,提示用户在终端运行 --setup 重新授权。\n\n## 用户影响\n- 当前 token 已过期的用户:需要手动跑一次 node bin/ns-mcp-connector.js --setup 重新授权\n- 修复后:未来 24h 内自动 refresh,再过期时会有清晰错误提示,不会再有静默失败的浏览器流程\n\n## NetSuite 限制说明\nNetSuite 的 refresh_token 寿命只有 ~24h,过期后必须重新授权(这是平台限制,无法绕过)。建议每天首次使用前跑一次 --setup。
v2.2.0 - Kimi Work Support
What's New
Kimi Work Support (One Command)
After completing --setup once, connect Kimi Work with a single command:
node bin/ns-mcp-connector.js --kimiIt automatically:
- Locates Kimi Work's runtime directory (macOS/Windows/Linux) or honors
KIMI_WORK_HOME - Writes the connector into Kimi Work's
mcp.json - Shares tokens with WorkBuddy (
~/.ns-mcp/tokens.json) — refresh from either client works for both
Then fully restart Kimi Work and start a new session.
Docs
- README: bilingual Kimi Work installation sections (Chinese + English)
- Troubleshooting tip: re-run
--kimiif a Kimi Work update wipes the config
v2.1.0 - Renamed to NetSuite MCP for WorkBuddy + Bilingual README
What's New
Project Renamed
Project officially renamed from "NS MCP China" to "NetSuite MCP for WorkBuddy" for clarity and discoverability.
Bilingual Beginner-Friendly README
Complete rewrite of README.md with:
- Chinese + English bilingual content
- 4-step installation guide designed for non-technical users:
- Configure NetSuite integration (10 min)
- Clone and install (1 min)
- Run setup wizard (30 sec)
- Restart and verify
- Simplified language throughout — no jargon, no assumptions
Other Changes
- npm package name:
ns-mcp-china→netsuite-mcp-workbuddy - mcpServers config key:
ns-mcp-china→netsuite-mcp-workbuddy - Connector UI text updated
- CHANGELOG updated with v2.1.0 entry
Upgrade from v2.0.0
If you're already using v2.0.0, run setup again to update your mcp.json config:
git pull origin master
node bin/ns-mcp-connector.js --setupThen restart your AI assistant. The old ns-mcp-china key in mcp.json will be replaced with netsuite-mcp-workbuddy.
v2.0.0 - OAuth 2.0 Connector with Web Setup
What's New
OAuth 2.0 Authorization Code + PKCE
Replaced the legacy OAuth 1.0a TBA with a modern OAuth 2.0 flow that matches NetSuite's official MCP integration pattern.
Web-Based Setup Wizard
Run node bin/ns-mcp-connector.js --setup and a browser opens with a 3-field form. Fill in your endpoint URL, Client ID, and Client Secret, click connect, authorize in NetSuite — done.
Automatic Token Refresh
The connector automatically refreshes expired access tokens using refresh_token. If the refresh token also expires, it opens the browser for re-authorization. No manual intervention needed.
Zero External Dependencies
The connector (bin/ns-mcp-connector.js) uses only Node.js built-in modules. Clone and run — no npm install required.
Security Improvements
- Tokens stored in
~/.ns-mcp/tokens.jsonwith permission 600 mcp.jsoncontains no credentials — only a path to the connector script- All OAuth traffic goes through localhost callback
Breaking Changes
- OAuth 1.0a TBA credentials no longer supported in the connector
- Environment variables renamed:
NS_CLIENT_ID→NETSUITE_CLIENT_ID,NS_CLIENT_SECRET→NETSUITE_CLIENT_SECRET mcp.jsonstructure changed — run--setupto migrate