@sanctuary-framework/mcp-server 0.4.0 → 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.
package/dist/index.d.cts CHANGED
@@ -1,10 +1,5 @@
1
1
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
2
 
3
- /**
4
- * Sanctuary MCP Server — Configuration
5
- *
6
- * Loads and validates server configuration from file or environment variables.
7
- */
8
3
  interface SanctuaryConfig {
9
4
  version: string;
10
5
  storage_path: string;
@@ -670,6 +665,11 @@ interface SHRCapabilities {
670
665
  */
671
666
  interface SHRBody {
672
667
  shr_version: "1.0";
668
+ implementation: {
669
+ sanctuary_version: string;
670
+ node_version: string;
671
+ generated_by: string;
672
+ };
673
673
  instance_id: string;
674
674
  generated_at: string;
675
675
  expires_at: string;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
2
 
3
- /**
4
- * Sanctuary MCP Server — Configuration
5
- *
6
- * Loads and validates server configuration from file or environment variables.
7
- */
8
3
  interface SanctuaryConfig {
9
4
  version: string;
10
5
  storage_path: string;
@@ -670,6 +665,11 @@ interface SHRCapabilities {
670
665
  */
671
666
  interface SHRBody {
672
667
  shr_version: "1.0";
668
+ implementation: {
669
+ sanctuary_version: string;
670
+ node_version: string;
671
+ generated_by: string;
672
+ };
673
673
  instance_id: string;
674
674
  generated_at: string;
675
675
  expires_at: string;
package/dist/index.js CHANGED
@@ -206,6 +206,7 @@ var init_hashing = __esm({
206
206
  });
207
207
  var require2 = createRequire(import.meta.url);
208
208
  var { version: PKG_VERSION } = require2("../package.json");
209
+ var SANCTUARY_VERSION = PKG_VERSION;
209
210
  function defaultConfig() {
210
211
  return {
211
212
  version: PKG_VERSION,
@@ -3636,7 +3637,12 @@ var DEFAULT_POLICY = {
3636
3637
  "context_gate_filter",
3637
3638
  "context_gate_list_policies",
3638
3639
  "l2_hardening_status",
3639
- "l2_verify_isolation"
3640
+ "l2_verify_isolation",
3641
+ "sovereignty_audit",
3642
+ "shr_gateway_export",
3643
+ "bridge_commit",
3644
+ "bridge_verify",
3645
+ "bridge_attest"
3640
3646
  ],
3641
3647
  approval_channel: DEFAULT_CHANNEL
3642
3648
  };
@@ -3795,6 +3801,11 @@ tier3_always_allow:
3795
3801
  - context_gate_recommend
3796
3802
  - context_gate_filter
3797
3803
  - context_gate_list_policies
3804
+ - sovereignty_audit
3805
+ - shr_gateway_export
3806
+ - bridge_commit
3807
+ - bridge_verify
3808
+ - bridge_attest
3798
3809
 
3799
3810
  # \u2500\u2500\u2500 Approval Channel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
3800
3811
  # How Sanctuary reaches you when approval is needed.
@@ -4589,8 +4600,6 @@ function generateDashboardHTML(options) {
4589
4600
  }
4590
4601
 
4591
4602
  // src/principal-policy/dashboard.ts
4592
- var require4 = createRequire(import.meta.url);
4593
- var { version: PKG_VERSION3 } = require4("../../package.json");
4594
4603
  var SESSION_TTL_MS = 5 * 60 * 1e3;
4595
4604
  var MAX_SESSIONS = 1e3;
4596
4605
  var RATE_LIMIT_WINDOW_MS = 6e4;
@@ -4619,7 +4628,7 @@ var DashboardApprovalChannel = class {
4619
4628
  this.useTLS = !!(config.tls?.cert_path && config.tls?.key_path);
4620
4629
  this.dashboardHTML = generateDashboardHTML({
4621
4630
  timeoutSeconds: config.timeout_seconds,
4622
- serverVersion: PKG_VERSION3,
4631
+ serverVersion: SANCTUARY_VERSION,
4623
4632
  authToken: this.authToken
4624
4633
  });
4625
4634
  this.sessionCleanupTimer = setInterval(() => this.cleanupSessions(), 6e4);
@@ -5682,6 +5691,11 @@ function generateSHR(identityId, opts) {
5682
5691
  }
5683
5692
  const body = {
5684
5693
  shr_version: "1.0",
5694
+ implementation: {
5695
+ sanctuary_version: config.version,
5696
+ node_version: process.versions.node,
5697
+ generated_by: "sanctuary-mcp-server"
5698
+ },
5685
5699
  instance_id: identity.identity_id,
5686
5700
  generated_at: now.toISOString(),
5687
5701
  expires_at: expiresAt.toISOString(),