bimp-mcp 0.2.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 +112 -0
- package/bimp-api.json +22409 -0
- package/dist/client.d.ts +23 -0
- package/dist/client.js +160 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +186 -0
- package/dist/nomenclatures-extended.d.ts +6 -0
- package/dist/nomenclatures-extended.js +118 -0
- package/dist/prompts.d.ts +25 -0
- package/dist/prompts.js +342 -0
- package/dist/tool-generator.d.ts +44 -0
- package/dist/tool-generator.js +105 -0
- package/dist/utilities.d.ts +13 -0
- package/dist/utilities.js +270 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dutchakdev
|
|
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,112 @@
|
|
|
1
|
+
# bimp-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for [BIMP ERP](https://bimpsoft.com) -- a Ukrainian cloud-based ERP system for small and medium businesses covering sales, inventory, finance, manufacturing, and procurement.
|
|
4
|
+
|
|
5
|
+
This server enables LLMs to interact with BIMP data through the [Model Context Protocol](https://modelcontextprotocol.io): read, create, update entities, perform bulk operations, and analyze business data.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **~135 auto-generated tools** from OpenAPI 3.1 spec -- adding a new endpoint requires only editing `bimp-api.json` and restarting
|
|
10
|
+
- **3 utility tools** for bulk operations: `bimp_fetch_all`, `bimp_batch_read`, `bimp_bulk_update`
|
|
11
|
+
- **6 MCP prompts** providing ERP domain context, workflow guides, and data analysis instructions
|
|
12
|
+
- **Auto-authentication** with token refresh -- login triggered on first API call, tokens refreshed transparently on 401
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
### Prerequisites
|
|
17
|
+
|
|
18
|
+
- Node.js 20+
|
|
19
|
+
- A BIMP ERP account with API access
|
|
20
|
+
|
|
21
|
+
### Environment Variables
|
|
22
|
+
|
|
23
|
+
Create a `.env` file (see `.env.example`):
|
|
24
|
+
|
|
25
|
+
```env
|
|
26
|
+
BIMP_BASE_URL=https://app.bimpsoft.com
|
|
27
|
+
BIMP_EMAIL=your@email.com
|
|
28
|
+
BIMP_PASSWORD=your-password
|
|
29
|
+
BIMP_COMPANY_CODE=000001398
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Install and Run
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install
|
|
36
|
+
npm start
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The server starts on stdio transport. For development with auto-reload:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm run dev
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### MCP Client Configuration
|
|
46
|
+
|
|
47
|
+
Add to your `claude_desktop_config.json` (Claude Desktop) or equivalent MCP client config:
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"mcpServers": {
|
|
52
|
+
"bimp": {
|
|
53
|
+
"command": "npx",
|
|
54
|
+
"args": ["tsx", "src/index.ts"],
|
|
55
|
+
"cwd": "/path/to/bimp-mcp",
|
|
56
|
+
"env": {
|
|
57
|
+
"BIMP_EMAIL": "your@email.com",
|
|
58
|
+
"BIMP_PASSWORD": "your-password",
|
|
59
|
+
"BIMP_COMPANY_CODE": "000001398"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Available Tools
|
|
67
|
+
|
|
68
|
+
### Auto-Generated (~135 tools)
|
|
69
|
+
|
|
70
|
+
Tools are generated from `bimp-api.json` at startup. Naming convention: `bimp_{entity}_{action}`.
|
|
71
|
+
|
|
72
|
+
| Domain | Examples |
|
|
73
|
+
|--------|----------|
|
|
74
|
+
| **Sales** | `bimp_salesInvoice_readList`, `bimp_salesInvoice_create`, `bimp_invoiceForCustomerPayment_readList` |
|
|
75
|
+
| **Inventory** | `bimp_nomenclature_readList`, `bimp_inventory_readList_cursor`, `bimp_movementOfInventories_create` |
|
|
76
|
+
| **Finance** | `bimp_customerPayment_readList`, `bimp_supplierPayment_create`, `bimp_cashBox_readList` |
|
|
77
|
+
| **Manufacturing** | `bimp_production_order_readList`, `bimp_production_assembly_create`, `bimp_specification_read` |
|
|
78
|
+
| **Procurement** | `bimp_purchaseInvoice_readList`, `bimp_invoiceForSupplierPayment_create` |
|
|
79
|
+
| **Reference Data** | `bimp_counterparty_readList`, `bimp_employee_readList`, `bimp_warehouse_readList` |
|
|
80
|
+
| **Auth** | `bimp_auth_listCompanies`, `bimp_auth_switchCompany` |
|
|
81
|
+
|
|
82
|
+
### Utility Tools
|
|
83
|
+
|
|
84
|
+
| Tool | Purpose |
|
|
85
|
+
|------|---------|
|
|
86
|
+
| `bimp_fetch_all` | Auto-paginate any readList endpoint. Supports offset/count, cursor, and page/pageSize pagination. Optional `enrich` mode fetches full details for each record. |
|
|
87
|
+
| `bimp_batch_read` | Parallel read of full details for an array of UUIDs with configurable concurrency. |
|
|
88
|
+
| `bimp_bulk_update` | Mass update records with batched concurrency and per-item error reporting. |
|
|
89
|
+
|
|
90
|
+
## Available Prompts
|
|
91
|
+
|
|
92
|
+
| Prompt | Description |
|
|
93
|
+
|--------|-------------|
|
|
94
|
+
| `bimp_erp_context` | Entity structure, relationships, Ukrainian terminology mapping |
|
|
95
|
+
| `bimp_data_analysis` | How to analyze BIMP data effectively, pagination quirks, enrichment |
|
|
96
|
+
| `bimp_bulk_operations` | Mass operation patterns: price updates, bulk edits, imports |
|
|
97
|
+
| `bimp_sales_workflow` | Sales process: order, realization, payment, returns |
|
|
98
|
+
| `bimp_production_workflow` | Production: specification, order, assembly, material write-offs |
|
|
99
|
+
| `bimp_procurement_workflow` | Procurement: supplier invoice, purchase invoice, contracts |
|
|
100
|
+
|
|
101
|
+
## Testing
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
npm test # Unit tests (mocked, no API calls)
|
|
105
|
+
npm run test:integration # Integration tests (requires env vars)
|
|
106
|
+
npm run test:functional # Functional E2E tests (requires env vars)
|
|
107
|
+
npm run test:all # All tests
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
[MIT](LICENSE)
|