@oobe-protocol-labs/sap-mcp-server 0.9.35 → 0.9.36

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 (80) hide show
  1. package/.env.example +13 -9
  2. package/CHANGELOG.md +24 -0
  3. package/README.md +8 -7
  4. package/USER_DOCS/01_HOSTED_REMOTE_MCP.md +1 -1
  5. package/USER_DOCS/03_PAYMENTS_X402_PAYSH.md +1 -1
  6. package/USER_DOCS/04_CLIENT_CONFIGS.md +3 -3
  7. package/USER_DOCS/06_DESKTOP_GUI_WIZARD.md +5 -5
  8. package/config.example.json +5 -4
  9. package/dist/config/env.d.ts +4 -0
  10. package/dist/config/env.d.ts.map +1 -1
  11. package/dist/config/env.js +14 -8
  12. package/dist/config/env.js.map +1 -1
  13. package/dist/config/mcp-client-injection.d.ts.map +1 -1
  14. package/dist/config/mcp-client-injection.js +31 -2
  15. package/dist/config/mcp-client-injection.js.map +1 -1
  16. package/dist/config/profiles.d.ts +5 -0
  17. package/dist/config/profiles.d.ts.map +1 -1
  18. package/dist/config/profiles.js +37 -9
  19. package/dist/config/profiles.js.map +1 -1
  20. package/dist/config/wizard.d.ts.map +1 -1
  21. package/dist/config/wizard.js +41 -0
  22. package/dist/config/wizard.js.map +1 -1
  23. package/dist/config-cli.d.ts.map +1 -1
  24. package/dist/config-cli.js +17 -1
  25. package/dist/config-cli.js.map +1 -1
  26. package/dist/core/constants.d.ts +1 -1
  27. package/dist/core/constants.js +1 -1
  28. package/dist/core/logger.js +1 -1
  29. package/dist/payments/pay-sh-spec.d.ts.map +1 -1
  30. package/dist/payments/pay-sh-spec.js +4 -2
  31. package/dist/payments/pay-sh-spec.js.map +1 -1
  32. package/dist/payments/pricing.d.ts +3 -1
  33. package/dist/payments/pricing.d.ts.map +1 -1
  34. package/dist/payments/pricing.js +85 -73
  35. package/dist/payments/pricing.js.map +1 -1
  36. package/dist/payments/x402-paid-call.d.ts.map +1 -1
  37. package/dist/payments/x402-paid-call.js +25 -1
  38. package/dist/payments/x402-paid-call.js.map +1 -1
  39. package/dist/prompts/context/sap-agent-context.prompt.js +4 -3
  40. package/dist/prompts/context/sap-agent-context.prompt.js.map +1 -1
  41. package/dist/prompts/context/sap-agent-intent-router.prompt.js +1 -1
  42. package/dist/remote/server.js +1 -1
  43. package/dist/remote/server.js.map +1 -1
  44. package/dist/tools/agent-start-tool.js +6 -6
  45. package/dist/tools/agent-start-tool.js.map +1 -1
  46. package/dist/tools/client-sdk-tools.d.ts.map +1 -1
  47. package/dist/tools/client-sdk-tools.js +5 -4
  48. package/dist/tools/client-sdk-tools.js.map +1 -1
  49. package/dist/tools/estimate-tool-cost.d.ts.map +1 -1
  50. package/dist/tools/estimate-tool-cost.js +10 -3
  51. package/dist/tools/estimate-tool-cost.js.map +1 -1
  52. package/dist/tools/magicblock-tools.js +4 -4
  53. package/dist/tools/magicblock-tools.js.map +1 -1
  54. package/dist/tools/perp-tools.d.ts.map +1 -1
  55. package/dist/tools/perp-tools.js +21 -3
  56. package/dist/tools/perp-tools.js.map +1 -1
  57. package/dist/tools/quick-context-tool.js +6 -5
  58. package/dist/tools/quick-context-tool.js.map +1 -1
  59. package/dist/tools/sap-sdk-tools.d.ts.map +1 -1
  60. package/dist/tools/sap-sdk-tools.js +12 -11
  61. package/dist/tools/sap-sdk-tools.js.map +1 -1
  62. package/dist/tools/x402-paid-call-tool.js +1 -1
  63. package/dist/tools/x402-paid-call-tool.js.map +1 -1
  64. package/docs/06_PAYMENTS_X402_AND_PAYSH.md +25 -9
  65. package/docs/07_ENDPOINTS_AND_CLIENTS.md +1 -1
  66. package/docs/09_TOOLS_SKILLS_AND_AGENT_GUIDE.md +2 -2
  67. package/docs/14_DESKTOP_WIZARD_RELEASE.md +3 -3
  68. package/docs/BRANCH_AND_CI.md +2 -2
  69. package/package.json +1 -1
  70. package/server.json +3 -3
  71. package/skills/README.md +3 -3
  72. package/skills/sap-agent-registry/SKILL.md +2 -2
  73. package/skills/sap-agentkit/SKILL.md +10 -3
  74. package/skills/sap-defi/SKILL.md +18 -10
  75. package/skills/sap-discovery-indexing/SKILL.md +4 -3
  76. package/skills/sap-market-data/SKILL.md +9 -5
  77. package/skills/sap-mcp/SKILL.md +14 -12
  78. package/skills/sap-mcp/TOOL_REFERENCE.md +8 -5
  79. package/skills/sap-operations/SKILL.md +5 -4
  80. package/skills/sap-payments-x402/SKILL.md +19 -16
@@ -36,12 +36,13 @@ Use `sap_discover_agents` for targeted hosted directory reads by `query`,
36
36
  `wallet`, `agentPda`, `protocol`, `capability`, `capabilities`, or
37
37
  `hasX402Endpoint`. Use `sap_list_all_agents` for global current ecosystem
38
38
  requests, keep pages small, and continue with `pagination.nextCursor`.
39
- For first-pass orientation, prefer free reads: `sap_agent_context`,
39
+ For first-pass orientation, prefer free control-plane tools, then low-cost
40
+ micro-read exact/base reads: `sap_agent_context`,
40
41
  `sap_get_agent`, `sap_get_agent_profile`, `sap_get_agent_stats`,
41
42
  `sap_is_agent_active`, `sap_get_global_state`, and `sap_list_agents` with `limit <= 20`,
42
- `view: "compact"`, and `includeProtocolIndexes: false`. Use paid discovery
43
- only when the user needs search, enrichment, full rows, large pages, analytics,
44
- or global enumeration beyond the compact page.
43
+ `view: "compact"`, and `includeProtocolIndexes: false`. Use read-premium
44
+ discovery only when the user needs search, enrichment, full rows, large pages,
45
+ analytics, or global enumeration beyond the compact page.
45
46
 
46
47
  Before registering or updating an agent profile, call free
47
48
  `sap_protocol_invariants` when treasury, registration fee, hosted write route,
@@ -45,18 +45,19 @@ the non-custodial model: OOBE does not hold user keys. Paid and value-moving
45
45
  hosted calls still proceed through x402/pay.sh plus the user's local SAP profile
46
46
  or external signer.
47
47
 
48
- - Free: `tools/list`, `prompts/list`, `resources/list`, `sap_profile_current`,
49
- `sap_agent_start`, `sap_agent_runtime_status`, `sap_agent_context`,
48
+ - Free: MCP handshake, `tools/list`, `prompts/list`, `resources/list`,
49
+ `sap_profile_current`, `sap_agent_start`, `sap_agent_runtime_status`,
50
50
  `sap_agent_next_action`, `sap_estimate_tool_cost`, `sap_pricing_catalog`,
51
- exact SAP agent/profile reads, compact `sap_list_agents` pages with
52
- `limit <= 20`, `sap_get_network_overview`, core balance checks
53
- (`sol_get_balance`, `spl-token_getBalance`, `spl-token_getTokenAccounts`,
54
- `spl-token_getMint`, `spl-token_getSupply`, `magicblock_balance`,
55
- `sap_x402_get_balance`). Enriched holdings such as `jupiter_getHoldings`
56
- are paid read-premium.
51
+ repair/status tools, local payment bridge control, transaction
52
+ preview/finalization helpers, SOL/SPL/x402 balance readiness, single-asset
53
+ price snapshots, and memory/audit helpers.
54
+ - Micro read: exact SAP agent/profile reads, compact `sap_list_agents` pages
55
+ with `limit <= 20`, `sap_get_network_overview`, SNS availability, escrow
56
+ state, and lightweight trader/perps context.
57
57
  - Read premium: `sap_discover_agents`, `sap_list_all_agents`, full/enriched or
58
- large `sap_list_agents` pages, indexed discovery, network stats,
59
- protocol/capability indexes.
58
+ large `sap_list_agents` pages, enriched holdings, indexed discovery, network
59
+ stats, protocol/capability indexes, DAS, token lists, quotes/routes, and
60
+ OHLCV/history.
60
61
  - Builder: batch SNS/domain checks, analytics, transaction builders.
61
62
  - Value action: fixed fee plus configured basis-points fee when public USD
62
63
  notional fields are present.
@@ -98,12 +99,14 @@ For fast x402 execution:
98
99
  the local SAP MCP `sap_payments_call_paid_tool` bridge configured by the SAP
99
100
  MCP wizard instead of falling back to local stdio automatically.
100
101
 
101
- Do not use x402 for core balance reads. `sol_get_balance`,
102
- `spl-token_getBalance`, `spl-token_getTokenAccounts`, `magicblock_balance`,
103
- and `sap_x402_get_balance` are free hosted tools and should be called directly
104
- through the remote SAP MCP connection. Use `jupiter_getHoldings` only when the
105
- user needs enriched paid portfolio context. Always verify USDC and SOL balances
106
- before attempting paid calls an agent without USDC cannot make paid calls.
102
+ Do not use x402 for core balance or single-asset price readiness reads.
103
+ `sol_get_balance`, `spl-token_getBalance`, `spl-token_getTokenAccounts`,
104
+ `magicblock_balance`, `sap_x402_get_balance`, `jupiter_getPrice`,
105
+ `pyth_getPrice`, and `coingecko_getTokenPrice` are free hosted tools and should
106
+ be called directly through the remote SAP MCP connection. Use
107
+ `jupiter_getHoldings` only when the user needs enriched paid portfolio context.
108
+ Always verify USDC and SOL balances before attempting paid calls — an agent
109
+ without USDC cannot make paid calls.
107
110
 
108
111
  Before any paid tool call, use `sap_estimate_tool_cost` with the tool name to
109
112
  get the exact tier, estimated USD cost, and recommended `maxPriceUsd`. This