@leonailtd/priority-mcp-client 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 +123 -0
- package/dist/bin.js +112 -0
- package/dist/bin.js.map +1 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 LeonAI
|
|
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,123 @@
|
|
|
1
|
+
# Priority MCP Client
|
|
2
|
+
|
|
3
|
+
MCP client for Priority ERP that connects Claude Desktop to a remote Priority MCP server.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
No installation required! Use with `npx`:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx @leonailtd/priority-mcp-client --url https://priority-mcp.leonai.io --token sk-cust-xxx ...
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### With Claude Desktop
|
|
16
|
+
|
|
17
|
+
Add this configuration to your `claude_desktop_config.json`:
|
|
18
|
+
|
|
19
|
+
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
20
|
+
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
21
|
+
**Linux:** `~/.config/Claude/claude_desktop_config.json`
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"priority-erp": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": [
|
|
29
|
+
"@leonailtd/priority-mcp-client",
|
|
30
|
+
"--url",
|
|
31
|
+
"https://priority-mcp.leonai.io",
|
|
32
|
+
"--token",
|
|
33
|
+
"sk-cust-YOUR_API_KEY_HERE",
|
|
34
|
+
"--priority-url",
|
|
35
|
+
"https://your-company.priority-erp.com",
|
|
36
|
+
"--priority-company",
|
|
37
|
+
"YOUR_COMPANY_CODE",
|
|
38
|
+
"--priority-username",
|
|
39
|
+
"your_api_user",
|
|
40
|
+
"--priority-password",
|
|
41
|
+
"your_api_password"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Command-Line Options
|
|
49
|
+
|
|
50
|
+
| Option | Required | Description |
|
|
51
|
+
|--------|----------|-------------|
|
|
52
|
+
| `--url` | Yes | Priority MCP server URL (e.g., https://priority-mcp.leonai.io) |
|
|
53
|
+
| `--token` | Yes | Authentication token from tenant provisioning (sk-cust-...) |
|
|
54
|
+
| `--priority-url` | Yes | Your Priority ERP base URL |
|
|
55
|
+
| `--priority-company` | Yes | Your company code in Priority |
|
|
56
|
+
| `--priority-username` | Yes | Priority API username |
|
|
57
|
+
| `--priority-password` | Yes | Priority API password |
|
|
58
|
+
| `--debug` | No | Enable debug logging to stderr |
|
|
59
|
+
|
|
60
|
+
### Getting Your API Token
|
|
61
|
+
|
|
62
|
+
Contact your Priority MCP administrator to provision a tenant and receive your API key.
|
|
63
|
+
|
|
64
|
+
## How It Works
|
|
65
|
+
|
|
66
|
+
This client acts as a proxy between Claude Desktop (stdio transport) and the remote Priority MCP server (HTTP/SSE transport):
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Claude Desktop (stdio)
|
|
70
|
+
↓
|
|
71
|
+
Priority MCP Client (this package)
|
|
72
|
+
↓
|
|
73
|
+
Remote Priority MCP Server (HTTP/SSE)
|
|
74
|
+
↓
|
|
75
|
+
Priority ERP API
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Features
|
|
79
|
+
|
|
80
|
+
- ✅ No installation required (uses npx)
|
|
81
|
+
- ✅ Works with Claude Desktop out of the box
|
|
82
|
+
- ✅ Secure authentication with API keys
|
|
83
|
+
- ✅ Supports all MCP protocol features (tools, resources, prompts)
|
|
84
|
+
- ✅ Debug logging available
|
|
85
|
+
- ✅ Cross-platform (Windows, macOS, Linux)
|
|
86
|
+
|
|
87
|
+
## Troubleshooting
|
|
88
|
+
|
|
89
|
+
### Connection Errors
|
|
90
|
+
|
|
91
|
+
If you see connection errors:
|
|
92
|
+
|
|
93
|
+
1. Verify the `--url` is correct
|
|
94
|
+
2. Check your `--token` is valid
|
|
95
|
+
3. Ensure Priority credentials are correct
|
|
96
|
+
4. Try with `--debug` flag to see detailed logs
|
|
97
|
+
|
|
98
|
+
### stdio Communication Errors
|
|
99
|
+
|
|
100
|
+
If Claude Desktop can't connect:
|
|
101
|
+
|
|
102
|
+
1. Restart Claude Desktop completely
|
|
103
|
+
2. Verify the config file syntax (valid JSON)
|
|
104
|
+
3. Check Node.js is installed (`node --version`)
|
|
105
|
+
|
|
106
|
+
### Authentication Errors
|
|
107
|
+
|
|
108
|
+
If you get 401/403 errors:
|
|
109
|
+
|
|
110
|
+
1. Verify your API key is active (not expired/revoked)
|
|
111
|
+
2. Check Priority credentials work directly in Priority
|
|
112
|
+
3. Confirm Priority URL is accessible
|
|
113
|
+
|
|
114
|
+
## Support
|
|
115
|
+
|
|
116
|
+
For issues or questions:
|
|
117
|
+
|
|
118
|
+
- GitHub: https://github.com/LeonAIcoil/priority-mcp-client
|
|
119
|
+
- Email: support@leonai.io
|
|
120
|
+
|
|
121
|
+
## License
|
|
122
|
+
|
|
123
|
+
MIT License - see LICENSE file for details
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/bin.ts
|
|
4
|
+
import { program } from "commander";
|
|
5
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
6
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
7
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
8
|
+
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
9
|
+
import {
|
|
10
|
+
ListToolsRequestSchema,
|
|
11
|
+
CallToolRequestSchema,
|
|
12
|
+
ListResourcesRequestSchema,
|
|
13
|
+
ReadResourceRequestSchema,
|
|
14
|
+
ListPromptsRequestSchema,
|
|
15
|
+
GetPromptRequestSchema
|
|
16
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
17
|
+
program.name("priority-mcp-client").description("MCP client that proxies Claude Desktop to Priority MCP server").requiredOption("--url <url>", "Priority MCP server URL (e.g., https://priority-mcp.leonai.io)").requiredOption("--token <token>", "Authentication token (sk-cust-...)").requiredOption("--priority-url <url>", "Priority ERP base URL").requiredOption("--priority-company <company>", "Priority company name").requiredOption("--priority-username <username>", "Priority API username").requiredOption("--priority-password <password>", "Priority API password").option("--debug", "Enable debug logging").parse();
|
|
18
|
+
var options = program.opts();
|
|
19
|
+
async function main() {
|
|
20
|
+
try {
|
|
21
|
+
const debug = options.debug || false;
|
|
22
|
+
if (debug) {
|
|
23
|
+
console.error("[DEBUG] Starting Priority MCP Client");
|
|
24
|
+
console.error(`[DEBUG] Connecting to: ${options.url}`);
|
|
25
|
+
}
|
|
26
|
+
const client = new Client({
|
|
27
|
+
name: "priority-mcp-client",
|
|
28
|
+
version: "1.0.0"
|
|
29
|
+
}, {
|
|
30
|
+
capabilities: {}
|
|
31
|
+
});
|
|
32
|
+
const headers = {
|
|
33
|
+
"Authorization": `Bearer ${options.token}`,
|
|
34
|
+
"X-Priority-URL": options.priorityUrl,
|
|
35
|
+
"X-Priority-Company": options.priorityCompany,
|
|
36
|
+
"X-Priority-Username": options.priorityUsername,
|
|
37
|
+
"X-Priority-Password": options.priorityPassword
|
|
38
|
+
};
|
|
39
|
+
if (debug) {
|
|
40
|
+
console.error("[DEBUG] Headers prepared (credentials hidden)");
|
|
41
|
+
}
|
|
42
|
+
const mcpUrl = new URL("/mcp", options.url);
|
|
43
|
+
const transport = new StreamableHTTPClientTransport(mcpUrl, {
|
|
44
|
+
requestInit: {
|
|
45
|
+
headers
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
await client.connect(transport);
|
|
49
|
+
if (debug) {
|
|
50
|
+
console.error("[DEBUG] Connected to remote Priority MCP server");
|
|
51
|
+
}
|
|
52
|
+
const server = new Server({
|
|
53
|
+
name: "priority-mcp-proxy",
|
|
54
|
+
version: "1.0.0"
|
|
55
|
+
}, {
|
|
56
|
+
capabilities: {
|
|
57
|
+
tools: {},
|
|
58
|
+
resources: {},
|
|
59
|
+
prompts: {}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
63
|
+
if (debug) console.error("[DEBUG] Forwarding tools/list");
|
|
64
|
+
const result = await client.listTools();
|
|
65
|
+
return result;
|
|
66
|
+
});
|
|
67
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
68
|
+
if (debug) console.error(`[DEBUG] Forwarding tools/call: ${request.params.name}`);
|
|
69
|
+
const result = await client.callTool(request.params);
|
|
70
|
+
return result;
|
|
71
|
+
});
|
|
72
|
+
server.setRequestHandler(ListResourcesRequestSchema, async () => {
|
|
73
|
+
if (debug) console.error("[DEBUG] Forwarding resources/list");
|
|
74
|
+
const result = await client.listResources();
|
|
75
|
+
return result;
|
|
76
|
+
});
|
|
77
|
+
server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
78
|
+
if (debug) console.error(`[DEBUG] Forwarding resources/read: ${request.params.uri}`);
|
|
79
|
+
const result = await client.readResource(request.params);
|
|
80
|
+
return result;
|
|
81
|
+
});
|
|
82
|
+
server.setRequestHandler(ListPromptsRequestSchema, async () => {
|
|
83
|
+
if (debug) console.error("[DEBUG] Forwarding prompts/list");
|
|
84
|
+
const result = await client.listPrompts();
|
|
85
|
+
return result;
|
|
86
|
+
});
|
|
87
|
+
server.setRequestHandler(GetPromptRequestSchema, async (request) => {
|
|
88
|
+
if (debug) console.error(`[DEBUG] Forwarding prompts/get: ${request.params.name}`);
|
|
89
|
+
const result = await client.getPrompt(request.params);
|
|
90
|
+
return result;
|
|
91
|
+
});
|
|
92
|
+
const stdioTransport = new StdioServerTransport();
|
|
93
|
+
await server.connect(stdioTransport);
|
|
94
|
+
if (debug) {
|
|
95
|
+
console.error("[DEBUG] Stdio server ready, proxy active");
|
|
96
|
+
}
|
|
97
|
+
process.on("SIGINT", async () => {
|
|
98
|
+
if (debug) console.error("[DEBUG] Shutting down...");
|
|
99
|
+
await server.close();
|
|
100
|
+
await client.close();
|
|
101
|
+
process.exit(0);
|
|
102
|
+
});
|
|
103
|
+
} catch (error) {
|
|
104
|
+
console.error("Failed to start Priority MCP client:", error);
|
|
105
|
+
process.exit(1);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
main().catch((error) => {
|
|
109
|
+
console.error("Fatal error:", error);
|
|
110
|
+
process.exit(1);
|
|
111
|
+
});
|
|
112
|
+
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\r\n\r\nimport { program } from 'commander';\r\nimport { Client } from '@modelcontextprotocol/sdk/client/index.js';\r\nimport { Server } from '@modelcontextprotocol/sdk/server/index.js';\r\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\r\nimport { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';\r\nimport {\r\n ListToolsRequestSchema,\r\n CallToolRequestSchema,\r\n ListResourcesRequestSchema,\r\n ReadResourceRequestSchema,\r\n ListPromptsRequestSchema,\r\n GetPromptRequestSchema\r\n} from '@modelcontextprotocol/sdk/types.js';\r\n\r\n// Parse command-line arguments\r\nprogram\r\n .name('priority-mcp-client')\r\n .description('MCP client that proxies Claude Desktop to Priority MCP server')\r\n .requiredOption('--url <url>', 'Priority MCP server URL (e.g., https://priority-mcp.leonai.io)')\r\n .requiredOption('--token <token>', 'Authentication token (sk-cust-...)')\r\n .requiredOption('--priority-url <url>', 'Priority ERP base URL')\r\n .requiredOption('--priority-company <company>', 'Priority company name')\r\n .requiredOption('--priority-username <username>', 'Priority API username')\r\n .requiredOption('--priority-password <password>', 'Priority API password')\r\n .option('--debug', 'Enable debug logging')\r\n .parse();\r\n\r\nconst options = program.opts();\r\n\r\nasync function main() {\r\n try {\r\n const debug = options.debug || false;\r\n\r\n if (debug) {\r\n console.error('[DEBUG] Starting Priority MCP Client');\r\n console.error(`[DEBUG] Connecting to: ${options.url}`);\r\n }\r\n\r\n // Create MCP client that will connect to remote Priority server\r\n const client = new Client({\r\n name: 'priority-mcp-client',\r\n version: '1.0.0'\r\n }, {\r\n capabilities: {}\r\n });\r\n\r\n // Prepare headers for authentication\r\n const headers = {\r\n 'Authorization': `Bearer ${options.token}`,\r\n 'X-Priority-URL': options.priorityUrl,\r\n 'X-Priority-Company': options.priorityCompany,\r\n 'X-Priority-Username': options.priorityUsername,\r\n 'X-Priority-Password': options.priorityPassword\r\n };\r\n\r\n if (debug) {\r\n console.error('[DEBUG] Headers prepared (credentials hidden)');\r\n }\r\n\r\n // Connect to remote Priority MCP server via Streamable HTTP\r\n const mcpUrl = new URL('/mcp', options.url);\r\n const transport = new StreamableHTTPClientTransport(mcpUrl, {\r\n requestInit: {\r\n headers: headers\r\n }\r\n });\r\n\r\n await client.connect(transport);\r\n\r\n if (debug) {\r\n console.error('[DEBUG] Connected to remote Priority MCP server');\r\n }\r\n\r\n // Create stdio server for Claude Desktop\r\n const server = new Server({\r\n name: 'priority-mcp-proxy',\r\n version: '1.0.0'\r\n }, {\r\n capabilities: {\r\n tools: {},\r\n resources: {},\r\n prompts: {}\r\n }\r\n });\r\n\r\n // Set up request handlers that forward everything to the remote client\r\n\r\n // List tools\r\n server.setRequestHandler(ListToolsRequestSchema, async () => {\r\n if (debug) console.error('[DEBUG] Forwarding tools/list');\r\n const result = await client.listTools();\r\n return result;\r\n });\r\n\r\n // Call tool\r\n server.setRequestHandler(CallToolRequestSchema, async (request) => {\r\n if (debug) console.error(`[DEBUG] Forwarding tools/call: ${request.params.name}`);\r\n const result = await client.callTool(request.params);\r\n return result;\r\n });\r\n\r\n // List resources\r\n server.setRequestHandler(ListResourcesRequestSchema, async () => {\r\n if (debug) console.error('[DEBUG] Forwarding resources/list');\r\n const result = await client.listResources();\r\n return result;\r\n });\r\n\r\n // Read resource\r\n server.setRequestHandler(ReadResourceRequestSchema, async (request) => {\r\n if (debug) console.error(`[DEBUG] Forwarding resources/read: ${request.params.uri}`);\r\n const result = await client.readResource(request.params);\r\n return result;\r\n });\r\n\r\n // List prompts\r\n server.setRequestHandler(ListPromptsRequestSchema, async () => {\r\n if (debug) console.error('[DEBUG] Forwarding prompts/list');\r\n const result = await client.listPrompts();\r\n return result;\r\n });\r\n\r\n // Get prompt\r\n server.setRequestHandler(GetPromptRequestSchema, async (request) => {\r\n if (debug) console.error(`[DEBUG] Forwarding prompts/get: ${request.params.name}`);\r\n const result = await client.getPrompt(request.params);\r\n return result;\r\n });\r\n\r\n // Connect server to stdio for Claude Desktop\r\n const stdioTransport = new StdioServerTransport();\r\n await server.connect(stdioTransport);\r\n\r\n if (debug) {\r\n console.error('[DEBUG] Stdio server ready, proxy active');\r\n }\r\n\r\n // Keep process running\r\n process.on('SIGINT', async () => {\r\n if (debug) console.error('[DEBUG] Shutting down...');\r\n await server.close();\r\n await client.close();\r\n process.exit(0);\r\n });\r\n\r\n } catch (error) {\r\n console.error('Failed to start Priority MCP client:', error);\r\n process.exit(1);\r\n }\r\n}\r\n\r\nmain().catch((error) => {\r\n console.error('Fatal error:', error);\r\n process.exit(1);\r\n});\r\n"],"mappings":"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","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@leonailtd/priority-mcp-client",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP client for Priority ERP - connects Claude Desktop to remote Priority MCP server",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/bin.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"priority-mcp-client": "dist/bin.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup",
|
|
17
|
+
"dev": "tsup --watch",
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"mcp",
|
|
22
|
+
"model-context-protocol",
|
|
23
|
+
"priority-erp",
|
|
24
|
+
"claude",
|
|
25
|
+
"proxy",
|
|
26
|
+
"stdio",
|
|
27
|
+
"http",
|
|
28
|
+
"sse"
|
|
29
|
+
],
|
|
30
|
+
"author": "LeonAI",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/LeonAIcoil/priority-mcp-client.git"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/LeonAIcoil/priority-mcp-client#readme",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/LeonAIcoil/priority-mcp-client/issues",
|
|
39
|
+
"email": "support@leonai.io"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public",
|
|
43
|
+
"registry": "https://registry.npmjs.org/"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.22.0",
|
|
47
|
+
"commander": "^12.1.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^22.10.5",
|
|
51
|
+
"tsup": "^8.3.5",
|
|
52
|
+
"typescript": "^5.7.3"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=18.0.0"
|
|
56
|
+
}
|
|
57
|
+
}
|