@meterbox/mcp 0.1.0 → 0.1.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/lib/tiers.js CHANGED
@@ -245,6 +245,7 @@ const TIERS = {
245
245
  "GET /v1/customer-portal/{id}/me": "excluded",
246
246
  "GET /v1/customer-portal/{id}/optimization": "excluded",
247
247
  "GET /v1/customer-portal/{id}/outcomes": "excluded",
248
+ "GET /v1/customer-portal/{id}/plans": "excluded",
248
249
  "GET /v1/customer-portal/{id}/referral": "excluded",
249
250
  "POST /v1/customer-portal/{id}/referral/redeem": "excluded",
250
251
  "POST /v1/customer-portal/{id}/subscription/change": "excluded",
package/lib/tools.js CHANGED
@@ -53,6 +53,11 @@ const EXECUTE_INPUT = {
53
53
  required: ["operation"],
54
54
  };
55
55
 
56
+ // Hosted Meterbox never runs a production write sent over MCP: it asks an
57
+ // owner or admin to approve it first.
58
+ const PRODUCTION_WRITES =
59
+ "In production it doesn't run: the result is a link for an owner or admin to approve the change.";
60
+
56
61
  function toolDefinitions(apiReferenceUrl) {
57
62
  const ref = apiReferenceUrl ? ` API reference: ${apiReferenceUrl}` : "";
58
63
  const calls = `Calls the Meterbox REST API (/v1).${ref}`;
@@ -119,33 +124,33 @@ function toolDefinitions(apiReferenceUrl) {
119
124
  readOnlyHint: true,
120
125
  destructiveHint: false,
121
126
  idempotentHint: true,
122
- openWorldHint: true,
127
+ openWorldHint: false,
123
128
  },
124
129
  },
125
130
  {
126
131
  name: "meterbox_create",
127
132
  tier: "create",
128
133
  title: "Create in Meterbox",
129
- description: `Run an operation that only adds a new record (e.g. a coupon, a quote, an alert rule) and never changes or removes existing ones or moves money. ${howTo} ${calls}`,
134
+ description: `Run an operation that only adds a new record (e.g. a coupon, a quote, an alert rule) and never changes or removes existing ones or moves money. ${PRODUCTION_WRITES} ${howTo} ${calls}`,
130
135
  inputSchema: EXECUTE_INPUT,
131
136
  annotations: {
132
137
  readOnlyHint: false,
133
138
  destructiveHint: false,
134
139
  idempotentHint: false,
135
- openWorldHint: true,
140
+ openWorldHint: false,
136
141
  },
137
142
  },
138
143
  {
139
144
  name: "meterbox_update",
140
145
  tier: "update",
141
146
  title: "Change records in Meterbox",
142
- description: `Run an operation that changes or replaces existing records or settings (e.g. replace a plan, edit a customer's tags). Changes are reversible and never move money. ${howTo} ${calls}`,
147
+ description: `Run an operation that changes or replaces existing records or settings (e.g. replace a plan, edit a customer's tags). Changes are reversible and never move money. ${PRODUCTION_WRITES} ${howTo} ${calls}`,
143
148
  inputSchema: EXECUTE_INPUT,
144
149
  annotations: {
145
150
  readOnlyHint: false,
146
151
  destructiveHint: true,
147
152
  idempotentHint: false,
148
- openWorldHint: true,
153
+ openWorldHint: false,
149
154
  },
150
155
  },
151
156
  {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@meterbox/mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Meterbox MCP server: the hosted /mcp endpoint's tools and policy, plus a stdio bridge (npx @meterbox/mcp) for MCP clients that only speak stdio.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://meterbox.ai",
7
7
  "main": "index.js",
8
8
  "bin": {
9
- "meterbox-mcp": "./bin/meterbox-mcp.js"
9
+ "meterbox-mcp": "bin/meterbox-mcp.js"
10
10
  },
11
11
  "files": [
12
12
  "index.js",