@attrkit/mcp 0.3.4 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +14 -3
  2. package/dist/cli.js +14167 -100
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -133,6 +133,16 @@ Environment-variable interpolation differs between clients, so follow the
133
133
  client's secret-handling documentation. `ATTRKIT_API_URL` is optional and
134
134
  defaults to `https://attrikit.io`.
135
135
 
136
+ ## Field naming
137
+
138
+ Tool input schemas are snake_case (`bundle_id`, `store_url`, `campaign_id`) and
139
+ double as REST documentation: the Management API accepts the same snake_case
140
+ field names in query strings and JSON request bodies (camelCase also works),
141
+ and responses are always snake_case. Field-level detail is returned under
142
+ `error.fields` when a validation failure can be attributed to specific fields.
143
+ Malformed JSON has no field to name. Self-identifying rejections such as
144
+ `invalid_cursor`, `invalid_url`, and `ssrf_blocked` return the code alone.
145
+
136
146
  ## Test it locally
137
147
 
138
148
  ```bash
@@ -167,9 +177,10 @@ surface.
167
177
  - App creation, management-key creation, and webhook creation return secret
168
178
  values once. Capture them from the tool result; list tools only return masked
169
179
  metadata.
170
- - Mutation tools accept an optional `idempotency_key`. Reuse the same value only
171
- for an exact retry. One-time secret responses are encrypted at rest and safely
172
- replayed.
180
+ - Non-removal mutation tools accept an optional `idempotency_key`. Reuse the
181
+ same value only for an exact retry. One-time secret responses are encrypted at
182
+ rest and safely replayed. Removal tools do not accept this parameter because
183
+ their DELETE operations cannot apply the removal more than once.
173
184
  - Management keys are protected by distributed per-key global, mutation, and
174
185
  expensive-operation limits. A `429` response includes `Retry-After`; wait at
175
186
  least that many seconds before retrying.