@qnx/client 0.8.7 → 0.8.8
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.
- package/README.md +50 -33
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @qnx/client
|
|
2
2
|
|
|
3
3
|
`@qnx/client` provides utility classes and types to help standardize and simplify handling of API responses on the client side. It supports typed access to data, messages, and errors from server responses.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
AI tools for this package are available via the [QNX MCP Server](https://qnx-mcp-server.vercel.app).
|
|
8
|
-
|
|
9
|
-
**Endpoint:** `https://qnx-mcp-server.vercel.app/mcp/client`
|
|
10
|
-
|
|
11
|
-
| Tool | Description |
|
|
12
|
-
| --- | --- |
|
|
13
|
-
| `get-client-docs` | Documentation for ApiResponse, ApiSuccessResponse, ApiErrorResponse classes, TypeScript types, and usage patterns |
|
|
14
|
-
| `build-client-response` | Instantiate a response class with real values — see what each method returns |
|
|
15
|
-
|
|
16
|
-
**Supported clients:** Claude Desktop · Claude Code · Cursor · Windsurf · Cline · Continue.dev · Codex CLI · ChatGPT Desktop
|
|
17
|
-
|
|
18
|
-
**Configuration:**
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
"mcpServers": {
|
|
22
|
-
"qnx-client": {
|
|
23
|
-
"url": "https://qnx-mcp-server.vercel.app/mcp/client"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
```
|
|
5
|
+
> 🤖 MCP Server: `https://qnx-mcp-server.vercel.app/mcp/client`
|
|
28
6
|
|
|
29
7
|
## ✨ Features
|
|
30
8
|
|
|
@@ -35,8 +13,6 @@ AI tools for this package are available via the [QNX MCP Server](https://qnx-mcp
|
|
|
35
13
|
|
|
36
14
|
## 📦 Installation
|
|
37
15
|
|
|
38
|
-
You can install via your preferred package manager:
|
|
39
|
-
|
|
40
16
|
```bash
|
|
41
17
|
# npm
|
|
42
18
|
npm install @qnx/client
|
|
@@ -116,9 +92,9 @@ const error = apiRes.getError()
|
|
|
116
92
|
const errorCode = apiRes.getErrorCode()
|
|
117
93
|
```
|
|
118
94
|
|
|
119
|
-
|
|
95
|
+
## 📘 Types
|
|
120
96
|
|
|
121
|
-
|
|
97
|
+
### `ApiResponseValue<T>`
|
|
122
98
|
|
|
123
99
|
```ts
|
|
124
100
|
import type { ApiResponseValue } from '@qnx/client'
|
|
@@ -139,7 +115,7 @@ const response: ApiResponseValue<number> = {
|
|
|
139
115
|
}
|
|
140
116
|
```
|
|
141
117
|
|
|
142
|
-
|
|
118
|
+
### `ApiSuccessResponseValue<T>`
|
|
143
119
|
|
|
144
120
|
```ts
|
|
145
121
|
import type { ApiSuccessResponseValue } from '@qnx/client'
|
|
@@ -150,7 +126,7 @@ const successResponse: ApiSuccessResponseValue<number> = {
|
|
|
150
126
|
}
|
|
151
127
|
```
|
|
152
128
|
|
|
153
|
-
|
|
129
|
+
### `ApiErrorResponseValue`
|
|
154
130
|
|
|
155
131
|
```ts
|
|
156
132
|
import type { ApiErrorResponseValue } from '@qnx/client'
|
|
@@ -165,11 +141,52 @@ const errorResponse: ApiErrorResponseValue = {
|
|
|
165
141
|
}
|
|
166
142
|
```
|
|
167
143
|
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## 🤖 MCP Server
|
|
147
|
+
|
|
148
|
+
AI tools for this package are available via the [QNX MCP Server](https://qnx-mcp-server.vercel.app).
|
|
149
|
+
|
|
150
|
+
**Endpoint:** `https://qnx-mcp-server.vercel.app/mcp/client`
|
|
151
|
+
|
|
152
|
+
| Tool | Description |
|
|
153
|
+
| ---- | ----------- |
|
|
154
|
+
| `get-client-docs` | Documentation for ApiResponse, ApiSuccessResponse, ApiErrorResponse classes, TypeScript types, and usage patterns |
|
|
155
|
+
| `build-client-response` | Instantiate a response class with real values — see what each method returns |
|
|
156
|
+
|
|
157
|
+
**Supported clients:** Claude Desktop · Claude Code · Cursor · Windsurf · Cline · Continue.dev · Codex CLI · ChatGPT Desktop
|
|
158
|
+
|
|
159
|
+
### HTTP (Streamable HTTP)
|
|
160
|
+
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"mcpServers": {
|
|
164
|
+
"qnx-client": {
|
|
165
|
+
"url": "https://qnx-mcp-server.vercel.app/mcp/client"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### stdio (via npx)
|
|
172
|
+
|
|
173
|
+
```json
|
|
174
|
+
{
|
|
175
|
+
"mcpServers": {
|
|
176
|
+
"qnx-client": {
|
|
177
|
+
"command": "npx",
|
|
178
|
+
"args": ["-y", "@qnx/mcp", "client"]
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
168
186
|
## 🤝 Contributing
|
|
169
187
|
|
|
170
|
-
Pull requests are welcome
|
|
171
|
-
|
|
172
|
-
Ensure tests are updated for any feature changes.
|
|
188
|
+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
|
189
|
+
Please make sure to update tests as appropriate.
|
|
173
190
|
|
|
174
191
|
## 📄 License
|
|
175
192
|
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@qnx/client",
|
|
3
3
|
"description": "@qnx/client for handling response",
|
|
4
4
|
"author": "Yatendra Kushwaha <https://github.com/yatendra121>",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.8",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/yatendra121",
|
|
8
8
|
"homepage": "https://github.com/yatendra121/qnx/tree/main/packages/client",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@qnx/client",
|
|
3
3
|
"description": "@qnx/client for handling response",
|
|
4
4
|
"author": "Yatendra Kushwaha <https://github.com/yatendra121>",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.8",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/yatendra121",
|
|
8
8
|
"homepage": "https://github.com/yatendra121/qnx/tree/main/packages/client",
|