@astramindapp/mcp-server 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 +23 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,23 +110,43 @@ source: "myapp" # optional - tracks which partner app created the user
|
|
|
110
110
|
tier: "free" # optional - free, starter, professional, business
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
+
## Partner Keys
|
|
114
|
+
|
|
115
|
+
Partner keys are scoped credentials that can **only** provision new users — they cannot access any other admin endpoint. Create them from your admin account:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
curl -X POST https://m-i-n-d.ai/admin/partner-keys \
|
|
119
|
+
-H "X-API-Key: mind_YOUR_ADMIN_KEY" \
|
|
120
|
+
-H "Content-Type: application/json" \
|
|
121
|
+
-d '{"partner_name": "mypartnerapp"}'
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The response includes a `mind_partner_...` key. Give this to your partner developer — it's the only credential they need.
|
|
125
|
+
|
|
126
|
+
| Endpoint | Method | Description |
|
|
127
|
+
|----------|--------|-------------|
|
|
128
|
+
| `/admin/partner-keys` | POST | Create a partner key (admin-only) |
|
|
129
|
+
| `/admin/partner-keys` | GET | List all partner keys (admin-only) |
|
|
130
|
+
| `/admin/partner-keys/{id}` | DELETE | Revoke a partner key (admin-only) |
|
|
131
|
+
|
|
113
132
|
## Admin REST API: User Provisioning
|
|
114
133
|
|
|
115
|
-
Partner apps
|
|
134
|
+
Partner apps create MIND accounts using their partner key (or admin key) via REST:
|
|
116
135
|
|
|
117
136
|
```bash
|
|
118
137
|
curl -X POST https://m-i-n-d.ai/admin/users/create \
|
|
119
|
-
-H "X-API-Key:
|
|
138
|
+
-H "X-API-Key: mind_partner_YOUR_PARTNER_KEY" \
|
|
120
139
|
-H "Content-Type: application/json" \
|
|
121
140
|
-d '{
|
|
122
141
|
"username": "newuser123",
|
|
123
142
|
"email": "user@partnerapp.com",
|
|
124
143
|
"password": "securepassword",
|
|
125
|
-
"source": "myapp",
|
|
126
144
|
"tier": "free"
|
|
127
145
|
}'
|
|
128
146
|
```
|
|
129
147
|
|
|
148
|
+
> Note: When using a partner key, the `source` is automatically attached from the key's configuration. You can also use an admin key (`mind_...`) and pass `source` explicitly.
|
|
149
|
+
|
|
130
150
|
**Response:**
|
|
131
151
|
```json
|
|
132
152
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astramindapp/mcp-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "MIND MCP Server — Universal AI memory layer. Give any LLM agent persistent memory, structured context, and automatic knowledge capture via the Model Context Protocol.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|