@leashmarket/mcp-core 0.1.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.
- package/dist/helpers/base64-json.d.ts +9 -0
- package/dist/helpers/base64-json.d.ts.map +1 -0
- package/dist/helpers/base64-json.js +16 -0
- package/dist/helpers/base64-json.js.map +1 -0
- package/dist/helpers/discover-reputation.d.ts +118 -0
- package/dist/helpers/discover-reputation.d.ts.map +1 -0
- package/dist/helpers/discover-reputation.js +148 -0
- package/dist/helpers/discover-reputation.js.map +1 -0
- package/dist/helpers/index.d.ts +6 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +6 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/probe-payment-link.d.ts +22 -0
- package/dist/helpers/probe-payment-link.d.ts.map +1 -0
- package/dist/helpers/probe-payment-link.js +78 -0
- package/dist/helpers/probe-payment-link.js.map +1 -0
- package/dist/helpers/solana-address.d.ts +8 -0
- package/dist/helpers/solana-address.d.ts.map +1 -0
- package/dist/helpers/solana-address.js +15 -0
- package/dist/helpers/solana-address.js.map +1 -0
- package/dist/helpers/token-catalog.d.ts +35 -0
- package/dist/helpers/token-catalog.d.ts.map +1 -0
- package/dist/helpers/token-catalog.js +83 -0
- package/dist/helpers/token-catalog.js.map +1 -0
- package/dist/host.d.ts +326 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +20 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/tool.d.ts +64 -0
- package/dist/tool.d.ts.map +1 -0
- package/dist/tool.js +40 -0
- package/dist/tool.js.map +1 -0
- package/dist/tools/check-balances.d.ts +2 -0
- package/dist/tools/check-balances.d.ts.map +1 -0
- package/dist/tools/check-balances.js +15 -0
- package/dist/tools/check-balances.js.map +1 -0
- package/dist/tools/create-payment-link.d.ts +2 -0
- package/dist/tools/create-payment-link.d.ts.map +1 -0
- package/dist/tools/create-payment-link.js +28 -0
- package/dist/tools/create-payment-link.js.map +1 -0
- package/dist/tools/daily-transactions.d.ts +26 -0
- package/dist/tools/daily-transactions.d.ts.map +1 -0
- package/dist/tools/daily-transactions.js +47 -0
- package/dist/tools/daily-transactions.js.map +1 -0
- package/dist/tools/discover.d.ts +2 -0
- package/dist/tools/discover.d.ts.map +1 -0
- package/dist/tools/discover.js +40 -0
- package/dist/tools/discover.js.map +1 -0
- package/dist/tools/get-identity.d.ts +2 -0
- package/dist/tools/get-identity.d.ts.map +1 -0
- package/dist/tools/get-identity.js +14 -0
- package/dist/tools/get-identity.js.map +1 -0
- package/dist/tools/get-receipt.d.ts +22 -0
- package/dist/tools/get-receipt.d.ts.map +1 -0
- package/dist/tools/get-receipt.js +41 -0
- package/dist/tools/get-receipt.js.map +1 -0
- package/dist/tools/get-spend-limit.d.ts +14 -0
- package/dist/tools/get-spend-limit.d.ts.map +1 -0
- package/dist/tools/get-spend-limit.js +31 -0
- package/dist/tools/get-spend-limit.js.map +1 -0
- package/dist/tools/index.d.ts +28 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +43 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/pay-payment-link.d.ts +2 -0
- package/dist/tools/pay-payment-link.d.ts.map +1 -0
- package/dist/tools/pay-payment-link.js +18 -0
- package/dist/tools/pay-payment-link.js.map +1 -0
- package/dist/tools/pay-skills-endpoints.d.ts +2 -0
- package/dist/tools/pay-skills-endpoints.d.ts.map +1 -0
- package/dist/tools/pay-skills-endpoints.js +28 -0
- package/dist/tools/pay-skills-endpoints.js.map +1 -0
- package/dist/tools/receipts.d.ts +2 -0
- package/dist/tools/receipts.d.ts.map +1 -0
- package/dist/tools/receipts.js +26 -0
- package/dist/tools/receipts.js.map +1 -0
- package/dist/tools/register-agent.d.ts +2 -0
- package/dist/tools/register-agent.d.ts.map +1 -0
- package/dist/tools/register-agent.js +62 -0
- package/dist/tools/register-agent.js.map +1 -0
- package/dist/tools/reputation.d.ts +2 -0
- package/dist/tools/reputation.d.ts.map +1 -0
- package/dist/tools/reputation.js +24 -0
- package/dist/tools/reputation.js.map +1 -0
- package/dist/tools/set-spend-limit.d.ts +23 -0
- package/dist/tools/set-spend-limit.d.ts.map +1 -0
- package/dist/tools/set-spend-limit.js +52 -0
- package/dist/tools/set-spend-limit.js.map +1 -0
- package/dist/tools/transaction-history.d.ts +23 -0
- package/dist/tools/transaction-history.d.ts.map +1 -0
- package/dist/tools/transaction-history.js +55 -0
- package/dist/tools/transaction-history.js.map +1 -0
- package/dist/tools/withdraw-treasury.d.ts +2 -0
- package/dist/tools/withdraw-treasury.d.ts.map +1 -0
- package/dist/tools/withdraw-treasury.js +29 -0
- package/dist/tools/withdraw-treasury.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `leash_set_spend_limit` — owner-driven update of the SPL `Approve`
|
|
3
|
+
* delegation that lets the executive spend stables out of the agent
|
|
4
|
+
* treasury PDA.
|
|
5
|
+
*
|
|
6
|
+
* Why this exists
|
|
7
|
+
* ---------------
|
|
8
|
+
* On mint, `mintAgentLocally` writes `u64::MAX` so the very first
|
|
9
|
+
* `leash_pay_payment_link` doesn't fail with `no_delegate`. That's the
|
|
10
|
+
* right default for a fresh agent — but operators sometimes want
|
|
11
|
+
* tighter control:
|
|
12
|
+
*
|
|
13
|
+
* - Set a hard cap (e.g. $100 USDC) the agent cannot exceed without
|
|
14
|
+
* an explicit re-approval.
|
|
15
|
+
* - Revoke entirely while paused / under maintenance.
|
|
16
|
+
* - Bump the cap back to unlimited after a revoke.
|
|
17
|
+
*
|
|
18
|
+
* The standalone MCP signs the tx with the local owner keypair; the
|
|
19
|
+
* chat product returns a `manual` artifact and points the user at
|
|
20
|
+
* Profile → Agent (browser-side signing via Privy).
|
|
21
|
+
*/
|
|
22
|
+
import { z } from 'zod';
|
|
23
|
+
import { defineTool } from '../tool.js';
|
|
24
|
+
const inputSchema = z.object({
|
|
25
|
+
symbol: z
|
|
26
|
+
.enum(['USDC', 'USDG', 'USDT'])
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('SPL stable to update the delegation for. Defaults to USDC. The agent treasury can hold each independently — set per-mint as needed.'),
|
|
29
|
+
mode: z
|
|
30
|
+
.enum(['unlimited', 'revoke', 'amount'])
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('`unlimited` (default) — write `u64::MAX`, the protocol default. `revoke` — drop the delegation entirely; the executive can no longer move funds from the treasury until you re-approve. `amount` — set a custom cap, requires the `amount` field.'),
|
|
33
|
+
amount: z
|
|
34
|
+
.number()
|
|
35
|
+
.positive()
|
|
36
|
+
.max(1_000_000_000)
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Required when `mode: "amount"`. Decimal amount in human-readable token units (e.g. `100` = $100 USDC). The host applies the mint\'s `decimals` automatically.'),
|
|
39
|
+
});
|
|
40
|
+
export const setSpendLimitTool = defineTool({
|
|
41
|
+
name: 'leash_set_spend_limit',
|
|
42
|
+
description: [
|
|
43
|
+
"Update the SPL `Approve` delegation that lets the agent's executive keypair spend stables from the treasury PDA.",
|
|
44
|
+
'On mint Leash writes unlimited (`u64::MAX`) so the agent can settle x402 payments without a `no_delegate` failure. Use this tool to tighten, loosen, or revoke that authority later.',
|
|
45
|
+
'Pass `mode: "amount"` + `amount` to set a per-token cap (e.g. $100 USDC). Pass `mode: "revoke"` to zero it out; the agent will not be able to settle outgoing payments until you re-approve. Pass `mode: "unlimited"` (or omit `mode`) to restore the default.',
|
|
46
|
+
'Owner-only — the tx is signed locally with the executive/owner keypair (`mpl-core::Execute(SPL.Approve|Revoke)`). Effects are immediate on confirmation.',
|
|
47
|
+
'Reading: pair this with `leash_get_spend_limit` to inspect the current delegation + treasury balance before / after the change.',
|
|
48
|
+
].join(' '),
|
|
49
|
+
inputSchema,
|
|
50
|
+
handler: async (args, ctx) => ctx.setSpendLimit(args),
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=set-spend-limit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-spend-limit.js","sourceRoot":"","sources":["../../src/tools/set-spend-limit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;SAC9B,QAAQ,EAAE;SACV,QAAQ,CACP,qIAAqI,CACtI;IACH,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACvC,QAAQ,EAAE;SACV,QAAQ,CACP,mPAAmP,CACpP;IACH,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,GAAG,CAAC,aAAa,CAAC;SAClB,QAAQ,EAAE;SACV,QAAQ,CACP,+JAA+J,CAChK;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;IAC1C,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE;QACX,kHAAkH;QAClH,sLAAsL;QACtL,gQAAgQ;QAChQ,0JAA0J;QAC1J,iIAAiI;KAClI,CAAC,IAAI,CAAC,GAAG,CAAC;IACX,WAAW;IACX,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC;CACtD,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `leash_transaction_history` — list every receipt the active agent
|
|
3
|
+
* has earned or spent within a configurable rolling window.
|
|
4
|
+
*
|
|
5
|
+
* This complements `leash_receipts` (which is paginated + open-ended)
|
|
6
|
+
* by treating the question as "what happened in the last N days?".
|
|
7
|
+
* The host paginates the underlying `/v1/receipts/{agent}` feed,
|
|
8
|
+
* trims to the window client-side (newest-first → break on the first
|
|
9
|
+
* row older than `now - days`), and returns:
|
|
10
|
+
*
|
|
11
|
+
* - The receipts themselves (canonical fields the LLM can quote
|
|
12
|
+
* verbatim: hash, direction, decision, amount, currency, tx_sig,
|
|
13
|
+
* timestamp, request URL).
|
|
14
|
+
* - Running totals for the window: `total_sent_usd`,
|
|
15
|
+
* `total_received_usd`, `net_usd`, plus per-direction counts.
|
|
16
|
+
*
|
|
17
|
+
* All Leash-supported stables (USDC/USDG/USDT) are summed as USD 1:1
|
|
18
|
+
* \u2014 every receipt amount is already a decimal in the token's display
|
|
19
|
+
* units. Receipts in non-stable currencies (rare, future) get counted
|
|
20
|
+
* but excluded from the USD totals.
|
|
21
|
+
*/
|
|
22
|
+
export declare const transactionHistoryTool: import("../tool.js").LeashTool;
|
|
23
|
+
//# sourceMappingURL=transaction-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-history.d.ts","sourceRoot":"","sources":["../../src/tools/transaction-history.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAiCH,eAAO,MAAM,sBAAsB,gCAUjC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `leash_transaction_history` — list every receipt the active agent
|
|
3
|
+
* has earned or spent within a configurable rolling window.
|
|
4
|
+
*
|
|
5
|
+
* This complements `leash_receipts` (which is paginated + open-ended)
|
|
6
|
+
* by treating the question as "what happened in the last N days?".
|
|
7
|
+
* The host paginates the underlying `/v1/receipts/{agent}` feed,
|
|
8
|
+
* trims to the window client-side (newest-first → break on the first
|
|
9
|
+
* row older than `now - days`), and returns:
|
|
10
|
+
*
|
|
11
|
+
* - The receipts themselves (canonical fields the LLM can quote
|
|
12
|
+
* verbatim: hash, direction, decision, amount, currency, tx_sig,
|
|
13
|
+
* timestamp, request URL).
|
|
14
|
+
* - Running totals for the window: `total_sent_usd`,
|
|
15
|
+
* `total_received_usd`, `net_usd`, plus per-direction counts.
|
|
16
|
+
*
|
|
17
|
+
* All Leash-supported stables (USDC/USDG/USDT) are summed as USD 1:1
|
|
18
|
+
* \u2014 every receipt amount is already a decimal in the token's display
|
|
19
|
+
* units. Receipts in non-stable currencies (rare, future) get counted
|
|
20
|
+
* but excluded from the USD totals.
|
|
21
|
+
*/
|
|
22
|
+
import { z } from 'zod';
|
|
23
|
+
import { defineTool } from '../tool.js';
|
|
24
|
+
const inputSchema = z.object({
|
|
25
|
+
days: z
|
|
26
|
+
.number()
|
|
27
|
+
.int()
|
|
28
|
+
.min(1)
|
|
29
|
+
.max(90)
|
|
30
|
+
.optional()
|
|
31
|
+
.describe('Window size in days, anchored to "now". Defaults to 7 (a one-week rolling view). Capped at 90 server-side to keep responses bounded; for longer ranges paginate `leash_receipts` directly.'),
|
|
32
|
+
direction: z
|
|
33
|
+
.enum(['both', 'outgoing', 'incoming'])
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('Filter the feed: `outgoing` = the agent paid (spend receipts), `incoming` = the agent was paid (earn receipts). Defaults to `both`.'),
|
|
36
|
+
limit: z
|
|
37
|
+
.number()
|
|
38
|
+
.int()
|
|
39
|
+
.positive()
|
|
40
|
+
.max(1000)
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('Hard cap on the total receipts returned across pagination. Defaults to 200; the underlying feed page size stays at 200 so this only matters when the day window contains more.'),
|
|
43
|
+
});
|
|
44
|
+
export const transactionHistoryTool = defineTool({
|
|
45
|
+
name: 'leash_transaction_history',
|
|
46
|
+
description: [
|
|
47
|
+
"List the active agent's earn + spend receipts within a rolling day-window (last 7 days by default).",
|
|
48
|
+
'Returns the receipts (newest-first) plus aggregate totals: total_sent_usd, total_received_usd, net_usd, and per-direction counts. Stables (USDC/USDG/USDT) are summed as USD 1:1.',
|
|
49
|
+
'Use this when the user asks "what did my agent do this week?", "show me last 30 days of payments", or wants a quick P&L summary. For "today only" pass `days: 1`. For deep paging (>90d) fall back to `leash_receipts`.',
|
|
50
|
+
'On `status: "ok"`, the `range` block names the window (`from`, `to`, `days`) and `count` is the number of receipts returned.',
|
|
51
|
+
].join(' '),
|
|
52
|
+
inputSchema,
|
|
53
|
+
handler: async (args, ctx) => ctx.transactionHistory(args),
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=transaction-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-history.js","sourceRoot":"","sources":["../../src/tools/transaction-history.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,EAAE;SACV,QAAQ,CACP,4LAA4L,CAC7L;IACH,SAAS,EAAE,CAAC;SACT,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;SACtC,QAAQ,EAAE;SACV,QAAQ,CACP,qIAAqI,CACtI;IACH,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,GAAG,CAAC,IAAI,CAAC;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,gLAAgL,CACjL;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAAC;IAC/C,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE;QACX,qGAAqG;QACrG,mLAAmL;QACnL,yNAAyN;QACzN,8HAA8H;KAC/H,CAAC,IAAI,CAAC,GAAG,CAAC;IACX,WAAW;IACX,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw-treasury.d.ts","sourceRoot":"","sources":["../../src/tools/withdraw-treasury.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,oBAAoB,gCAW/B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineTool } from '../tool.js';
|
|
3
|
+
const inputSchema = z.object({
|
|
4
|
+
token: z
|
|
5
|
+
.enum(['SOL', 'USDC', 'USDG', 'USDT'])
|
|
6
|
+
.describe('Token to withdraw. SOL for native lamports; otherwise an SPL stable.'),
|
|
7
|
+
amount: z
|
|
8
|
+
.number()
|
|
9
|
+
.positive()
|
|
10
|
+
.describe('Amount in whole units (e.g. 100 for 100 USDC, 0.5 for 0.5 SOL). Positive only.'),
|
|
11
|
+
destination: z
|
|
12
|
+
.string()
|
|
13
|
+
.min(32)
|
|
14
|
+
.max(44)
|
|
15
|
+
.describe("Recipient Solana wallet address (base58). Must NOT be the treasury itself; it's the destination wallet, not its ATA."),
|
|
16
|
+
});
|
|
17
|
+
export const withdrawTreasuryTool = defineTool({
|
|
18
|
+
name: 'leash_withdraw_treasury',
|
|
19
|
+
description: [
|
|
20
|
+
'Withdraw SOL or an SPL stable (USDC/USDG/USDT) from the agent treasury to any Solana wallet.',
|
|
21
|
+
'Behaviour depends on the host runtime:',
|
|
22
|
+
' - In the chat product the call DOES NOT settle on its own — only the asset owner (the user’s Privy wallet) can sign the on-chain `mpl-core::Execute`. It returns a `withdraw_request` artifact the chat UI renders as a Withdraw card; reply with one short sentence asking the user to approve.',
|
|
23
|
+
' - In the standalone MCP / CLI runtime the call SIGNS and SETTLES the withdrawal using the local executive keypair and returns a `withdraw_receipt` blob with the tx signature.',
|
|
24
|
+
'On `status: "error"`, surface the `message` verbatim. Never claim a withdrawal completed and never invent a tx hash.',
|
|
25
|
+
].join(' '),
|
|
26
|
+
inputSchema,
|
|
27
|
+
handler: async (args, ctx) => ctx.withdraw(args),
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=withdraw-treasury.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw-treasury.js","sourceRoot":"","sources":["../../src/tools/withdraw-treasury.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,KAAK,EAAE,CAAC;SACL,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;SACrC,QAAQ,CAAC,sEAAsE,CAAC;IACnF,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gFAAgF,CAAC;IAC7F,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,sHAAsH,CACvH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE;QACX,8FAA8F;QAC9F,wCAAwC;QACxC,oSAAoS;QACpS,kLAAkL;QAClL,sHAAsH;KACvH,CAAC,IAAI,CAAC,GAAG,CAAC;IACX,WAAW;IACX,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;CACjD,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"publishConfig": {
|
|
3
|
+
"access": "public"
|
|
4
|
+
},
|
|
5
|
+
"name": "@leashmarket/mcp-core",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"private": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./helpers": {
|
|
17
|
+
"types": "./dist/helpers/index.d.ts",
|
|
18
|
+
"import": "./dist/helpers/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./tools": {
|
|
21
|
+
"types": "./dist/tools/index.d.ts",
|
|
22
|
+
"import": "./dist/tools/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"zod": "^3.24.1"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"typescript": "^5.7.2",
|
|
33
|
+
"vitest": "^2.1.8"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc -p tsconfig.build.json",
|
|
37
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
38
|
+
"lint": "echo lint:mcp-core",
|
|
39
|
+
"test": "vitest run"
|
|
40
|
+
}
|
|
41
|
+
}
|