@oobe-protocol-labs/sap-mcp-server 0.9.35 → 0.9.37
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/.env.example +13 -9
- package/CHANGELOG.md +40 -0
- package/README.md +8 -7
- package/USER_DOCS/01_HOSTED_REMOTE_MCP.md +1 -1
- package/USER_DOCS/03_PAYMENTS_X402_PAYSH.md +1 -1
- package/USER_DOCS/04_CLIENT_CONFIGS.md +3 -3
- package/USER_DOCS/06_DESKTOP_GUI_WIZARD.md +5 -5
- package/config.example.json +5 -4
- package/dist/config/env.d.ts +4 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +14 -8
- package/dist/config/env.js.map +1 -1
- package/dist/config/mcp-client-injection.d.ts.map +1 -1
- package/dist/config/mcp-client-injection.js +31 -2
- package/dist/config/mcp-client-injection.js.map +1 -1
- package/dist/config/profiles.d.ts +5 -0
- package/dist/config/profiles.d.ts.map +1 -1
- package/dist/config/profiles.js +37 -9
- package/dist/config/profiles.js.map +1 -1
- package/dist/config/wizard.d.ts.map +1 -1
- package/dist/config/wizard.js +41 -0
- package/dist/config/wizard.js.map +1 -1
- package/dist/config-cli.d.ts.map +1 -1
- package/dist/config-cli.js +17 -1
- package/dist/config-cli.js.map +1 -1
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/logger.js +1 -1
- package/dist/payments/monetization-gate.d.ts.map +1 -1
- package/dist/payments/monetization-gate.js +4 -0
- package/dist/payments/monetization-gate.js.map +1 -1
- package/dist/payments/pay-sh-spec.d.ts.map +1 -1
- package/dist/payments/pay-sh-spec.js +4 -2
- package/dist/payments/pay-sh-spec.js.map +1 -1
- package/dist/payments/pricing.d.ts +3 -1
- package/dist/payments/pricing.d.ts.map +1 -1
- package/dist/payments/pricing.js +85 -73
- package/dist/payments/pricing.js.map +1 -1
- package/dist/payments/x402-paid-call.d.ts.map +1 -1
- package/dist/payments/x402-paid-call.js +25 -1
- package/dist/payments/x402-paid-call.js.map +1 -1
- package/dist/prompts/context/sap-agent-context.prompt.js +4 -3
- package/dist/prompts/context/sap-agent-context.prompt.js.map +1 -1
- package/dist/prompts/context/sap-agent-intent-router.prompt.js +1 -1
- package/dist/remote/server.js +1 -1
- package/dist/remote/server.js.map +1 -1
- package/dist/tools/agent-start-tool.js +6 -6
- package/dist/tools/agent-start-tool.js.map +1 -1
- package/dist/tools/client-sdk-tools.d.ts +7 -0
- package/dist/tools/client-sdk-tools.d.ts.map +1 -1
- package/dist/tools/client-sdk-tools.js +37 -6
- package/dist/tools/client-sdk-tools.js.map +1 -1
- package/dist/tools/estimate-tool-cost.d.ts.map +1 -1
- package/dist/tools/estimate-tool-cost.js +16 -54
- package/dist/tools/estimate-tool-cost.js.map +1 -1
- package/dist/tools/magicblock-tools.js +4 -4
- package/dist/tools/magicblock-tools.js.map +1 -1
- package/dist/tools/perp-tools.d.ts.map +1 -1
- package/dist/tools/perp-tools.js +21 -3
- package/dist/tools/perp-tools.js.map +1 -1
- package/dist/tools/quick-context-tool.js +6 -5
- package/dist/tools/quick-context-tool.js.map +1 -1
- package/dist/tools/sap-sdk-tools.d.ts.map +1 -1
- package/dist/tools/sap-sdk-tools.js +12 -11
- package/dist/tools/sap-sdk-tools.js.map +1 -1
- package/dist/tools/x402-paid-call-tool.js +1 -1
- package/dist/tools/x402-paid-call-tool.js.map +1 -1
- package/docs/06_PAYMENTS_X402_AND_PAYSH.md +25 -9
- package/docs/07_ENDPOINTS_AND_CLIENTS.md +1 -1
- package/docs/09_TOOLS_SKILLS_AND_AGENT_GUIDE.md +2 -2
- package/docs/14_DESKTOP_WIZARD_RELEASE.md +3 -3
- package/docs/BRANCH_AND_CI.md +2 -2
- package/package.json +1 -1
- package/server.json +3 -3
- package/skills/README.md +3 -3
- package/skills/sap-agent-registry/SKILL.md +2 -2
- package/skills/sap-agentkit/SKILL.md +10 -3
- package/skills/sap-defi/SKILL.md +18 -10
- package/skills/sap-discovery-indexing/SKILL.md +4 -3
- package/skills/sap-market-data/SKILL.md +9 -5
- package/skills/sap-mcp/SKILL.md +14 -12
- package/skills/sap-mcp/TOOL_REFERENCE.md +8 -5
- package/skills/sap-operations/SKILL.md +5 -4
- 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
|
|
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
|
|
43
|
-
only when the user needs search, enrichment, full rows, large pages,
|
|
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`,
|
|
49
|
-
`
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
`
|
|
56
|
-
|
|
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
|
|
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.
|
|
102
|
-
`spl-token_getBalance`, `spl-token_getTokenAccounts`,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|