Discourse MCP 用户 API 密钥生成器 Nodejs 20 错误

您运行的是什么操作系统、NodeJS 和 OpenSSL 版本?

我在以下环境中运行正常:

Linux
Node 24.5
OpenSSL 3.6.0


◄ 0s ◎ npx @discourse/mcp@latest generate-user-api-key \
             --site https://meta.discourse.org \
             --save-to profile.json

🔑 Discourse 用户 API 密钥生成器

站点: https://meta.discourse.org
范围: read,write

正在生成 RSA 密钥对...
✓ 密钥对已生成
请访问此 URL 以授权应用程序:

https://meta.discourse.org/user-api-key/new?application_name=Discourse+MCP&client_id=discourse-mcp&scopes=read%2Cwrite&public_key=-----BEGIN+PUBLIC+KEY-----blablabla----END+PUBLIC+KEY-----%0A&nonce=1764619683010

授权后,您将被重定向到一个类似以下的 URL:
  discourse://auth_redirect?payload=<encrypted_payload>

或者您可能会在页面上看到加密的 payload。

在此处粘贴加密的 payload:  longkey

正在解密 payload...
✓ 用户 API 密钥已成功检索

✓ 保存到配置文件: profile.json

{
  "success": true,
  "profile": "profile.json"
}

◄ 16s ◎ node --version
v24.5.0

◄ 0s ◎ openssl --version
OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025)
2 个赞