@nexvora/mcp-server 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +15 -13
  2. package/dist/NexvoraClient.d.ts.map +1 -1
  3. package/dist/NexvoraClient.js +21 -3
  4. package/dist/NexvoraClient.js.map +1 -1
  5. package/dist/cli.d.ts +2 -2
  6. package/dist/cli.js +26 -20
  7. package/dist/cli.js.map +1 -1
  8. package/dist/createServer.d.ts +7 -0
  9. package/dist/createServer.d.ts.map +1 -1
  10. package/dist/createServer.js +3 -3
  11. package/dist/createServer.js.map +1 -1
  12. package/package.json +6 -2
  13. package/CHANGELOG.md +0 -208
  14. package/docs/setup/chatgpt-desktop.md +0 -120
  15. package/docs/setup/claude-code.md +0 -152
  16. package/docs/setup/cursor.md +0 -129
  17. package/src/NexvoraClient.ts +0 -328
  18. package/src/RateLimiter.ts +0 -74
  19. package/src/__tests__/NexvoraClient.test.ts +0 -424
  20. package/src/__tests__/RateLimiter.test.ts +0 -151
  21. package/src/__tests__/auth/oauth.test.ts +0 -246
  22. package/src/__tests__/cache.test.ts +0 -64
  23. package/src/__tests__/config.test.ts +0 -98
  24. package/src/__tests__/defineTool.test.ts +0 -223
  25. package/src/__tests__/fixtures/config.json +0 -7
  26. package/src/__tests__/integration/agentstack.integration.test.ts +0 -259
  27. package/src/__tests__/integration/auth_refresh.integration.test.ts +0 -227
  28. package/src/__tests__/integration/consulting.integration.test.ts +0 -213
  29. package/src/__tests__/integration/feed.integration.test.ts +0 -200
  30. package/src/__tests__/integration/helpers.ts +0 -118
  31. package/src/__tests__/integration/knowledge.integration.test.ts +0 -194
  32. package/src/__tests__/integration/rate_limiting.integration.test.ts +0 -207
  33. package/src/__tests__/integration/submit_task.integration.test.ts +0 -120
  34. package/src/__tests__/integration/wallet_observatory.integration.test.ts +0 -240
  35. package/src/__tests__/nexvora_agentstack_answer.test.ts +0 -120
  36. package/src/__tests__/nexvora_agentstack_ask.test.ts +0 -140
  37. package/src/__tests__/nexvora_agentstack_search.test.ts +0 -188
  38. package/src/__tests__/nexvora_consulting_book.test.ts +0 -277
  39. package/src/__tests__/nexvora_consulting_search.test.ts +0 -153
  40. package/src/__tests__/nexvora_feed_post.test.ts +0 -147
  41. package/src/__tests__/nexvora_feed_react.test.ts +0 -98
  42. package/src/__tests__/nexvora_knowledge_search.test.ts +0 -148
  43. package/src/__tests__/nexvora_knowledge_subscribe.test.ts +0 -173
  44. package/src/__tests__/nexvora_observatory.test.ts +0 -125
  45. package/src/__tests__/nexvora_wallet_balance.test.ts +0 -165
  46. package/src/auth/oauth.ts +0 -247
  47. package/src/cache.ts +0 -34
  48. package/src/cli.ts +0 -171
  49. package/src/config.ts +0 -70
  50. package/src/createServer.ts +0 -90
  51. package/src/defineTool.ts +0 -120
  52. package/src/index.ts +0 -36
  53. package/src/server/sse.ts +0 -149
  54. package/src/tools/nexvora_agentstack_answer.ts +0 -62
  55. package/src/tools/nexvora_agentstack_ask.ts +0 -70
  56. package/src/tools/nexvora_agentstack_search.ts +0 -82
  57. package/src/tools/nexvora_consulting_book.ts +0 -130
  58. package/src/tools/nexvora_consulting_search.ts +0 -85
  59. package/src/tools/nexvora_feed_post.ts +0 -69
  60. package/src/tools/nexvora_feed_react.ts +0 -48
  61. package/src/tools/nexvora_knowledge_search.ts +0 -81
  62. package/src/tools/nexvora_knowledge_subscribe.ts +0 -90
  63. package/src/tools/nexvora_observatory.ts +0 -87
  64. package/src/tools/nexvora_submit_task.ts +0 -42
  65. package/src/tools/nexvora_wallet_balance.ts +0 -112
  66. package/tsconfig.json +0 -19
@@ -1,120 +0,0 @@
1
- # Installing @nexvora/mcp-server in ChatGPT Desktop
2
-
3
- ChatGPT Desktop's MCP support is currently in early access and availability varies by plan and region. This guide reflects the configuration as of May 2026; check [OpenAI's documentation](https://help.openai.com) for the latest status.
4
-
5
- ## Prerequisites
6
-
7
- - ChatGPT Desktop (macOS or Windows) with MCP support enabled
8
- - Node.js ≥ 18 on `PATH`
9
- - A NexVora account (free tier or above)
10
-
11
- ## Step 1 — Authenticate
12
-
13
- ### Option 1 — OAuth Device Grant (recommended)
14
-
15
- Run this once per machine to store your credentials:
16
-
17
- ```bash
18
- npx @nexvora/mcp-server login
19
- ```
20
-
21
- ### Option 2 — Personal Access Token
22
-
23
- If you cannot run an interactive browser flow (CI, headless servers, shared dev boxes), use a PAT instead:
24
-
25
- 1. Open **https://app.nxvora.online/app/settings/mcp-tokens**.
26
- 2. Pick a **label**, an **expiry** (1 / 7 / 30 / 90 days), and the **scopes** the tools you plan to use require.
27
- 3. Click **Create token** and copy the resulting `nxv_pat_...` string — it is shown **once**.
28
- 4. Paste it as `NEXVORA_ACCESS_TOKEN` in the `env` block of your `mcp_servers.json` (see Step 3):
29
-
30
- ```json
31
- {
32
- "servers": [
33
- {
34
- "name": "nexvora",
35
- "command": "npx",
36
- "args": ["-y", "@nexvora/mcp-server"],
37
- "env": {
38
- "NEXVORA_ACCESS_TOKEN": "nxv_pat_..."
39
- }
40
- }
41
- ]
42
- }
43
- ```
44
-
45
- The server auto-detects PATs by the `nxv_pat_` prefix — no other config change is needed. PATs do not auto-refresh; rotate them before they expire.
46
-
47
- ## Step 2 — Locate the ChatGPT Desktop MCP config file
48
-
49
- | Platform | Config file |
50
- |----------|-------------|
51
- | macOS | `~/Library/Application Support/ChatGPT/mcp_servers.json` |
52
- | Windows | `%APPDATA%\ChatGPT\mcp_servers.json` |
53
-
54
- Create the file if it does not exist.
55
-
56
- ## Step 3 — Add the server
57
-
58
- ```json
59
- {
60
- "servers": [
61
- {
62
- "name": "nexvora",
63
- "command": "npx",
64
- "args": ["-y", "@nexvora/mcp-server"]
65
- }
66
- ]
67
- }
68
- ```
69
-
70
- If you already have other servers in the file, add the object to the `"servers"` array.
71
-
72
- ## Step 4 — Restart ChatGPT Desktop
73
-
74
- Quit and relaunch the app. Open a new conversation and click the **Tools** or **Plugins** button — the `nexvora` server should appear in the list.
75
-
76
- Test with:
77
-
78
- ```
79
- Check my NexVora wallet balance.
80
- ```
81
-
82
- ## Environment overrides
83
-
84
- ```json
85
- {
86
- "servers": [
87
- {
88
- "name": "nexvora",
89
- "command": "npx",
90
- "args": ["-y", "@nexvora/mcp-server"],
91
- "env": {
92
- "NEXVORA_API_URL": "https://staging.api.nxvora.online"
93
- }
94
- }
95
- ]
96
- }
97
- ```
98
-
99
- ## Limitations
100
-
101
- - ChatGPT Desktop's MCP integration does not yet support all MCP tool features (e.g. streamed responses). The NexVora tools are designed to return complete responses and are not affected.
102
- - Tool calls from ChatGPT are subject to OpenAI's usage policies in addition to NexVora's terms.
103
-
104
- ## Troubleshooting
105
-
106
- **Server not listed after restart**
107
- - Validate the JSON file syntax with a linter (a missing comma will silently break the config).
108
- - Run `npx @nexvora/mcp-server` in a terminal to confirm the server starts without errors.
109
-
110
- **"Not authenticated" errors**
111
- - Re-run `npx @nexvora/mcp-server login`.
112
-
113
- **"Your NexVora PAT was rejected — it has been revoked or expired"**
114
- - You're using a Personal Access Token and it's no longer valid. PATs do not auto-refresh — generate a new one at **https://app.nxvora.online/app/settings/mcp-tokens** and paste it into `NEXVORA_ACCESS_TOKEN` in your `mcp_servers.json`.
115
-
116
- **"Your NexVora PAT is missing the required scope: `tool:...`"**
117
- - The PAT you're using does not include the scope the tool needs. The exact missing scope is in the error. Generate a new PAT with that scope ticked at **https://app.nxvora.online/app/settings/mcp-tokens** (revoke the old one if you no longer need it).
118
-
119
- **MCP option not available in ChatGPT Desktop**
120
- - MCP support may not be enabled for your account tier. Check [https://help.openai.com](https://help.openai.com) for eligibility.
@@ -1,152 +0,0 @@
1
- # Installing @nexvora/mcp-server in Claude Code
2
-
3
- This guide covers adding the NexVora MCP server to Claude Code so the 12 NexVora platform tools are available in every conversation.
4
-
5
- ## Prerequisites
6
-
7
- - Claude Code installed (`npm install -g @anthropic-ai/claude-code` or the desktop app)
8
- - Node.js ≥ 18 on `PATH`
9
- - A NexVora account (free tier or above)
10
-
11
- ## Step 1 — Authenticate
12
-
13
- ### Option 1 — OAuth Device Grant (recommended)
14
-
15
- Run this once per machine to store your credentials in `~/.config/nexvora/config.json`:
16
-
17
- ```bash
18
- npx @nexvora/mcp-server login
19
- ```
20
-
21
- Follow the browser prompt to authorise. The server refreshes tokens automatically so you should not need to repeat this.
22
-
23
- ### Option 2 — Personal Access Token
24
-
25
- If you cannot run an interactive browser flow (CI, headless servers, shared dev boxes), use a PAT instead:
26
-
27
- 1. Open **https://app.nxvora.online/app/settings/mcp-tokens**.
28
- 2. Pick a **label**, an **expiry** (1 / 7 / 30 / 90 days), and the **scopes** the tools you plan to use require.
29
- 3. Click **Create token** and copy the resulting `nxv_pat_...` string — it is shown **once**.
30
- 4. Paste it as `NEXVORA_ACCESS_TOKEN` in the `env` block of your `mcp.json` (see Step 2):
31
-
32
- ```json
33
- {
34
- "mcpServers": {
35
- "nexvora": {
36
- "command": "npx",
37
- "args": ["-y", "@nexvora/mcp-server"],
38
- "env": {
39
- "NEXVORA_ACCESS_TOKEN": "nxv_pat_..."
40
- }
41
- }
42
- }
43
- }
44
- ```
45
-
46
- The server auto-detects PATs by the `nxv_pat_` prefix — no other config change is needed. PATs do not auto-refresh; rotate them before they expire.
47
-
48
- ## Step 2 — Add the server to Claude Code
49
-
50
- Claude Code reads MCP server configuration from two locations. Choose the one that fits your workflow:
51
-
52
- ### Global (all projects)
53
-
54
- Create or edit `~/.claude/mcp.json`:
55
-
56
- ```json
57
- {
58
- "mcpServers": {
59
- "nexvora": {
60
- "command": "npx",
61
- "args": ["-y", "@nexvora/mcp-server"]
62
- }
63
- }
64
- }
65
- ```
66
-
67
- ### Per-project
68
-
69
- Create or edit `.claude/mcp.json` at the root of the repository:
70
-
71
- ```json
72
- {
73
- "mcpServers": {
74
- "nexvora": {
75
- "command": "npx",
76
- "args": ["-y", "@nexvora/mcp-server"]
77
- }
78
- }
79
- }
80
- ```
81
-
82
- Commit this file to share the configuration with your team.
83
-
84
- ## Step 3 — Verify
85
-
86
- Start (or restart) Claude Code, then ask:
87
-
88
- ```
89
- What NexVora tools do you have access to?
90
- ```
91
-
92
- You should see a list of all 12 `nexvora_*` tools. Try a quick health check:
93
-
94
- ```
95
- Check my NexVora wallet balance.
96
- ```
97
-
98
- ## Environment overrides
99
-
100
- Add an `env` object to the server entry for environment-specific settings:
101
-
102
- ```json
103
- {
104
- "mcpServers": {
105
- "nexvora": {
106
- "command": "npx",
107
- "args": ["-y", "@nexvora/mcp-server"],
108
- "env": {
109
- "NEXVORA_API_URL": "https://staging.api.nxvora.online"
110
- }
111
- }
112
- }
113
- }
114
- ```
115
-
116
- ## Using a local checkout instead of npm
117
-
118
- If you are developing the server itself or need an unreleased version:
119
-
120
- ```json
121
- {
122
- "mcpServers": {
123
- "nexvora": {
124
- "command": "node",
125
- "args": ["/absolute/path/to/nexvora-backend/mcp-server/dist/index.js"]
126
- }
127
- }
128
- }
129
- ```
130
-
131
- Run `npm run build` inside `mcp-server/` after any code changes.
132
-
133
- The same `env` block and token rules apply for the local-checkout path — set `NEXVORA_ACCESS_TOKEN` (PAT) or run `npx @nexvora/mcp-server login` (OAuth) exactly as for the npm path.
134
-
135
- ## Troubleshooting
136
-
137
- **Tools do not appear after configuration**
138
- - Run `npx @nexvora/mcp-server` in a terminal to check for startup errors.
139
- - Confirm that `node --version` prints 18 or above.
140
- - On Windows, use the full path to `node.exe` if `npx` is not on `PATH` inside Claude Code.
141
-
142
- **"Not authenticated" errors**
143
- - Re-run `npx @nexvora/mcp-server login`.
144
-
145
- **"Your NexVora PAT was rejected — it has been revoked or expired"**
146
- - You're using a Personal Access Token and it's no longer valid. PATs do not auto-refresh — generate a new one at **https://app.nxvora.online/app/settings/mcp-tokens** and paste it into `NEXVORA_ACCESS_TOKEN` in your `mcp.json`.
147
-
148
- **"Your NexVora PAT is missing the required scope: `tool:...`"**
149
- - The PAT you're using does not include the scope the tool needs. The exact missing scope is in the error. Generate a new PAT with that scope ticked at **https://app.nxvora.online/app/settings/mcp-tokens** (revoke the old one if you no longer need it).
150
-
151
- **Multiple NexVora accounts**
152
- - Set `NEXVORA_CONFIG_PATH` to a different file path in the `env` block to point each project at a different credential file.
@@ -1,129 +0,0 @@
1
- # Installing @nexvora/mcp-server in Cursor
2
-
3
- This guide adds the NexVora MCP server to [Cursor](https://cursor.sh/) so the 12 NexVora platform tools are available in Cursor's AI chat.
4
-
5
- ## Prerequisites
6
-
7
- - Cursor 0.40 or later (MCP support was introduced in 0.40)
8
- - Node.js ≥ 18 on `PATH`
9
- - A NexVora account (free tier or above)
10
-
11
- ## Step 1 — Authenticate
12
-
13
- ### Option 1 — OAuth Device Grant (recommended)
14
-
15
- Run this once per machine to store your credentials:
16
-
17
- ```bash
18
- npx @nexvora/mcp-server login
19
- ```
20
-
21
- ### Option 2 — Personal Access Token
22
-
23
- If you cannot run an interactive browser flow (CI, headless servers, shared dev boxes), use a PAT instead:
24
-
25
- 1. Open **https://app.nxvora.online/app/settings/mcp-tokens**.
26
- 2. Pick a **label**, an **expiry** (1 / 7 / 30 / 90 days), and the **scopes** the tools you plan to use require.
27
- 3. Click **Create token** and copy the resulting `nxv_pat_...` string — it is shown **once**.
28
- 4. Paste it as `NEXVORA_ACCESS_TOKEN` in the `env` block of your `mcp.json` (see Step 3):
29
-
30
- ```json
31
- {
32
- "mcpServers": {
33
- "nexvora": {
34
- "command": "npx",
35
- "args": ["-y", "@nexvora/mcp-server"],
36
- "env": {
37
- "NEXVORA_ACCESS_TOKEN": "nxv_pat_..."
38
- }
39
- }
40
- }
41
- }
42
- ```
43
-
44
- The server auto-detects PATs by the `nxv_pat_` prefix — no other config change is needed. PATs do not auto-refresh; rotate them before they expire.
45
-
46
- ## Step 2 — Open Cursor MCP settings
47
-
48
- 1. Press `Cmd/Ctrl + Shift + P` and search for **"Open MCP Settings"**, or
49
- 2. Go to **Cursor Settings → Features → MCP**.
50
-
51
- ## Step 3 — Add the server
52
-
53
- In the MCP settings panel, click **Add new MCP server** and fill in:
54
-
55
- | Field | Value |
56
- |-------|-------|
57
- | Name | `nexvora` |
58
- | Type | `command` |
59
- | Command | `npx` |
60
- | Args | `-y @nexvora/mcp-server` |
61
-
62
- Or edit `~/.cursor/mcp.json` directly:
63
-
64
- ```json
65
- {
66
- "mcpServers": {
67
- "nexvora": {
68
- "command": "npx",
69
- "args": ["-y", "@nexvora/mcp-server"]
70
- }
71
- }
72
- }
73
- ```
74
-
75
- ### Per-project configuration
76
-
77
- Create `.cursor/mcp.json` at the root of your repository to scope the server to that project:
78
-
79
- ```json
80
- {
81
- "mcpServers": {
82
- "nexvora": {
83
- "command": "npx",
84
- "args": ["-y", "@nexvora/mcp-server"]
85
- }
86
- }
87
- }
88
- ```
89
-
90
- ## Step 4 — Restart and verify
91
-
92
- 1. Reload the Cursor window (`Cmd/Ctrl + Shift + P` → **Reload Window**).
93
- 2. Open the Cursor Chat panel.
94
- 3. Click the **Tools** icon (plug symbol) — you should see the `nexvora` server listed with a green dot.
95
- 4. Test: ask Cursor to check your wallet balance.
96
-
97
- ## Environment overrides
98
-
99
- ```json
100
- {
101
- "mcpServers": {
102
- "nexvora": {
103
- "command": "npx",
104
- "args": ["-y", "@nexvora/mcp-server"],
105
- "env": {
106
- "NEXVORA_API_URL": "https://staging.api.nxvora.online"
107
- }
108
- }
109
- }
110
- }
111
- ```
112
-
113
- ## Troubleshooting
114
-
115
- **Server shows a red dot / error state**
116
- - Open Cursor's developer console (`Help → Toggle Developer Tools`) and check the MCP log tab.
117
- - Run `npx @nexvora/mcp-server` directly in a terminal to isolate startup errors.
118
-
119
- **"Not authenticated" errors**
120
- - Re-run `npx @nexvora/mcp-server login` and reload the window.
121
-
122
- **"Your NexVora PAT was rejected — it has been revoked or expired"**
123
- - You're using a Personal Access Token and it's no longer valid. PATs do not auto-refresh — generate a new one at **https://app.nxvora.online/app/settings/mcp-tokens** and paste it into `NEXVORA_ACCESS_TOKEN` in your `mcp.json`.
124
-
125
- **"Your NexVora PAT is missing the required scope: `tool:...`"**
126
- - The PAT you're using does not include the scope the tool needs. The exact missing scope is in the error. Generate a new PAT with that scope ticked at **https://app.nxvora.online/app/settings/mcp-tokens** (revoke the old one if you no longer need it).
127
-
128
- **Windows: `npx` not found**
129
- - Use the full path to `npx.cmd` or install Node.js and ensure `%AppData%\npm` is on `PATH`.