@oobe-protocol-labs/sap-mcp-server 0.3.0 → 0.7.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.
Files changed (154) hide show
  1. package/.env.example +3 -0
  2. package/CHANGELOG.md +218 -2
  3. package/README.md +63 -0
  4. package/USER_DOCS/00_START_HERE.md +23 -1
  5. package/USER_DOCS/01_HOSTED_REMOTE_MCP.md +4 -1
  6. package/USER_DOCS/03_PAYMENTS_X402_PAYSH.md +63 -7
  7. package/USER_DOCS/04_CLIENT_CONFIGS.md +134 -6
  8. package/USER_DOCS/06_DESKTOP_GUI_WIZARD.md +262 -0
  9. package/dist/adapters/mcp/sdk-compat.d.ts.map +1 -1
  10. package/dist/adapters/mcp/sdk-compat.js +32 -18
  11. package/dist/adapters/mcp/sdk-compat.js.map +1 -1
  12. package/dist/config/mcp-client-injection.d.ts +64 -2
  13. package/dist/config/mcp-client-injection.d.ts.map +1 -1
  14. package/dist/config/mcp-client-injection.js +668 -11
  15. package/dist/config/mcp-client-injection.js.map +1 -1
  16. package/dist/config/wizard.d.ts.map +1 -1
  17. package/dist/config/wizard.js +89 -5
  18. package/dist/config/wizard.js.map +1 -1
  19. package/dist/core/constants.d.ts +1 -1
  20. package/dist/core/constants.js +1 -1
  21. package/dist/payments/facilitator-rpc-fallback.d.ts +43 -0
  22. package/dist/payments/facilitator-rpc-fallback.d.ts.map +1 -0
  23. package/dist/payments/facilitator-rpc-fallback.js +228 -0
  24. package/dist/payments/facilitator-rpc-fallback.js.map +1 -0
  25. package/dist/payments/json-rpc.d.ts.map +1 -1
  26. package/dist/payments/json-rpc.js +2 -1
  27. package/dist/payments/json-rpc.js.map +1 -1
  28. package/dist/payments/monetization-gate.d.ts +43 -2
  29. package/dist/payments/monetization-gate.d.ts.map +1 -1
  30. package/dist/payments/monetization-gate.js +618 -9
  31. package/dist/payments/monetization-gate.js.map +1 -1
  32. package/dist/payments/oobe-facilitator-server.d.ts +6 -0
  33. package/dist/payments/oobe-facilitator-server.d.ts.map +1 -1
  34. package/dist/payments/oobe-facilitator-server.js +79 -4
  35. package/dist/payments/oobe-facilitator-server.js.map +1 -1
  36. package/dist/payments/pricing.d.ts.map +1 -1
  37. package/dist/payments/pricing.js +1 -0
  38. package/dist/payments/pricing.js.map +1 -1
  39. package/dist/payments/usage-ledger.d.ts +10 -0
  40. package/dist/payments/usage-ledger.d.ts.map +1 -1
  41. package/dist/payments/usage-ledger.js +51 -0
  42. package/dist/payments/usage-ledger.js.map +1 -1
  43. package/dist/payments/x402-paid-call.d.ts +53 -0
  44. package/dist/payments/x402-paid-call.d.ts.map +1 -0
  45. package/dist/payments/x402-paid-call.js +370 -0
  46. package/dist/payments/x402-paid-call.js.map +1 -0
  47. package/dist/prompts/context/sap-agent-context.prompt.js +9 -3
  48. package/dist/prompts/context/sap-agent-context.prompt.js.map +1 -1
  49. package/dist/prompts/developer/debug-sap-error.prompt.js +1 -1
  50. package/dist/prompts/developer/debug-sap-error.prompt.js.map +1 -1
  51. package/dist/prompts/developer/generate-sap-integration.prompt.js +6 -2
  52. package/dist/prompts/developer/generate-sap-integration.prompt.js.map +1 -1
  53. package/dist/prompts/execution-proof/explain-proof-of-execution.prompt.js +1 -1
  54. package/dist/prompts/execution-proof/explain-proof-of-execution.prompt.js.map +1 -1
  55. package/dist/prompts/execution-proof/verify-execution-proof.prompt.js +1 -1
  56. package/dist/prompts/execution-proof/verify-execution-proof.prompt.js.map +1 -1
  57. package/dist/prompts/payments/create-paid-api.prompt.js +1 -1
  58. package/dist/prompts/payments/create-paid-api.prompt.js.map +1 -1
  59. package/dist/prompts/payments/explain-x402-settlement.prompt.js +1 -1
  60. package/dist/prompts/payments/explain-x402-settlement.prompt.js.map +1 -1
  61. package/dist/prompts/register-prompts.js +2 -2
  62. package/dist/prompts/register-prompts.js.map +1 -1
  63. package/dist/prompts/registry/analyze-sap-agent.prompt.js +1 -1
  64. package/dist/prompts/registry/analyze-sap-agent.prompt.js.map +1 -1
  65. package/dist/prompts/registry/register-sap-agent.prompt.js +2 -2
  66. package/dist/prompts/registry/register-sap-agent.prompt.js.map +1 -1
  67. package/dist/remote/server.d.ts +132 -1
  68. package/dist/remote/server.d.ts.map +1 -1
  69. package/dist/remote/server.js +885 -49
  70. package/dist/remote/server.js.map +1 -1
  71. package/dist/resources/current/sap-current-config.resource.d.ts.map +1 -1
  72. package/dist/resources/current/sap-current-config.resource.js +11 -1
  73. package/dist/resources/current/sap-current-config.resource.js.map +1 -1
  74. package/dist/resources/execution-proof/sap-execution-record.resource.js +1 -1
  75. package/dist/resources/execution-proof/sap-execution-record.resource.js.map +1 -1
  76. package/dist/resources/memory/sap-memory.resource.js +1 -1
  77. package/dist/resources/memory/sap-memory.resource.js.map +1 -1
  78. package/dist/resources/profile/sap-active-profile.resource.js +1 -1
  79. package/dist/resources/profile/sap-active-profile.resource.js.map +1 -1
  80. package/dist/resources/register-resources.js +2 -2
  81. package/dist/resources/register-resources.js.map +1 -1
  82. package/dist/resources/registry/sap-agent.resource.js +1 -1
  83. package/dist/resources/registry/sap-agent.resource.js.map +1 -1
  84. package/dist/resources/registry/sap-global-registry.resource.js +1 -1
  85. package/dist/resources/registry/sap-global-registry.resource.js.map +1 -1
  86. package/dist/resources/reputation/sap-reputation.resource.js +1 -1
  87. package/dist/resources/reputation/sap-reputation.resource.js.map +1 -1
  88. package/dist/resources/stats/sap-network-stats.resource.js +1 -1
  89. package/dist/resources/stats/sap-network-stats.resource.js.map +1 -1
  90. package/dist/resources/tool-schema/sap-tool-schema.resource.js +1 -1
  91. package/dist/resources/tool-schema/sap-tool-schema.resource.js.map +1 -1
  92. package/dist/sap/sap-client-manager.js +5 -5
  93. package/dist/sap/sap-client-manager.js.map +1 -1
  94. package/dist/security/tool-permissions.d.ts.map +1 -1
  95. package/dist/security/tool-permissions.js +1 -0
  96. package/dist/security/tool-permissions.js.map +1 -1
  97. package/dist/server/create-server.js +5 -5
  98. package/dist/server/create-server.js.map +1 -1
  99. package/dist/server/register-capabilities.js +4 -4
  100. package/dist/server/register-capabilities.js.map +1 -1
  101. package/dist/signer/signer-resolver.js +1 -1
  102. package/dist/signer/signer-resolver.js.map +1 -1
  103. package/dist/tools/client-sdk-tools.js +7 -7
  104. package/dist/tools/client-sdk-tools.js.map +1 -1
  105. package/dist/tools/index.d.ts +2 -0
  106. package/dist/tools/index.d.ts.map +1 -1
  107. package/dist/tools/index.js +4 -0
  108. package/dist/tools/index.js.map +1 -1
  109. package/dist/tools/magicblock-tools.d.ts +28 -0
  110. package/dist/tools/magicblock-tools.d.ts.map +1 -0
  111. package/dist/tools/magicblock-tools.js +578 -0
  112. package/dist/tools/magicblock-tools.js.map +1 -0
  113. package/dist/tools/profile-tools.d.ts.map +1 -1
  114. package/dist/tools/profile-tools.js +20 -0
  115. package/dist/tools/profile-tools.js.map +1 -1
  116. package/dist/tools/register-tools.d.ts.map +1 -1
  117. package/dist/tools/register-tools.js +11 -2
  118. package/dist/tools/register-tools.js.map +1 -1
  119. package/dist/tools/sap-sdk-tools.js +2 -2
  120. package/dist/tools/sap-sdk-tools.js.map +1 -1
  121. package/dist/tools/sap-sns-tools.js +2 -2
  122. package/dist/tools/sap-sns-tools.js.map +1 -1
  123. package/dist/tools/skills-tools.d.ts +1 -1
  124. package/dist/tools/skills-tools.d.ts.map +1 -1
  125. package/dist/tools/skills-tools.js +10 -1
  126. package/dist/tools/skills-tools.js.map +1 -1
  127. package/dist/tools/tool-aliases.d.ts +10 -0
  128. package/dist/tools/tool-aliases.d.ts.map +1 -0
  129. package/dist/tools/tool-aliases.js +23 -0
  130. package/dist/tools/tool-aliases.js.map +1 -0
  131. package/dist/tools/x402-paid-call-tool.d.ts +12 -0
  132. package/dist/tools/x402-paid-call-tool.d.ts.map +1 -0
  133. package/dist/tools/x402-paid-call-tool.js +118 -0
  134. package/dist/tools/x402-paid-call-tool.js.map +1 -0
  135. package/dist/wizard-core/desktop-flow.d.ts +82 -0
  136. package/dist/wizard-core/desktop-flow.d.ts.map +1 -0
  137. package/dist/wizard-core/desktop-flow.js +181 -0
  138. package/dist/wizard-core/desktop-flow.js.map +1 -0
  139. package/docs/00_README.md +3 -0
  140. package/docs/03_CONFIGURATION_AND_WIZARD.md +31 -5
  141. package/docs/06_PAYMENTS_X402_AND_PAYSH.md +70 -7
  142. package/docs/07_ENDPOINTS_AND_CLIENTS.md +28 -1
  143. package/docs/10_OPERATIONS_RELEASE_AND_PM2.md +7 -6
  144. package/docs/13_BOUNTY_PROGRAM_PROPOSAL.md +469 -0
  145. package/docs/14_DESKTOP_WIZARD_RELEASE.md +264 -0
  146. package/docs/README.md +104 -0
  147. package/docs/_sidebar.md +31 -0
  148. package/docs/magicblock-tools.md +166 -0
  149. package/docs/x402-protocol-spec.md +984 -0
  150. package/package.json +23 -2
  151. package/server.json +71 -0
  152. package/skills/sap-defi/SKILL.md +8 -0
  153. package/skills/sap-mcp/SKILL.md +30 -0
  154. package/skills/sap-payments-x402/SKILL.md +36 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"desktop-flow.js","sourceRoot":"","sources":["../../src/wizard-core/desktop-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAiD,MAAM,oBAAoB,CAAC;AACpG,OAAO,EACL,wBAAwB,EACxB,qCAAqC,EACrC,iCAAiC,EACjC,wBAAwB,GAEzB,MAAM,mCAAmC,CAAC;AA6D3C;;;GAGG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACvD,OAAO,KAAK;SACT,IAAI,EAAE;SACN,WAAW,EAAE;SACb,OAAO,CAAC,cAAc,EAAE,GAAG,CAAC;SAC5B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAC5B,CAAC;AAED;;;GAGG;AACH,MAAM,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E,CAAC;QACrF,cAAc,CAAC,IAAI,CAAC;YAClB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;YAC5B,MAAM,EAAE,YAAY;YACpB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI;YACxB,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,KAAK,MAAM,EAAE,CAAC;QAC9D,MAAM,KAAK,GAAG,qCAAqC,EAAE,CAAC;QACtD,cAAc,CAAC,IAAI,CAAC;YAClB,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE,YAAY;YACpB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;YACvB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,KAAK,CAAC,kBAAkB,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;QACzC,cAAc,CAAC,IAAI,CAAC;YAClB,OAAO,EAAE,sBAAsB;YAC/B,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,KAAK,CAAC,SAAS;YACrB,OAAO,EAAE,aAAa,KAAK,CAAC,OAAO,gBAAgB;SACpD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc,EAAE,CAAC;AAC/D,CAAC"}
package/docs/00_README.md CHANGED
@@ -22,6 +22,8 @@ For end-user installation and MCP client setup, start with [`../USER_DOCS/00_STA
22
22
  | [10. Operations, Release, And PM2](10_OPERATIONS_RELEASE_AND_PM2.md) | Build gates, PM2 ecosystem, logs, monitoring, changelog discipline, public/private repo guidance. |
23
23
  | [11. Code Quality Audit](11_CODE_QUALITY_AUDIT.md) | Engineering scorecard, release gates, quality rules, and current residual risks. |
24
24
  | [12. On-Chain Agent Chat](12_ONCHAIN_AGENT_CHAT.md) | SAP signed thematic group rooms, room manifests, retrieval, link sharing, privacy boundaries, and SDK-native roadmap. |
25
+ | [13. Bounty Program Proposal](13_BOUNTY_PROGRAM_PROPOSAL.md) | Proposed multi-partner bounty with OOBE/SAP MCP, Bento, Metaplex 014/MPL Core, SNS, judging criteria, and technical requirements. |
26
+ | [14. Desktop Wizard Release](14_DESKTOP_WIZARD_RELEASE.md) | GUI wizard architecture, release artifacts, signing requirements, and multi-OS GitHub Actions packaging. |
25
27
 
26
28
  ## 00.2 Primary Binaries
27
29
 
@@ -34,6 +36,7 @@ For end-user installation and MCP client setup, start with [`../USER_DOCS/00_STA
34
36
  | `sap-signing-proxy` | Local signing proxy for external signer mode. |
35
37
  | `sap-mcp-facilitator` | Self-hosted x402 SVM facilitator. |
36
38
  | `sap-mcp-pay-sh-spec` | pay.sh provider YAML generator. |
39
+ | SAP MCP Desktop Wizard | GUI/TUI-style installer released as DMG/ZIP, Windows EXE, and Linux tar.gz artifacts. |
37
40
 
38
41
  ## 00.3 Golden Rules
39
42
 
@@ -62,7 +62,24 @@ The wizard should:
62
62
  9. Offer optional MCP client config injection.
63
63
  10. Warn before merge or override when an existing `sap` MCP entry is found.
64
64
 
65
- ## 03.5 Client Config Injection
65
+ ## 03.5 Desktop GUI Wizard
66
+
67
+ SAP MCP also ships a Desktop GUI Wizard for users who should not need to edit JSON, TOML, or YAML by hand.
68
+
69
+ The desktop app uses the same setup modules as `sap-mcp-config wizard`; it must not create a second config format or a separate wallet model.
70
+
71
+ Desktop flow:
72
+
73
+ 1. Choose a named profile.
74
+ 2. Create or import a dedicated SAP MCP wallet.
75
+ 3. Set policy limits and optional Bento Guard metadata.
76
+ 4. Detect local agent runtimes.
77
+ 5. Configure hosted MCP and the local x402 paid-call bridge where supported.
78
+ 6. Show a final review before writing files.
79
+
80
+ Release artifacts are produced as macOS DMG/ZIP, Windows NSIS EXE, and Linux tar.gz. See [14. Desktop Wizard Release](14_DESKTOP_WIZARD_RELEASE.md).
81
+
82
+ ## 03.6 Client Config Injection
66
83
 
67
84
  The injection step is optional. It targets known local MCP clients such as Claude Desktop, Hermes, Codex, and OpenClaw.
68
85
 
@@ -86,7 +103,17 @@ The injected config should follow the profile manager:
86
103
 
87
104
  Do not inject keypair bytes, hard-coded legacy wallet paths, or stale RPC overrides into agent client files.
88
105
 
89
- ## 03.6 Config CLI
106
+ For hosted paid/write tools, clients may also need a local `sap_payments` bridge that exposes only:
107
+
108
+ ```txt
109
+ sap_x402_paid_call
110
+ sap_profile_current
111
+ sap_x402_estimate_cost
112
+ ```
113
+
114
+ This bridge signs x402 payment proofs locally with the active SAP MCP profile and retries the hosted tool call.
115
+
116
+ ## 03.7 Config CLI
90
117
 
91
118
  Use `sap-mcp-config` for profile and policy operations:
92
119
 
@@ -109,7 +136,7 @@ npx sap-mcp-config audit
109
136
  npx sap-mcp-config hash
110
137
  ```
111
138
 
112
- ## 03.7 Approval Workflow
139
+ ## 03.8 Approval Workflow
113
140
 
114
141
  Sensitive config changes can require approval. Typical protected fields are:
115
142
 
@@ -121,7 +148,7 @@ Sensitive config changes can require approval. Typical protected fields are:
121
148
 
122
149
  Pending changes are listed with `sap-mcp-config pending`, approved with `sap-mcp-config approve <id>`, and denied with `sap-mcp-config deny <id>`.
123
150
 
124
- ## 03.8 Network Consistency
151
+ ## 03.9 Network Consistency
125
152
 
126
153
  The active profile is the source of truth for network behavior. If a profile is on devnet, SAP tools must return devnet data. If a profile is on mainnet, SAP tools must return mainnet data.
127
154
 
@@ -140,4 +167,3 @@ env:
140
167
  SAP_MCP_ALLOW_ENV_CONFIG_OVERRIDE: "false"
141
168
  SAP_LOG_LEVEL: info
142
169
  ```
143
-
@@ -42,7 +42,49 @@ PAYMENT-SIGNATURE: <x402 payment payload>
42
42
  X-PAYMENT: <x402 payment payload>
43
43
  ```
44
44
 
45
- ## 06.4 Payment Test Matrix
45
+ The retry must preserve the initialized `mcp-session-id` and the same MCP method
46
+ and params that produced the challenge. JSON-RPC `id` is not part of the
47
+ canonical paid request hash.
48
+
49
+ ## 06.4 Local x402 Paid-Call Addon
50
+
51
+ Some clients can connect to hosted Streamable HTTP MCP but cannot yet sign and
52
+ replay x402 challenges natively. SAP MCP ships a local helper for that case:
53
+
54
+ ```bash
55
+ npm exec --yes --package @oobe-protocol-labs/sap-mcp-server -- sap-mcp-x402-paid-call \
56
+ --tool sap_list_all_agents \
57
+ --arguments '{"limit":5}' \
58
+ --max-usd 0.02 \
59
+ --max-attempts 5 \
60
+ --confirm
61
+ ```
62
+
63
+ The wizard can install addon metadata and snippets for Hermes, Claude, Codex,
64
+ OpenClaw, or custom runtimes:
65
+
66
+ ```text
67
+ ~/.config/mcp-sap/addons/x402-paid-call
68
+ ```
69
+
70
+ The helper initializes the hosted MCP session, receives the x402 challenge,
71
+ signs the payment payload with the user's local SAP MCP profile wallet, retries
72
+ the hosted call, and prints the settlement receipt. It does not send keypair
73
+ bytes to the hosted server. It fails closed when the active profile has no
74
+ supported local payment signer.
75
+
76
+ Local stdio SAP MCP may expose `sap_x402_paid_call` when the process has a
77
+ user-controlled wallet profile. The public hosted server should not advertise
78
+ that helper in non-custodial mode because signing belongs on the user's machine.
79
+
80
+ Transient settlement errors such as `BlockhashNotFound`,
81
+ `transaction_simulation_failed`, `smart_wallet_simulation_failed`, `node is
82
+ behind`, `minimum context slot`, or `fetch failed` should be retried with a
83
+ fresh x402 challenge and payment payload. Do not reuse old signed payment
84
+ payloads, and do not bypass the hosted paid path with direct RPC calls unless
85
+ the user explicitly asks for local execution.
86
+
87
+ ## 06.5 Payment Test Matrix
46
88
 
47
89
  Before mainnet launch, verify these cases on devnet:
48
90
 
@@ -59,7 +101,7 @@ Before mainnet launch, verify these cases on devnet:
59
101
  | Facilitator unavailable | Paid call fails closed, not free. |
60
102
  | pay.sh checkout configured | 402 body includes checkout URL, but SAP MCP remains pricing authority. |
61
103
 
62
- ## 06.5 pay.sh Role
104
+ ## 06.6 pay.sh Role
63
105
 
64
106
  pay.sh is useful as a provider/catalog/proxy layer for public distribution and checkout UX.
65
107
 
@@ -72,7 +114,7 @@ Important distinction:
72
114
 
73
115
  For that reason, SAP MCP should remain the pricing source of truth for MCP `tools/call` requests.
74
116
 
75
- ## 06.6 Enable Monetization
117
+ ## 06.7 Enable Monetization
76
118
 
77
119
  Configure monetization through a private environment store. Public docs should not include live facilitator URLs, auth tokens, payment recipients, RPC credentials, or signer paths.
78
120
 
@@ -91,7 +133,7 @@ SAP_MCP_PAY_SH_CHECKOUT_URL=<optional-pay-sh-checkout-url>
91
133
 
92
134
  `SAP_MCP_MONETIZATION_PAY_TO` is the revenue recipient. It is not the facilitator signer, not a customer payment signer, and not an agent wallet.
93
135
 
94
- ## 06.7 Facilitator Keypair
136
+ ## 06.8 Facilitator Keypair
95
137
 
96
138
  The facilitator needs its own dedicated signer. Initialize it:
97
139
 
@@ -112,7 +154,7 @@ The facilitator signer is used for facilitator operations. It must be separate f
112
154
  3. Revenue recipient wallet.
113
155
  4. Customer wallets.
114
156
 
115
- ## 06.8 Start Facilitator
157
+ ## 06.9 Start Facilitator
116
158
 
117
159
  Start the facilitator through PM2, systemd, or a container supervisor with private environment injection:
118
160
 
@@ -122,7 +164,26 @@ npx sap-mcp-facilitator start
122
164
 
123
165
  If the facilitator binds to a non-loopback host or is reachable across a network boundary, an auth token is required.
124
166
 
125
- ## 06.9 Generate pay.sh Provider YAML
167
+ Facilitator settlement depends on Solana RPC health. Production deployments should configure at least one private primary RPC and one or more fallback endpoints:
168
+
169
+ ```bash
170
+ SAP_MCP_FACILITATOR_RPC_URL=<private-primary-rpc-url>
171
+ SAP_MCP_FACILITATOR_RPC_FALLBACK_URLS=<private-backup-rpc-url>,https://api.mainnet-beta.solana.com
172
+ ```
173
+
174
+ The facilitator retries only transient RPC failures such as transport failures, throttling, lagging nodes, skipped slots, or blockhash visibility issues. It does not retry business failures such as insufficient funds, invalid signatures, or program errors. RPC URLs are redacted in logs and CLI output.
175
+
176
+ ## 06.10 Generate pay.sh Provider YAML
177
+
178
+ The hosted OOBE deployment publishes a public, secret-free provider catalog at:
179
+
180
+ ```text
181
+ https://mcp.sap.oobeprotocol.ai/pay/provider.yml
182
+ ```
183
+
184
+ Use that URL for catalog discovery and pay.sh proxy configuration. It intentionally omits private RPC URLs, signer paths, facilitator auth tokens, and VPS-local paths.
185
+
186
+ For private operator files, generate a provider YAML locally:
126
187
 
127
188
  ```bash
128
189
  npx sap-mcp-pay-sh-spec \
@@ -149,7 +210,9 @@ Options:
149
210
  | `--title <text>` | pay.sh provider title. |
150
211
  | `--no-fee-payer` | Disable operator fee-payer sponsorship. |
151
212
 
152
- ## 06.10 Usage Ledger
213
+ Do not publish generated YAML files that include `--rpc-url` or `--signer-path`.
214
+
215
+ ## 06.11 Usage Ledger
153
216
 
154
217
  Payment decisions are written to the usage ledger. The ledger should store:
155
218
 
@@ -5,8 +5,14 @@
5
5
  | Method | Path | Purpose | Auth |
6
6
  | --- | --- | --- | --- |
7
7
  | `GET` | `/` | Public landing page with share metadata and safe endpoint information. | Public. |
8
+ | `GET` | `/docs` | Docsify-powered public documentation site for install, start, configuration, hosted remote MCP, x402/pay.sh, and client setup. | Public. |
9
+ | `GET` | `/docs/*.md` | Read-only markdown files used by the docs site. Supports `docs/` and `USER_DOCS/` through `/docs/user/*.md`. | Public. |
8
10
  | `GET` | `/server.json` | Machine-readable public server metadata. | Public. |
11
+ | `GET` | `/openapi.json` | OpenAPI 3.1 discovery document for the hosted MCP endpoint, x402 metadata, and pay.sh catalog link. | Public. |
12
+ | `GET` | `/.well-known/x402` | x402 discovery document for paid hosted MCP resources. | Public. |
13
+ | `GET` | `/pay/provider.yml` | Secret-free pay.sh provider YAML for the hosted SAP MCP catalog/proxy workflow. | Public. |
9
14
  | `GET` | `/favicon.png` | SAP MCP favicon/social preview asset. | Public. |
15
+ | `GET` | `/favicon.ico` | Browser favicon compatibility route at the API root. | Public. |
10
16
  | `GET` | `/health` | Health check. | No, unless reverse proxy requires it. |
11
17
  | `GET` | `/.well-known/agent-card.json` | A2A-compatible discovery card. | Usually public. |
12
18
  | `GET` | `/.well-known/sap-mcp-wizard.json` | Machine-readable wizard install metadata for agents that cannot see local config. | Public. |
@@ -15,7 +21,7 @@
15
21
  | `GET` | `/mcp` | Streamable HTTP session stream. Browser-style `Accept: text/html` receives a public preview page instead. | Same as `POST /mcp`. |
16
22
  | `DELETE` | `/mcp` | Streamable HTTP session cleanup. | Same as `POST /mcp`. |
17
23
 
18
- The public HTML and JSON endpoints must remain secret-free. Do not expose RPC query parameters, private VPS paths, keypair file paths, bearer tokens, facilitator auth tokens, or wallet bytes through these routes.
24
+ The public HTML, JSON, and YAML endpoints must remain secret-free. Do not expose RPC query parameters, private VPS paths, keypair file paths, bearer tokens, facilitator auth tokens, or wallet bytes through these routes.
19
25
 
20
26
  ## 07.2 Facilitator Endpoints
21
27
 
@@ -113,6 +119,27 @@ Generic MCP client JSON:
113
119
  }
114
120
  ```
115
121
 
122
+ Codex `~/.codex/config.toml`:
123
+
124
+ ```toml
125
+ [mcp_servers.sap]
126
+ url = "https://mcp.sap.oobeprotocol.ai/mcp"
127
+ ```
128
+
129
+ Codex supports Streamable HTTP MCP servers with URL-based TOML entries. Use local stdio through `npx` only when you want Codex to launch SAP MCP locally:
130
+
131
+ ```toml
132
+ [mcp_servers.sap]
133
+ command = "npx"
134
+ args = ["--yes", "--package", "@oobe-protocol-labs/sap-mcp-server", "sap-mcp-server"]
135
+
136
+ [mcp_servers.sap.env]
137
+ SAP_MCP_ALLOW_ENV_CONFIG_OVERRIDE = "false"
138
+ SAP_LOG_LEVEL = "info"
139
+ ```
140
+
141
+ On Windows, use `command = "npx.cmd"`.
142
+
116
143
  Hermes global `~/.hermes/mcp.json`:
117
144
 
118
145
  ```json
@@ -93,9 +93,10 @@ Version `0.2.0` includes:
93
93
  4. Optional client config injection for local agents.
94
94
  5. x402 monetization gate for paid hosted tool calls.
95
95
  6. OOBE self-hosted x402 SVM facilitator.
96
- 7. pay.sh provider YAML generation.
97
- 8. SAP SDK, SNS, Synapse AgentKit, Solana, profile, transaction, skill, chat, and payment tools.
98
- 9. Policy engine support with local, Bento, and hybrid modes.
99
- 10. Security guardrails for private key exposure and unsafe actions.
100
- 11. Clean `pnpm audit --audit-level moderate` dependency graph.
101
- 12. Node.js `>=22.12.0` and pnpm `11.7.0` release baseline.
96
+ 7. Facilitator RPC failover through `SAP_MCP_FACILITATOR_RPC_FALLBACK_URLS` for transient endpoint failures.
97
+ 8. pay.sh provider YAML generation.
98
+ 9. SAP SDK, SNS, Synapse AgentKit, Solana, profile, transaction, skill, chat, and payment tools.
99
+ 10. Policy engine support with local, Bento, and hybrid modes.
100
+ 11. Security guardrails for private key exposure and unsafe actions.
101
+ 12. Clean `pnpm audit --audit-level moderate` dependency graph.
102
+ 13. Node.js `>=22.12.0` and pnpm `11.7.0` release baseline.