@attrkit/mcp 0.3.2 → 0.4.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 +18 -3
- package/dist/cli.js +14166 -100
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Clashware Sàrl
|
|
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
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
|
-
-
|
|
171
|
-
for an exact retry. One-time secret responses are encrypted at
|
|
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.
|
|
@@ -177,3 +188,7 @@ surface.
|
|
|
177
188
|
- MCP clients store environment values in local configuration. Never commit a
|
|
178
189
|
configuration containing a key. Restrict access to the file and revoke any
|
|
179
190
|
key that is exposed.
|
|
191
|
+
|
|
192
|
+
## License
|
|
193
|
+
|
|
194
|
+
MIT. See [LICENSE](./LICENSE).
|