pleaxy-mcp 0.3.0 → 0.3.1
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 +3 -4
- package/dist/api.js +2 -1
- package/package.json +1 -1
- package/server.json +4 -4
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Add it to your MCP client with one of the two ways of signing in below. For Clau
|
|
|
16
16
|
Code, in one line:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
claude mcp add pleaxy -e
|
|
19
|
+
claude mcp add pleaxy -e PLEAXY_WORKSPACE_ID=<Workspace ID> -- npx -y pleaxy-mcp
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
The package carries a [`server.json`](server.json) for the official MCP Registry (`ai.pleaxy/pleaxy-mcp`).
|
|
@@ -40,7 +40,6 @@ Pleaxy records the decision under your name with the app you used, for example
|
|
|
40
40
|
"Ana Silva via Claude". You can sign the app out in Pleaxy at any time.
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
export PLEAXY_API_BASE_URL="https://api.pleaxy.ai"
|
|
44
43
|
npx pleaxy-mcp login # opens Pleaxy in your browser: sign in, tick the workspaces, Allow
|
|
45
44
|
npx pleaxy-mcp whoami # who the server acts as, and the workspaces it may use
|
|
46
45
|
npx pleaxy-mcp logout # disconnects the agent (also: Pleaxy → Security & Sign-in → Agents)
|
|
@@ -70,8 +69,8 @@ For unattended integrations that act as the workspace rather than a person.
|
|
|
70
69
|
Administrator, so mint keys for long-running agents from an administrator who
|
|
71
70
|
will keep that role, and replace the key before they leave. Re-adding or
|
|
72
71
|
re-promoting the person doesn't restore a revoked key; mint a new one.
|
|
73
|
-
2. Set the
|
|
74
|
-
|
|
72
|
+
2. Set the environment variables. `PLEAXY_API_BASE_URL` is optional and defaults to
|
|
73
|
+
`https://api.pleaxy.ai`; if you set it, give the API's origin only - the server appends the `/v1`
|
|
75
74
|
version prefix itself, so do not include it here. `PLEAXY_WORKSPACE_ID` is the **Workspace ID** shown
|
|
76
75
|
in the Pleaxy console under **Company profile → Integrations → Developers → Workspace ID** (one per
|
|
77
76
|
workspace, e.g. `reg_01k5x8p9j3q7vn2mhb4tzc6rde.buyer`); copy it as-is:
|
package/dist/api.js
CHANGED
|
@@ -13,6 +13,7 @@ export function loginHint() {
|
|
|
13
13
|
}
|
|
14
14
|
export const HOSTED_LOGIN_HINT = "Ask the user to reconnect Pleaxy in this app's connector settings, which signs the agent in again.";
|
|
15
15
|
const API_VERSION_PREFIX = "/v1";
|
|
16
|
+
export const DEFAULT_API_BASE_URL = "https://api.pleaxy.ai";
|
|
16
17
|
let cached;
|
|
17
18
|
function config() {
|
|
18
19
|
cached ??= readConfig();
|
|
@@ -22,7 +23,7 @@ function readConfig() {
|
|
|
22
23
|
const env = (name) => process.env[name] || undefined;
|
|
23
24
|
const apiKey = env("PLEAXY_API_KEY");
|
|
24
25
|
return {
|
|
25
|
-
baseUrl:
|
|
26
|
+
baseUrl: (env("PLEAXY_API_BASE_URL") ?? DEFAULT_API_BASE_URL).replace(/\/+$/, ""),
|
|
26
27
|
...(apiKey ? { apiKey } : {}),
|
|
27
28
|
};
|
|
28
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pleaxy-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "MCP server for Pleaxy: purchase orders, receipts and invoices as tools for AI agents (Claude, ChatGPT, Cursor and any MCP client)",
|
|
5
5
|
"mcpName": "ai.pleaxy/pleaxy-mcp",
|
|
6
6
|
"keywords": [
|
package/server.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"name": "ai.pleaxy/pleaxy-mcp",
|
|
4
4
|
"title": "Pleaxy",
|
|
5
5
|
"description": "Purchase orders, receipts and invoices in Pleaxy: read them, raise them, and route approvals.",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.1",
|
|
7
7
|
"websiteUrl": "https://pleaxy.ai/docs",
|
|
8
8
|
"packages": [
|
|
9
9
|
{
|
|
10
10
|
"registryType": "npm",
|
|
11
11
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
12
12
|
"identifier": "pleaxy-mcp",
|
|
13
|
-
"version": "0.3.
|
|
13
|
+
"version": "0.3.1",
|
|
14
14
|
"runtimeHint": "npx",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"environmentVariables": [
|
|
19
19
|
{
|
|
20
20
|
"name": "PLEAXY_API_BASE_URL",
|
|
21
|
-
"description": "The Pleaxy API's origin, without /v1.",
|
|
21
|
+
"description": "The Pleaxy API's origin, without /v1. Defaults to https://api.pleaxy.ai.",
|
|
22
22
|
"default": "https://api.pleaxy.ai",
|
|
23
|
-
"isRequired":
|
|
23
|
+
"isRequired": false
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "PLEAXY_WORKSPACE_ID",
|