@ours.network/mcp 0.16.0 → 0.17.0-nightly.10
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 +41 -0
- package/dist/association.js +2 -0
- package/dist/cli.js +90 -89
- package/dist/index.js +64 -80
- package/dist/mufl_code/8ED6356B41CC689C75DA3302AD7856058131661A6ABBAC961E71BA838D8C97A3.muflo +0 -0
- package/dist/push.js +2 -0
- package/dist/service-instance.js +47 -0
- package/package.json +4 -5
package/dist/mufl_code/8ED6356B41CC689C75DA3302AD7856058131661A6ABBAC961E71BA838D8C97A3.muflo
CHANGED
|
Binary file
|
package/dist/push.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
function t(n,s,o){let e;try{e=n()}catch(r){o(s,r);return}e&&typeof e.then=="function"&&e.then(void 0,r=>o(s,r))}function i(n,s,o,e){t(()=>n.sendLoggingMessage({level:"info",logger:"ours",data:o}),"sendLoggingMessage",e),t(()=>n.server.sendResourceUpdated({uri:s}),"sendResourceUpdated",e)}export{i as pushInboxNotifications};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var a="ours.service",o="solutions.adaptframework.ours",g=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,30}[A-Za-z0-9])?$/;function s(e){let t=typeof e=="string"?e.trim():"";return t?t.length>32?{ok:!1,name:"",reason:"service name must be 32 characters or fewer"}:g.test(t)?{ok:!0,name:t}:{ok:!1,name:"",reason:"service name must be 1\u201332 characters of letters, digits, hyphen or underscore, starting and ending with a letter or digit"}:{ok:!0,name:""}}function k(e=""){let{ok:t,name:n}=s(e);return!t||!n?a:`ours-${n}.service`}function c(e=""){let{ok:t,name:n}=s(e);return!t||!n?o:`${o}.${n}`}function l(e=""){let{ok:t,name:n}=s(e);return t&&n?`ours MCP daemon (instance "${n}") \u2014 secure agent-to-agent messaging over ADAPT`:"ours MCP daemon (secure agent-to-agent messaging over ADAPT)"}function m(e){let t=s(e.instance).name,n=t?`Environment=OURS_SERVICE_NAME=${t}
|
|
3
|
+
`:"",i=t&&e.configPath?`Environment=OURS_CONFIG=${e.configPath}
|
|
4
|
+
`:"";return`[Unit]
|
|
5
|
+
Description=${l(t)}
|
|
6
|
+
After=network-online.target
|
|
7
|
+
Wants=network-online.target
|
|
8
|
+
|
|
9
|
+
[Service]
|
|
10
|
+
Type=simple
|
|
11
|
+
ExecStart=${e.execPath} ${e.self} serve
|
|
12
|
+
Environment=OURS_TRANSPORT=http
|
|
13
|
+
Environment=OURS_PORT=${e.port}
|
|
14
|
+
Environment=OURS_BROKER_URL=${e.brokerUrl}
|
|
15
|
+
Environment=OURS_STATE_DIR=${e.stateDir}
|
|
16
|
+
${i}${n}Restart=on-failure
|
|
17
|
+
RestartSec=2
|
|
18
|
+
|
|
19
|
+
[Install]
|
|
20
|
+
WantedBy=default.target
|
|
21
|
+
`}function r(e){return String(e).replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t])}function f(e){let t=s(e.instance).name,n=t?` <key>OURS_SERVICE_NAME</key><string>${r(t)}</string>
|
|
22
|
+
`:"",i=t&&e.configPath?` <key>OURS_CONFIG</key><string>${r(e.configPath)}</string>
|
|
23
|
+
`:"";return`<?xml version="1.0" encoding="UTF-8"?>
|
|
24
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
25
|
+
<plist version="1.0">
|
|
26
|
+
<dict>
|
|
27
|
+
<key>Label</key><string>${r(c(t))}</string>
|
|
28
|
+
<key>ProgramArguments</key>
|
|
29
|
+
<array>
|
|
30
|
+
<string>${r(e.execPath)}</string>
|
|
31
|
+
<string>${r(e.self)}</string>
|
|
32
|
+
<string>serve</string>
|
|
33
|
+
</array>
|
|
34
|
+
<key>EnvironmentVariables</key>
|
|
35
|
+
<dict>
|
|
36
|
+
<key>OURS_TRANSPORT</key><string>http</string>
|
|
37
|
+
<key>OURS_PORT</key><string>${e.port}</string>
|
|
38
|
+
<key>OURS_BROKER_URL</key><string>${r(e.brokerUrl)}</string>
|
|
39
|
+
<key>OURS_STATE_DIR</key><string>${r(e.stateDir)}</string>
|
|
40
|
+
${i}${n} </dict>
|
|
41
|
+
<key>RunAtLoad</key><true/>
|
|
42
|
+
<key>KeepAlive</key><true/>
|
|
43
|
+
<key>StandardOutPath</key><string>${r(e.logPath??"")}</string>
|
|
44
|
+
<key>StandardErrorPath</key><string>${r(e.logPath??"")}</string>
|
|
45
|
+
</dict>
|
|
46
|
+
</plist>
|
|
47
|
+
`}export{o as DEFAULT_LAUNCHD_LABEL,a as DEFAULT_SYSTEMD_UNIT,f as buildLaunchdPlist,m as buildSystemdUnit,c as launchdLabel,s as normalizeInstanceName,l as serviceDescription,k as systemdUnitName};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ours.network/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "MCP server daemon for ours
|
|
3
|
+
"version": "0.17.0-nightly.10",
|
|
4
|
+
"description": "MCP server daemon for ours \u2014 one native ADAPT wrapper hosting N self-sovereign identities, exposing secure agent-to-agent messaging tools over HTTP (Streamable HTTP). Run `ours-mcp start`.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
7
7
|
"author": "Adapt Toolkit",
|
|
@@ -48,11 +48,10 @@
|
|
|
48
48
|
"serve": "node dist/cli.js serve",
|
|
49
49
|
"prepublishOnly": "node build.mjs",
|
|
50
50
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
51
|
-
"test": "bash ../../scripts/test-receipts-mufl.sh && bash ../../scripts/test-notifications-mufl.sh && bash ../../scripts/test-contact-uniqueness-mufl.sh && bash ../../scripts/test-temp-remove-me-mufl.sh && node test/contact-lines.test.mjs && node test/loopback-bind.test.mjs && node test/lease-binding.test.mjs && node test/proxy-request-failback.test.mjs && node test/session-restore.test.mjs && node test/
|
|
51
|
+
"test": "node test/association.test.mjs && node test/sdk-pin.test.mjs && node test/skill-tool-vocabulary.test.mjs && node test/inbox-push.test.mjs && bash ../../scripts/test-receipts-mufl.sh && bash ../../scripts/test-notifications-mufl.sh && bash ../../scripts/test-contact-uniqueness-mufl.sh && bash ../../scripts/test-temp-remove-me-mufl.sh && node test/contact-lines.test.mjs && node test/loopback-bind.test.mjs && node test/lease-binding.test.mjs && node test/proxy-request-failback.test.mjs && node test/session-restore.test.mjs && node test/resource-updated.test.mjs && node test/daemon-restart-resume.test.mjs && node test/sse-keepalive.test.mjs && node test/files-helpers.test.mjs && node test/inbox-encryption.test.mjs && node test/port-visibility.test.mjs && node test/notify-http-api.test.mjs && node test/file-save-stream.test.mjs && node test/unread-http-api.test.mjs && node test/create-root-cli.test.mjs && node test/session-reaper.test.mjs && node test/mig1867-verify.test.mjs && node test/single-root-policy.test.mjs && node test/pre137-blob-import-regression.test.mjs && node test/transcribe-detect.test.mjs && node test/transcribe-stt.test.mjs && node test/voice-status-cli.test.mjs && node test/process-state.test.mjs && node test/service-instance.test.mjs && node test/voice-setup-config.test.mjs && node test/voice-setup-cli.test.mjs && node test/startup-progress.test.mjs && node test/startup-cli.test.mjs && node test/contact-uniqueness-daemon.test.mjs && node test/contact-uniqueness-import.test.mjs && node test/contact-uniqueness-book.test.mjs && node test/invite-modes.test.mjs && node test/temp-identities.test.mjs && node test/watch-priming-retry.test.mjs"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@
|
|
55
|
-
"@adapt-toolkit/sdk-native": "0.10.12"
|
|
54
|
+
"@ours.network/sdk": "0.1.1"
|
|
56
55
|
},
|
|
57
56
|
"devDependencies": {
|
|
58
57
|
"@modelcontextprotocol/sdk": "^1.0.4",
|