@tenkeybridge/mcp 0.1.0
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/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/cli.js +3157 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +3175 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +74 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.js +3136 -0
- package/dist/index.js.map +1 -0
- package/package.json +63 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Empire Innovations
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# @tenkeybridge/mcp
|
|
2
|
+
|
|
3
|
+
**MCP server for [TenkeyBridge](https://tenkeybridge.com) — give AI agents QuickBooks
|
|
4
|
+
Desktop & Enterprise through the QuickBooks Online–compatible REST API.**
|
|
5
|
+
|
|
6
|
+
Five tools — `query`, `get`, `create`, `update`, `delete` — over the live API, plus a
|
|
7
|
+
compatibility-catalog resource (`compat://catalog`, `compat://entity/{name}`) so agents
|
|
8
|
+
can check entity and field support *before* calling instead of learning by 400. Errors
|
|
9
|
+
come back structured (`status`, `code`, `fixes`, `docsUrl`) for self-correction.
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
Create an OAuth client and connect your company file in the
|
|
14
|
+
[developer portal](https://api.tenkeybridge.com/portal), then add the server to your
|
|
15
|
+
MCP host config (Claude Code / Claude Desktop shown; any MCP client works). The portal
|
|
16
|
+
issues the client id/secret; the refresh token comes from the OAuth code flow — see the
|
|
17
|
+
[Authentication guide](https://docs.tenkeybridge.com/guide/authentication).
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"tenkeybridge": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "@tenkeybridge/mcp"],
|
|
25
|
+
"env": {
|
|
26
|
+
"TKB_REALM_ID": "9130350000000000",
|
|
27
|
+
"TKB_CLIENT_ID": "tkb-ci-example",
|
|
28
|
+
"TKB_CLIENT_SECRET": "…",
|
|
29
|
+
"TKB_REFRESH_TOKEN": "…"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Refresh tokens rotate; the server persists the newest pair to
|
|
37
|
+
`~/.tenkeybridge/mcp-tokens-<realmId>.json` (override with `TKB_TOKEN_FILE`) and picks
|
|
38
|
+
it up on restart. Alternatives: a static `TKB_ACCESS_TOKEN`, and `TKB_BASE_URL` to
|
|
39
|
+
point at a non-production gateway.
|
|
40
|
+
|
|
41
|
+
## Environment
|
|
42
|
+
|
|
43
|
+
| Variable | Required | Purpose |
|
|
44
|
+
| --- | --- | --- |
|
|
45
|
+
| `TKB_REALM_ID` | yes | Realm id of the connected company file (shown in the portal). |
|
|
46
|
+
| `TKB_CLIENT_ID` / `TKB_CLIENT_SECRET` / `TKB_REFRESH_TOKEN` | yes* | OAuth client id/secret from the portal, plus a refresh token from the OAuth code flow (see the [Authentication guide](https://docs.tenkeybridge.com/guide/authentication)). |
|
|
47
|
+
| `TKB_ACCESS_TOKEN` | yes* | Static token alternative to the trio above. |
|
|
48
|
+
| `TKB_TOKEN_FILE` | no | Where rotated refresh tokens are persisted. |
|
|
49
|
+
| `TKB_BASE_URL` | no | Gateway override (default `https://api.tenkeybridge.com`). |
|
|
50
|
+
|
|
51
|
+
\* one of the two auth shapes is required.
|
|
52
|
+
|
|
53
|
+
Docs: [docs.tenkeybridge.com](https://docs.tenkeybridge.com) · Compatibility matrix:
|
|
54
|
+
[docs.tenkeybridge.com/compatibility](https://docs.tenkeybridge.com/compatibility/)
|