openloops 0.7.0 → 0.7.2
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/CHANGELOG.md +22 -0
- package/dist/db/indexes/mcp-servers.js +2 -1
- package/dist/db/indexes/mcp-servers.mjs +2 -1
- package/dist/harness/agent.d.ts +1 -2
- package/dist/harness/agent.js +15 -9
- package/dist/harness/agent.mjs +15 -9
- package/dist/services/automations/runner/automation-runner.js +1 -3
- package/dist/services/automations/runner/automation-runner.mjs +1 -3
- package/dist/services/mcp-servers/admin/index.d.ts +1 -0
- package/dist/services/mcp-servers/admin/index.js +22 -0
- package/dist/services/mcp-servers/admin/index.mjs +1 -0
- package/dist/services/mcp-servers/admin/module.d.ts +10 -0
- package/dist/services/mcp-servers/admin/module.js +55 -0
- package/dist/services/mcp-servers/admin/module.mjs +27 -0
- package/dist/services/mcp-servers/admin/use-cases/create-internal-mcp.use-case.d.ts +12 -0
- package/dist/services/mcp-servers/admin/use-cases/create-internal-mcp.use-case.js +50 -0
- package/dist/services/mcp-servers/admin/use-cases/create-internal-mcp.use-case.mjs +26 -0
- package/dist/services/mcp-servers/admin/use-cases/delete-internal-mcp.use-case.d.ts +13 -0
- package/dist/services/mcp-servers/admin/use-cases/delete-internal-mcp.use-case.js +44 -0
- package/dist/services/mcp-servers/admin/use-cases/delete-internal-mcp.use-case.mjs +20 -0
- package/dist/services/mcp-servers/admin/use-cases/get-internal-mcp-by-id.use-case.d.ts +12 -0
- package/dist/services/mcp-servers/admin/use-cases/get-internal-mcp-by-id.use-case.js +41 -0
- package/dist/services/mcp-servers/admin/use-cases/get-internal-mcp-by-id.use-case.mjs +17 -0
- package/dist/services/mcp-servers/admin/use-cases/list-internal-mcps.use-case.d.ts +16 -0
- package/dist/services/mcp-servers/admin/use-cases/list-internal-mcps.use-case.js +42 -0
- package/dist/services/mcp-servers/admin/use-cases/list-internal-mcps.use-case.mjs +18 -0
- package/dist/services/mcp-servers/admin/use-cases/update-internal-mcp.use-case.d.ts +13 -0
- package/dist/services/mcp-servers/admin/use-cases/update-internal-mcp.use-case.js +59 -0
- package/dist/services/mcp-servers/admin/use-cases/update-internal-mcp.use-case.mjs +35 -0
- package/dist/services/mcp-servers/entities/mcpserver.entity.d.ts +10 -1
- package/dist/services/mcp-servers/entities/mcpserver.entity.js +28 -3
- package/dist/services/mcp-servers/entities/mcpserver.entity.mjs +28 -3
- package/dist/services/mcp-servers/internal.d.ts +7 -0
- package/dist/services/mcp-servers/internal.js +32 -0
- package/dist/services/mcp-servers/internal.mjs +8 -0
- package/dist/services/mcp-servers/repositories/mcpserver.repository.d.ts +8 -0
- package/dist/services/mcp-servers/repositories/mcpserver.repository.js +23 -3
- package/dist/services/mcp-servers/repositories/mcpserver.repository.mjs +24 -4
- package/dist/services/mcp-servers/use-cases/list-mcpservers-by-user.use-case.js +2 -0
- package/dist/services/mcp-servers/use-cases/list-mcpservers-by-user.use-case.mjs +2 -0
- package/dist/services/mcp-servers/use-cases/update-mcpserver.use-case.js +1 -1
- package/dist/services/mcp-servers/use-cases/update-mcpserver.use-case.mjs +1 -1
- package/docs/agent.md +1 -1
- package/docs/automations.md +23 -6
- package/docs/configuration.md +0 -1
- package/docs/mcp-servers.md +84 -1
- package/examples/automations/run-automation-worker.ts +8 -0
- package/examples/mcps/create-mcp.ts +1 -0
- package/examples/mcps/internal-mcp-admin.ts +43 -0
- package/examples/mcps/internal-mcp.ts +14 -3
- package/examples/mcps/update-mcp.ts +1 -1
- package/package.json +5 -1
package/docs/automations.md
CHANGED
|
@@ -320,13 +320,30 @@ A new `Agent` is created for every run, so the options are the same but nothing
|
|
|
320
320
|
|
|
321
321
|
### Internal MCP servers in an automation
|
|
322
322
|
|
|
323
|
-
An automation runs without the session of its owner, so there is no token of theirs to send to your [internal MCP servers](mcp-servers.md#internal-mcp-servers).
|
|
323
|
+
An automation runs without the session of its owner, so there is no token of theirs to send to your [internal MCP servers](mcp-servers.md#internal-mcp-servers). Each internal server can declare an `autonomousToken`, the token of a service account that is used only in autonomous runs, such as the ones of the runner, when the run brings no token for that server:
|
|
324
324
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
```typescript
|
|
326
|
+
const runner = createAutomationRunner({
|
|
327
|
+
agent: {
|
|
328
|
+
loop: new AgiLoop(),
|
|
329
|
+
internalMcps: [
|
|
330
|
+
{
|
|
331
|
+
name: 'budget',
|
|
332
|
+
url: 'https://api.example.com/mcp',
|
|
333
|
+
headers: { Authorization: 'Bearer {{token}}' },
|
|
334
|
+
autonomousToken: process.env.BUDGET_SERVICE_TOKEN,
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
},
|
|
338
|
+
})
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
- `{{token}}` is replaced with the `autonomousToken` and the agent sends the id of the owner of the automation in the header `X-User-Id`, so your MCP server knows on whose behalf it acts.
|
|
342
|
+
- Your MCP server must accept `X-User-Id` only together with that service token. Never trust it on a request that carries the token of a user.
|
|
343
|
+
- The header is added only in autonomous runs and only to internal servers that use `{{token}}`. It replaces any `X-User-Id` you configured. It is never sent to the servers added by the user.
|
|
344
|
+
- An interactive run never uses the `autonomousToken`. A server without one is unavailable in the automations that need a token, and the run continues without it.
|
|
345
|
+
- Each server has its own token, so two servers can use different service accounts. A server that must use a service account in every run, also in chats, does not need this: write the token in the header (for example `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjcm0uZXhhbXBsZS5jb20iLCJzdWIiOiJzdmMtb3Blbmxvb3BzLWNybSIsImF1ZCI6ImNybS1tY3AiLCJzY29wZSI6ImNybTpyZWFkIGNybTp3cml0ZSIsImlhdCI6MTc2MjIxNDQwMCwiZXhwIjoxNzkzNzUwNDAwfQ.YCtd8mv7RZpaZb3Z1aSl25MGP2QRWHc8RtA82MJOH7U`).
|
|
346
|
+
- This field is temporary. It will go away when the integrations let the runner get the token of the owner.
|
|
330
347
|
|
|
331
348
|
### Running by hand
|
|
332
349
|
|
package/docs/configuration.md
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
| `JWT_SECRET` | for `login` and for event automations | Secret that signs the tokens of the sessions, of the reset of a password and of [event automations](automations.md#the-token). See [authentication](authentication.md). |
|
|
14
14
|
| `SERPER_API_KEY` | for `webSearchTool` | See [tools](tools.md#built-in-tools). |
|
|
15
15
|
| `SLACK_BOT_TOKEN` | for `sendSlackMessageTool` | See [tools](tools.md#built-in-tools). |
|
|
16
|
-
| `INTERNAL_MCP_TOKEN` | for internal MCP servers in automations | Token sent to the internal MCP servers when an automation runs without the session of its owner. See [automations](automations.md#internal-mcp-servers-in-a-automation). |
|
|
17
16
|
| `AUTOMATIONS_POLL_INTERVAL_MS` | no | How often the runner of [automations](automations.md) checks what is due, in milliseconds. Defaults to `60000`. |
|
|
18
17
|
| `AUTOMATIONS_LEASE_MS` | no | How long an automation stays locked while it runs, in milliseconds. Defaults to `600000`. |
|
|
19
18
|
| `AUTOMATIONS_MAX_QUEUED_RUNS` | no | How many events of one automation can wait to run. The next ones are recorded as skipped. Defaults to `10`. Read by the endpoint that receives the events. |
|
package/docs/mcp-servers.md
CHANGED
|
@@ -44,6 +44,7 @@ Creating a server connects to it once to read its manifest (tools and instructio
|
|
|
44
44
|
| Field | Meaning |
|
|
45
45
|
| --- | --- |
|
|
46
46
|
| `name`, `url`, `type`, `headers` | What you registered. |
|
|
47
|
+
| `environment` | Optional free text that says which environment the server belongs to (for example `staging` or `production`). It is only a label: the agent does not use it. A blank text removes it. |
|
|
47
48
|
| `trust` | `locked` (never approved, also the value of old records without one), `approved` or `blocked`. |
|
|
48
49
|
| `approvedHash` | Hash of the manifest the user approved. |
|
|
49
50
|
| `history` | The last 5 manifests the server has shown, newest first. The approved one is never dropped. |
|
|
@@ -158,6 +159,7 @@ const agent = new Agent({
|
|
|
158
159
|
Authorization: 'Bearer {{token}}',
|
|
159
160
|
'X-App': 'budget-agent',
|
|
160
161
|
},
|
|
162
|
+
autonomousToken: process.env.BUDGET_SERVICE_TOKEN,
|
|
161
163
|
},
|
|
162
164
|
],
|
|
163
165
|
})
|
|
@@ -173,13 +175,94 @@ await agent.run({
|
|
|
173
175
|
|
|
174
176
|
- `name` and `url` are required, and the name must be unique among the internal servers. `headers` is optional.
|
|
175
177
|
- `{{token}}` in a header value is replaced with `mcpTokens[name]` of the run. A header without the placeholder is sent as written, so the other headers are plain strings. If no header uses `{{token}}`, the server needs no token.
|
|
178
|
+
- `autonomousToken` is optional. It is the token of a service account, used instead of `mcpTokens[name]` only in an [autonomous run](agent.md#autonomous-mode) that brings no token for that server, and then the agent also sends the id of the user in `X-User-Id`. An interactive run never uses it. See [automations](automations.md#internal-mcp-servers-in-an-automation).
|
|
176
179
|
- The token lives only in memory during the run. Do not put it in `options`, which is saved in the chat. It is masked in the connection errors the agent logs.
|
|
177
180
|
- It is trusted: no approval is asked, the manifest is not reviewed or stored, and its tools are not marked as written by a third party. The tools still follow the rules of the tool pipeline, so a tool with `destructiveHint` asks the user before it runs.
|
|
178
181
|
- If the token of a server is missing for a run, or it cannot be reached, the agent leaves it out for that run, writes a trace and a log, and tells the model that the source is unavailable, so it says it could not access that information. The run does not fail. It does not tell the user the details, only that the source was not reachable.
|
|
179
182
|
- If a server of the user has the same name as an internal one, the one of the user is ignored for that run, so nobody can impersonate an internal server.
|
|
180
183
|
- The tools are named `<name>__<tool>`, like any other MCP tool.
|
|
181
184
|
|
|
182
|
-
In an automation there is no session of the user, so there is no token of theirs. See [automations](automations.md#internal-mcp-servers-in-
|
|
185
|
+
In an automation there is no session of the user, so there is no token of theirs. See [automations](automations.md#internal-mcp-servers-in-an-automation).
|
|
186
|
+
|
|
187
|
+
### Which token a server uses
|
|
188
|
+
|
|
189
|
+
There are three common setups. The difference is what the header says and whether the server has an `autonomousToken`.
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
const agent = new Agent({
|
|
193
|
+
loop: new AgiLoop(),
|
|
194
|
+
internalMcps: [
|
|
195
|
+
{
|
|
196
|
+
name: 'budget',
|
|
197
|
+
url: 'https://budget.example.com/mcp',
|
|
198
|
+
headers: { Authorization: 'Bearer {{token}}' },
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'crm',
|
|
202
|
+
url: 'https://crm.example.com/mcp',
|
|
203
|
+
headers: { Authorization: 'Bearer {{token}}' },
|
|
204
|
+
autonomousToken: process.env.CRM_SERVICE_TOKEN,
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'catalog',
|
|
208
|
+
url: 'https://catalog.example.com/mcp',
|
|
209
|
+
headers: { Authorization: `Bearer ${process.env.CATALOG_SERVICE_TOKEN}` },
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
})
|
|
213
|
+
|
|
214
|
+
await agent.run({
|
|
215
|
+
input: { message: 'summarize my week' },
|
|
216
|
+
currentUser,
|
|
217
|
+
mcpTokens: { budget: sessionToken, crm: sessionToken },
|
|
218
|
+
})
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
| Server | Chat with `mcpTokens` | Automation (autonomous, no `mcpTokens`) |
|
|
222
|
+
| --- | --- | --- |
|
|
223
|
+
| `budget`: user token only | The token of the user. | Unavailable: there is no token and no `autonomousToken`. |
|
|
224
|
+
| `crm`: user token, and a service account for automations | The token of the user. | `CRM_SERVICE_TOKEN`, and the header `X-User-Id` with the owner of the automation. |
|
|
225
|
+
| `catalog`: always the service account | `CATALOG_SERVICE_TOKEN`, written in the header. | The same, without `X-User-Id`. |
|
|
226
|
+
|
|
227
|
+
- A chat never uses an `autonomousToken`. If `crm` is used in a chat and the request brings no token for it, the server is unavailable for that run.
|
|
228
|
+
- In `catalog` the credential is the same for every user and in every run. Use it only for data that is not specific to a user.
|
|
229
|
+
|
|
230
|
+
### Internal servers stored in the database
|
|
231
|
+
|
|
232
|
+
You can also manage the internal servers from a back office, without a deploy. They are stored in the same collection as the servers of the users, with `internal: true`, and the agent loads the enabled ones at the start of every run next to the ones declared in code. They behave the same way: trusted, no manifest review, no history, no notice of third party, destructive tools still ask.
|
|
233
|
+
|
|
234
|
+
They live in their own entry point, so the screens of the users never import them:
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
import {
|
|
238
|
+
createInternalMcp,
|
|
239
|
+
updateInternalMcp,
|
|
240
|
+
getInternalMcpById,
|
|
241
|
+
listInternalMcps,
|
|
242
|
+
deleteInternalMcp,
|
|
243
|
+
} from 'openloops/mcps/admin'
|
|
244
|
+
|
|
245
|
+
const mcp = await createInternalMcp({
|
|
246
|
+
payload: {
|
|
247
|
+
name: 'budget',
|
|
248
|
+
url: 'https://api.example.com/mcp',
|
|
249
|
+
headers: { Authorization: 'Bearer {{token}}' },
|
|
250
|
+
autonomousToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjcm0uZXhhbXBsZS5jb20iLCJzdWIiOiJzdmMtb3Blbmxvb3BzLWNybSIsImF1ZCI6ImNybS1tY3AiLCJzY29wZSI6ImNybTpyZWFkIGNybTp3cml0ZSIsImlhdCI6MTc2MjIxNDQwMCwiZXhwIjoxNzkzNzUwNDAwfQ.YCtd8mv7RZpaZb3Z1aSl25MGP2QRWHc8RtA82MJOH7U',
|
|
251
|
+
},
|
|
252
|
+
currentUser: admin,
|
|
253
|
+
})
|
|
254
|
+
|
|
255
|
+
await updateInternalMcp({ id: mcp._id, payload: { enabled: false, __v: mcp.__v }, currentUser: admin })
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
- Every function needs an admin as `currentUser` and answers 403 otherwise. The sub-route separates the code, the permission is what protects it.
|
|
259
|
+
- `name` and `url` are required, `type` is always `http`, `environment` and `autonomousToken` are optional and `enabled` defaults to `true`. A disabled server is not loaded. The name must be unique among the internal servers (409).
|
|
260
|
+
- A header with `{{token}}` works as in the declared ones: it uses `mcpTokens[name]` of the run, or its `autonomousToken` in an autonomous run. A header with the token written in it (for example `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjcm0uZXhhbXBsZS5jb20iLCJzdWIiOiJzdmMtb3Blbmxvb3BzLWNybSIsImF1ZCI6ImNybS1tY3AiLCJzY29wZSI6ImNybTpyZWFkIGNybTp3cml0ZSIsImlhdCI6MTc2MjIxNDQwMCwiZXhwIjoxNzkzNzUwNDAwfQ.YCtd8mv7RZpaZb3Z1aSl25MGP2QRWHc8RtA82MJOH7U`) is sent as it is and needs nothing from the run.
|
|
261
|
+
- Deleting is permanent. Internal servers have no owner, so they are not listed to any user.
|
|
262
|
+
- The normal functions (`getMcpServerById`, `updateMcpServer`, `deleteMcpServer`, `decideMcpServerTrust`, and the lists) never see them, not even for an admin, and `internal` and `enabled` in the payload of a user are ignored.
|
|
263
|
+
- If a server declared in code has the same name, the one in code wins. A server of a user with the same name as an internal one is ignored for that run.
|
|
264
|
+
- `headers` and `autonomousToken` are stored as written, like the headers of the servers of the users. Mask them in your controller before sending a record to a client.
|
|
265
|
+
- Run `ensureIndexes` after updating: it adds the unique index of the names of the internal servers.
|
|
183
266
|
|
|
184
267
|
## Tools of MCP servers
|
|
185
268
|
|
|
@@ -11,6 +11,14 @@ async function notifyOwner (message: string) {
|
|
|
11
11
|
const runner = createAutomationRunner({
|
|
12
12
|
agent: {
|
|
13
13
|
tools: [webSearchTool],
|
|
14
|
+
internalMcps: [
|
|
15
|
+
{
|
|
16
|
+
name: 'crm',
|
|
17
|
+
url: 'https://crm.example.com/mcp',
|
|
18
|
+
headers: { Authorization: 'Bearer {{token}}' },
|
|
19
|
+
autonomousToken: process.env.CRM_SERVICE_TOKEN,
|
|
20
|
+
},
|
|
21
|
+
],
|
|
14
22
|
guards: [inputGuards.blockCard],
|
|
15
23
|
maxIterations: 30,
|
|
16
24
|
},
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Logger } from 'openloops/common'
|
|
2
|
+
import { CurrentUser } from 'openloops/base'
|
|
3
|
+
import { createInternalMcp, updateInternalMcp, listInternalMcps, deleteInternalMcp } from 'openloops/mcps/admin'
|
|
4
|
+
|
|
5
|
+
async function manageInternalMcps () {
|
|
6
|
+
const logger = new Logger()
|
|
7
|
+
const admin = await CurrentUser.asyncFromDB('6ab56894eb20887d1ef7942c')
|
|
8
|
+
|
|
9
|
+
if (!admin) throw new Error('[Demo] admin is not defined')
|
|
10
|
+
|
|
11
|
+
const crm = await createInternalMcp({
|
|
12
|
+
payload: {
|
|
13
|
+
name: 'crm',
|
|
14
|
+
url: 'https://crm.example.com/mcp',
|
|
15
|
+
environment: 'production',
|
|
16
|
+
headers: { Authorization: 'Bearer {{token}}' },
|
|
17
|
+
autonomousToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjcm0uZXhhbXBsZS5jb20iLCJzdWIiOiJzdmMtb3Blbmxvb3BzLWNybSIsImF1ZCI6ImNybS1tY3AiLCJzY29wZSI6ImNybTpyZWFkIGNybTp3cml0ZSIsImlhdCI6MTc2MjIxNDQwMCwiZXhwIjoxNzkzNzUwNDAwfQ.YCtd8mv7RZpaZb3Z1aSl25MGP2QRWHc8RtA82MJOH7U',
|
|
18
|
+
},
|
|
19
|
+
currentUser: admin,
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
logger.info(crm, '[Demo] Created internal mcp:')
|
|
23
|
+
|
|
24
|
+
const catalog = await createInternalMcp({
|
|
25
|
+
payload: {
|
|
26
|
+
name: 'catalog',
|
|
27
|
+
url: 'https://catalog.example.com/mcp',
|
|
28
|
+
environment: 'production',
|
|
29
|
+
headers: { Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjcm0uZXhhbXBsZS5jb20iLCJzdWIiOiJzdmMtb3Blbmxvb3BzLWNybSIsImF1ZCI6ImNybS1tY3AiLCJzY29wZSI6ImNybTpyZWFkIGNybTp3cml0ZSIsImlhdCI6MTc2MjIxNDQwMCwiZXhwIjoxNzkzNzUwNDAwfQ.YCtd8mv7RZpaZb3Z1aSl25MGP2QRWHc8RtA82MJOH7U' },
|
|
30
|
+
},
|
|
31
|
+
currentUser: admin,
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
await updateInternalMcp({ id: String(catalog._id), payload: { enabled: false }, currentUser: admin })
|
|
35
|
+
|
|
36
|
+
const page = await listInternalMcps({ options: { page: 1, limit: 10 }, currentUser: admin })
|
|
37
|
+
|
|
38
|
+
logger.info({ names: page.items.map(item => item.name) }, '[Demo] Internal mcps:')
|
|
39
|
+
|
|
40
|
+
await deleteInternalMcp({ id: String(catalog._id), currentUser: admin })
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
manageInternalMcps()
|
|
@@ -14,9 +14,20 @@ async function runAgentWithInternalMcp (sessionToken: string) {
|
|
|
14
14
|
internalMcps: [
|
|
15
15
|
{
|
|
16
16
|
name: 'budget',
|
|
17
|
-
url: 'https://
|
|
17
|
+
url: 'https://budget.example.com/mcp',
|
|
18
18
|
headers: { Authorization: 'Bearer {{token}}' },
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
name: 'crm',
|
|
22
|
+
url: 'https://crm.example.com/mcp',
|
|
23
|
+
headers: { Authorization: 'Bearer {{token}}' },
|
|
24
|
+
autonomousToken: process.env.CRM_SERVICE_TOKEN,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'catalog',
|
|
28
|
+
url: 'https://catalog.example.com/mcp',
|
|
29
|
+
headers: { Authorization: `Bearer ${process.env.CATALOG_SERVICE_TOKEN}` },
|
|
30
|
+
},
|
|
20
31
|
],
|
|
21
32
|
})
|
|
22
33
|
|
|
@@ -26,7 +37,7 @@ async function runAgentWithInternalMcp (sessionToken: string) {
|
|
|
26
37
|
message: 'how much did I spend on food this month?',
|
|
27
38
|
},
|
|
28
39
|
currentUser,
|
|
29
|
-
mcpTokens: { budget: sessionToken },
|
|
40
|
+
mcpTokens: { budget: sessionToken, crm: sessionToken },
|
|
30
41
|
})
|
|
31
42
|
|
|
32
43
|
logger.debug(result, '[Demo] Result')
|
|
@@ -35,4 +46,4 @@ async function runAgentWithInternalMcp (sessionToken: string) {
|
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
runAgentWithInternalMcp('
|
|
49
|
+
runAgentWithInternalMcp('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjcm0uZXhhbXBsZS5jb20iLCJzdWIiOiJzdmMtb3Blbmxvb3BzLWNybSIsImF1ZCI6ImNybS1tY3AiLCJzY29wZSI6ImNybTpyZWFkIGNybTp3cml0ZSIsImlhdCI6MTc2MjIxNDQwMCwiZXhwIjoxNzkzNzUwNDAwfQ.YCtd8mv7RZpaZb3Z1aSl25MGP2QRWHc8RtA82MJOH7U')
|
|
@@ -11,7 +11,7 @@ async function updateMcp () {
|
|
|
11
11
|
payload: {
|
|
12
12
|
name: 'test-mcp-updated',
|
|
13
13
|
headers: {
|
|
14
|
-
'Authorization': 'Bearer
|
|
14
|
+
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjcm0uZXhhbXBsZS5jb20iLCJzdWIiOiJzdmMtb3Blbmxvb3BzLWNybSIsImF1ZCI6ImNybS1tY3AiLCJzY29wZSI6ImNybTpyZWFkIGNybTp3cml0ZSIsImlhdCI6MTc2MjIxNDQwMCwiZXhwIjoxNzkzNzUwNDAwfQ.YCtd8mv7RZpaZb3Z1aSl25MGP2QRWHc8RtA82MJOH7U'
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
currentUser,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openloops",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Open source harness for AI agents: a TypeScript runtime with persistence, tools, MCP trust, approvals and autonomous automations, where the loop is pluggable",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jose Barcos",
|
|
@@ -63,6 +63,10 @@
|
|
|
63
63
|
"types": "./dist/services/mcp-servers/index.d.ts",
|
|
64
64
|
"default": "./dist/services/mcp-servers/index.js"
|
|
65
65
|
},
|
|
66
|
+
"./mcps/admin": {
|
|
67
|
+
"types": "./dist/services/mcp-servers/admin/index.d.ts",
|
|
68
|
+
"default": "./dist/services/mcp-servers/admin/index.js"
|
|
69
|
+
},
|
|
66
70
|
"./automations": {
|
|
67
71
|
"types": "./dist/services/automations/index.d.ts",
|
|
68
72
|
"default": "./dist/services/automations/index.js"
|