Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
a0d71be
Bump the npm_and_yarn group across 1 directory with 1 update
dependabot[bot] Mar 30, 2024
ca06c8f
Create SECURITY.md
Dargon789 Mar 30, 2024
3af5a88
Set up CI with Azure Pipelines
Dargon789 Apr 12, 2024
fa3e0a9
Merge branch '0xsequence:master' into master
Dargon789 Apr 22, 2024
f2761ef
Merge branch '0xsequence:master' into master
Dargon789 May 17, 2024
7a74500
Merge branch '0xsequence:master' into master
Dargon789 Aug 1, 2024
709280e
codesandbox dev-project wagmi-dapp
Dargon789 Aug 1, 2024
29c9084
Merge branch 'master' of https://github.com/Dargon789/sequence.js
Dargon789 Aug 7, 2024
1275488
Create CNAME
Dargon789 Aug 7, 2024
9b5807f
Merge branch '0xsequence:master' into master
Dargon789 Aug 7, 2024
c1fedd5
Merge branch '0xsequence:master' into master
Dargon789 Aug 11, 2024
2f0a536
Merge branch '0xsequence:master' into master
Dargon789 Aug 18, 2024
4b1880a
Merge branch '0xsequence:master' into master
Dargon789 Aug 23, 2024
c292dd5
Merge branch '0xsequence:master' into master
Dargon789 Aug 25, 2024
caab6bc
Merge branch 'master' into dependabot/npm_and_yarn/npm_and_yarn-secur…
Dargon789 Oct 1, 2024
bb78b92
Merge pull request #1 from Dargon789/dependabot/npm_and_yarn/npm_and_…
Dargon789 Oct 6, 2024
b12a5dc
Create fortify.yml
Dargon789 Oct 12, 2024
5cbdca4
Update issue templates
Dargon789 Oct 12, 2024
1d8c21c
Update CNAME
Dargon789 Feb 21, 2025
a5b1d91
fix: upgrade @tanstack/react-query from 5.45.1 to 5.64.2
snyk-bot Feb 16, 2025
2ec6a7c
Merge pull request #34 from Dargon789/snyk-upgrade-03178c54d4c5401412…
Dargon789 Jun 12, 2025
3e905fe
Create config.yml (#46)
Dargon789 Jul 13, 2025
2e02a66
Bump next in the npm_and_yarn group across 1 directory
dependabot[bot] Sep 17, 2025
16474c1
Merge branch '0xsequence:master' into master
Dargon789 Sep 19, 2025
039742e
Merge branch '0xsequence:master' into master
Dargon789 Sep 21, 2025
ceb95d4
Update issue templates
Dargon789 Sep 27, 2025
13549e5
Update fortify.yml
Dargon789 Sep 30, 2025
1869b3b
Potential fix for code scanning alert no. 84: Insecure randomness
Dargon789 Oct 7, 2025
d9fee19
Bump the npm_and_yarn group across 3 directories with 1 update
dependabot[bot] Oct 11, 2025
0f335ff
Bump happy-dom in the npm_and_yarn group across 1 directory (#69)
dependabot[bot] Oct 16, 2025
8f663e9
Create SECURITY.md for security policy (#70)
Dargon789 Oct 16, 2025
d332645
Update SECURITY.md
Dargon789 Oct 16, 2025
df86471
0xsequence/master (#79)
Dargon789 Oct 25, 2025
82e7a65
Bump the npm_and_yarn group across 3 directories with 1 update
dependabot[bot] Oct 25, 2025
4dbfca2
Merge branch '0xsequence:v1' into v1
Dargon789 Nov 14, 2025
ffd17e6
Update tests.yml (#82)
Dargon789 Nov 14, 2025
6fde7c5
Update SECURITY.md
Dargon789 Nov 14, 2025
ccb30b3
Update packages/wallet/dapp-client/src/DappTransport.ts
Dargon789 Nov 14, 2025
b50b3e9
Update package.json
Dargon789 Nov 14, 2025
896e285
Update SECURITY.md
Dargon789 Nov 14, 2025
74f382b
Update wagmi-project/package.json
Dargon789 Nov 14, 2025
08616b0
Update wagmi-project/package.json
Dargon789 Nov 14, 2025
69327ef
Update wagmi-project/src/App.tsx
Dargon789 Nov 14, 2025
3487525
Create FUNDING.json (#90)
Dargon789 Nov 17, 2025
4fb3c51
Create config.yml (#91)
Dargon789 Nov 17, 2025
f342784
Update App.tsx (#92)
Dargon789 Nov 17, 2025
2aa79b5
Update relayer.gen.ts and TransactionPrecondition interface
taylanpince Nov 20, 2025
762371f
Support multiple identity signers in sessions configuration
ScreamingHawk Sep 16, 2025
fc32664
Device signers can approve implicit sessions
ScreamingHawk Sep 16, 2025
2107489
Remove invalid test
ScreamingHawk Sep 16, 2025
abf4a18
Fix recursion
ScreamingHawk Sep 17, 2025
d387a8e
Fix comment
ScreamingHawk Sep 17, 2025
d84f173
Improve test stability by reducing race conditions
ScreamingHawk Sep 17, 2025
5323e8d
Do not set passkey signer as identity signer
ScreamingHawk Sep 18, 2025
b2d1897
Use length checks
ScreamingHawk Sep 21, 2025
1b74174
Throw on missing identity signer
ScreamingHawk Sep 21, 2025
1a8f595
Encoding requires identity signer to encode
ScreamingHawk Sep 21, 2025
11e3629
Fix test
ScreamingHawk Sep 21, 2025
86abf3f
Refactor/types namings tsdoc redundant code (#880)
VGabriel45 Sep 23, 2025
d82371d
Fix check for explicit session for the updated type in dapp-client
tolgahan-arikan Sep 23, 2025
b6563d1
Update api.gen.ts and relayer.gen.ts
taylanpince Sep 24, 2025
26816e1
Add missing chainId for dapp client event
tolgahan-arikan Sep 24, 2025
f1a9fb9
Fix initializing new chain session manager on redirect
tolgahan-arikan Sep 24, 2025
282c0b3
Add support for non-viem, custom Sequence chains (#882)
taylanpince Sep 26, 2025
40e483a
Provider sent to prepareBlankEnvelope
ScreamingHawk Sep 30, 2025
a3f8af8
Add session signature decoding
ScreamingHawk Oct 2, 2025
227c4d4
const for node length
ScreamingHawk Oct 6, 2025
8a5f2fa
Clearer blacklist size encoding
ScreamingHawk Oct 6, 2025
0c0bd73
identity signer node length
ScreamingHawk Oct 6, 2025
f7b52db
Add feeTokens endpoint to relayer (#885)
ScreamingHawk Oct 6, 2025
9629d7e
add getFeeTokens to dapp client (#889)
VGabriel45 Oct 8, 2025
8e7b7eb
make getFeeTokens independent of chain session manager and initialize…
VGabriel45 Oct 8, 2025
39715d5
Throw specific error when trying to sign with an expired session (#887)
ScreamingHawk Oct 9, 2025
b5d47f7
Make dapp-client implicit sessions chain agnostic (#893)
tolgahan-arikan Oct 13, 2025
3823f34
Add Monad, remove LAOS and Root Network
taylanpince Oct 16, 2025
e020483
Add support for sessionless dapp connection (#896)
tolgahan-arikan Oct 17, 2025
3bd493b
Refactor relayer package & update dependant packages (#891)
VGabriel45 Oct 17, 2025
885f036
refactor exports for relayer (#900)
VGabriel45 Oct 20, 2025
12368bd
Add Arc Testnet
taylanpince Oct 21, 2025
3993540
Fix changelog config
taylanpince Oct 21, 2025
7d47a51
Sessionless connection upgrade and error handling in DappClient (#902)
tolgahan-arikan Oct 22, 2025
834b8e5
dapp-client: add sessionless snapshot restore flow
tolgahan-arikan Oct 24, 2025
ede175f
Allow to logout a wallet with skipRemoveDevice even if the wallet is …
corbanbrook Oct 27, 2025
69e51ec
Pass request to PromptCodeHandler in guard registerUI (#909)
corbanbrook Oct 30, 2025
875a8c9
guard: allow using recovery code as 2FA token (#910)
patrislav Oct 31, 2025
2011165
Add a way to reset 2fa when using a backup code (#911)
patrislav Nov 4, 2025
6584047
Add rc4 contracts
Agusx1211 Nov 17, 2025
0015053
Set rc4 as default and add it to lists
Agusx1211 Nov 17, 2025
13afc12
Session enhanced replay protection
ScreamingHawk Oct 29, 2025
3b1db90
New sessions replay protection hashes payload
ScreamingHawk Oct 30, 2025
dda7f32
Use the 4337 factory wrapper
ScreamingHawk Nov 17, 2025
d5f9b35
Update keymachine url in dapp-client constants
tolgahan-arikan Nov 19, 2025
be9d3b3
Update keymachine url in Provider constructor
tolgahan-arikan Nov 19, 2025
e91087b
SSR safety (#915)
ScreamingHawk Nov 19, 2025
c6c92dc
Guard dapp-client for SSR (lazy transport, browser checks, gated stor…
tolgahan-arikan Nov 20, 2025
ef07c27
Fix guard topology (#918)
Agusx1211 Nov 20, 2025
4723f58
Switch prod manager settings (#917)
taylanpince Nov 20, 2025
8cd590a
Small JS tweaks (#919)
Agusx1211 Nov 20, 2025
c54088d
Update relayer.gen.ts and TransactionPrecondition interface
taylanpince Nov 20, 2025
686a785
Merge branch 'relayer/upgrade-relayer.gen.ts' of https://github.com/0…
Dargon789 Nov 23, 2025
7a285e9
Update SECURITY.md
Dargon789 Dec 3, 2025
14a9019
Update wagmi-project/package.json
Dargon789 Dec 3, 2025
be69fd2
Update wagmi-project/package.json
Dargon789 Dec 3, 2025
917cd2e
Update config.yml (#102)
Dargon789 Dec 13, 2025
ac87b04
Update config.yml (#103)
Dargon789 Dec 13, 2025
c9cc69f
fix: extras/web/package.json to reduce vulnerabilities (#101)
snyk-io[bot] Dec 13, 2025
8f4a807
fix: extras/docs/package.json to reduce vulnerabilities (#100)
snyk-io[bot] Dec 13, 2025
78a6152
Merge branch 'v1' into fix-merge-branch-0xsequence/master
Dargon789 Dec 13, 2025
aa230b5
Merge branch '0xsequence/master'
Dargon789 Dec 13, 2025
d4028f5
Merge branch 'v1' into 0xsequence/master
Dargon789 Dec 13, 2025
1b479e6
Merge branch '0xsequence/master'
Dargon789 Dec 13, 2025
233891c
fix: package.json to reduce vulnerabilities (#104)
snyk-io[bot] Dec 13, 2025
4e91bed
Merge branch 'fix-merge-branch-0xsequence/master'
Dargon789 Dec 13, 2025
b77f3ec
Merge branch 'master' of https://github.com/Dargon789/sequence.js
Dargon789 Dec 13, 2025
cba7894
Merge remote-tracking branch 'upstream/master'
Dargon789 Dec 13, 2025
fd0fdf9
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/npm_and_…
Dargon789 Dec 13, 2025
cc6b5e9
Revert "Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/…
Dargon789 Dec 13, 2025
aab8538
fix: extras/web/package.json to reduce vulnerabilities (#109)
Dargon789 Dec 13, 2025
64c12ad
fix: extras/docs/package.json to reduce vulnerabilities (#106)
Dargon789 Dec 13, 2025
38d1a6b
Bump next in the npm_and_yarn group across 1 directory (#110)
dependabot[bot] Dec 13, 2025
214211e
Delete .github/workflows/fortify.yml (#111)
Dargon789 Dec 13, 2025
42b5d42
fix: extras/web/package.json to reduce vulnerabilities (#107)
Dargon789 Dec 13, 2025
b3b5a8c
Merge branch 'relayer/upgrade-relayer.gen.ts'
Dargon789 Dec 14, 2025
3d54615
Bump the npm_and_yarn group across 1 directory with 3 updates (#115)
dependabot[bot] Dec 14, 2025
c85cf3e
Merge remote-tracking branch 'upstream/master'
Dargon789 Dec 19, 2025
95cbf49
Update tests.yml (#119)
Dargon789 Dec 19, 2025
5c2bfd5
Update config.yml (#120)
Dargon789 Dec 19, 2025
8532416
Update packages/services/identity-instrument/src/index.ts
Dargon789 Dec 21, 2025
62954a3
feat: upgrade @wagmi/cli from 0.1.15 to 2.8.0 (#126)
Dargon789 Dec 21, 2025
666c383
Potential fix for code scanning alert no. 82: Workflow does not conta…
Dargon789 Dec 22, 2025
4257ad5
Potential fix for code scanning alert no. 62: Information exposure th…
Dargon789 Dec 22, 2025
edc0b09
[Snyk] Upgrade @tanstack/react-query from 5.64.2 to 5.90.11 (#125)
Dargon789 Dec 22, 2025
cbb6c14
feat: upgrade vite from 5.4.21 to 7.2.4 (#124)
Dargon789 Dec 22, 2025
095c4b3
feat: upgrade wagmi from 0.12.19 to 3.0.2 (#123)
Dargon789 Dec 22, 2025
3c73b56
feat: upgrade react-dom from 18.3.1 to 19.2.0 (#122)
Dargon789 Dec 22, 2025
186f843
fix: extras/docs/package.json to reduce vulnerabilities (#136)
Dargon789 Dec 22, 2025
b56f318
[Snyk] Upgrade @types/react from 18.3.27 to 19.2.7 (#127)
Dargon789 Dec 22, 2025
bc418b1
Master ceb95d4 (#129)
Dargon789 Dec 22, 2025
28a268e
Update wagmi-project/src/App.tsx
Dargon789 Dec 23, 2025
51a6432
Update wagmi-project/src/App.tsx
Dargon789 Dec 23, 2025
640be8f
Update wagmi-project/src/App.tsx
Dargon789 Dec 23, 2025
7fe4a92
Update wagmi-project/src/App.tsx
Dargon789 Dec 23, 2025
893eedb
Merge remote-tracking branch 'origin/v1' into v1
Dargon789 Dec 23, 2025
802829c
2.3.7 (#131) (#132)
Dargon789 Dec 23, 2025
5e6dca3
Pin foundry to v1.5.0 instead of nightly (0xsequence#947) (#134) (#135)
Dargon789 Dec 23, 2025
8bad845
feat: upgrade react from 18.3.1 to 19.2.0 (#121)
Dargon789 Dec 24, 2025
1f45249
fix: extras/web/package.json to reduce vulnerabilities (#117)
snyk-io[bot] Dec 24, 2025
e90b2e6
Initial project structure and core packages
Dargon789 Dec 25, 2025
224f761
sequence-core-1.0.0
Dargon789 Dec 25, 2025
9c420a7
Revise README structure and add sponsorship details (#146)
Dargon789 Dec 25, 2025
9779987
Update GitHub Actions workflow for tests (#149)
Dargon789 Dec 26, 2025
7c547fc
Bump the npm_and_yarn group across 4 directories with 7 updates (#144)
dependabot[bot] Dec 26, 2025
8710ac8
0xsequence/sequence.js/master (#166)
Dargon789 Dec 29, 2025
4f55ebb
Merge remote-tracking branch 'upstream/master' into Initial-project-s…
googleworkspace-bot Apr 25, 2026
1a89528
Update packages/wallet/core/eslint.config.js
Dargon789 Apr 27, 2026
f3c862c
Master (#514)
Dargon789 May 2, 2026
f31d04b
3.0.9 (#542)
Dargon789 May 8, 2026
e83113c
Merge branch '0xsequence:master' into master
Dargon789 May 9, 2026
0374b14
0xsequence master (#533)
Dargon789 May 9, 2026
a82e4c9
Bump ws
dependabot[bot] May 19, 2026
8c36d19
Bump turbo in the npm_and_yarn group across 1 directory (#614)
dependabot[bot] May 23, 2026
e08b3a8
Sequence (#616)
Dargon789 May 26, 2026
ac51ae3
Revert "Sequence" (#622)
Dargon789 May 26, 2026
a198db5
Main wagmi (#630)
Dargon789 May 27, 2026
580f4b9
Bump turbo from 2.9.8 to 2.9.14 (0xsequence#1008) (#636)
Dargon789 May 29, 2026
0076ba0
Main (#633)
Dargon789 May 29, 2026
71863fc
Merge branch '0xsequence:master' into master
Dargon789 May 29, 2026
a8abe16
Merge remote-tracking branch 'upstream/master' into signals-implicit-…
googleworkspace-bot Jun 2, 2026
c23d5bf
Bump the npm_and_yarn group across 1 directory with 3 updates (#640)
dependabot[bot] Jun 3, 2026
b4ff445
Signals implicit mode (#643)
Dargon789 Jun 4, 2026
6542ebd
Install Vercel Web Analytics integration
vercel[bot] Jun 5, 2026
7c9d025
Add a new wagmi-based React dApp scaffold and configure multi-platfor…
Dargon789 Jun 10, 2026
d296f76
Add .agents skills and references
googleworkspace-bot Jun 15, 2026
000d870
Update .agents/skills/appkit/references/vue-multichain.md
Dargon789 Jun 15, 2026
54e3538
Add .agents skills and references (#672)
Dargon789 Jun 15, 2026
7280c69
Merge branch 'dargon789' into master
Dargon789 Jun 15, 2026
74a00ee
Merge branch 'master' into signals-implicit-mode
googleworkspace-bot Jun 15, 2026
912f21f
Bump the npm_and_yarn group across 3 directories with 2 updates (#671)
dependabot[bot] Jun 15, 2026
07f6cc6
V1.0 (#665)
Dargon789 Jun 15, 2026
683b739
Merge branch 'signals-implicit-mode' into vercel/install-vercel-web-a…
googleworkspace-bot Jun 15, 2026
4ed6f3e
Vercel/install vercel web analytics i w06iun (#678)
Dargon789 Jun 15, 2026
2959ab2
Merge branch 'master' into signals-implicit-mode
googleworkspace-bot Jun 15, 2026
4f065f1
Merge remote-tracking branch 'upstream/master' into Initial-project-s…
googleworkspace-bot Jun 26, 2026
8be1c10
Merge branch 'signals-implicit-mode' into Initial-project-structure-w…
googleworkspace-bot Jun 26, 2026
f7f3875
Merge branch 'foundry-pin-v1.5.0' of https://github.com/Dargon789/seq…
Dargon789 Jun 28, 2026
9f05505
Main wagmi (#687)
Dargon789 Jun 28, 2026
eaea663
Merge remote-tracking branch 'upstream/master' into vercel/install-ve…
Dargon789 Jun 28, 2026
95122bb
Merge branch 'foundry-pin-v1.5.0' into vercel/install-vercel-web-anal…
Dargon789 Jun 28, 2026
8cfa9ef
Update .agents/skills/appkit/references/vue-multichain.md
Dargon789 Jun 28, 2026
5cbcc11
Vercel/install vercel web analytics i w06iun (#688)
Dargon789 Jun 28, 2026
dab0203
Merge branch 'vercel/install-vercel-web-analytics-i-w06iun' of https:…
googleworkspace-bot Aug 11, 2026
6f8c55e
Merge branch 'vercel/install-vercel-web-analytics-i-w06iun' into foun…
Dargon789 Aug 11, 2026
4ab09c1
Vercel/install vercel web analytics i w06iun (#724)
Dargon789 Aug 11, 2026
b6ab288
Delete .circleci directory
Dargon789 Aug 11, 2026
17211df
Merge branch 'dependabot/npm_and_yarn/lib/signals-implicit-mode/lib/s…
Dargon789 Aug 11, 2026
c9a8760
Merge remote-tracking branch 'upstream/master' into Initial-project-s…
googleworkspace-bot Aug 11, 2026
c9699ae
Merge branch 'foundry-pin-v1.5.0' into Initial-project-structure-wagmi
googleworkspace-bot Aug 11, 2026
5db2086
Delete .circleci directory
Dargon789 Aug 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
69 changes: 69 additions & 0 deletions .agents/.skill-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"version": 3,
"skills": {
"workflow-init": {
"source": "vercel/workflow",
"sourceType": "github",
"sourceUrl": "https://github.com/vercel/workflow.git",
"skillPath": "skills/workflow-init/SKILL.md",
"skillFolderHash": "51e8190b4abf978532dac4e9705225c75652b9b3",
"installedAt": "2026-02-22T13:21:44.400Z",
"updatedAt": "2026-02-24T06:29:38.279Z"
},
"find-skills": {
"source": "vercel-labs/skills",
"sourceType": "github",
"sourceUrl": "https://github.com/vercel-labs/skills.git",
"skillPath": "skills/find-skills/SKILL.md",
"skillFolderHash": "c2f31172b6f256272305a5e6e7228b258446899f",
"installedAt": "2026-02-22T13:21:51.443Z",
"updatedAt": "2026-02-22T13:21:51.443Z"
},
"gemini-api-dev": {
"source": "google-gemini/gemini-skills",
"sourceType": "github",
"sourceUrl": "https://github.com/google-gemini/gemini-skills.git",
"skillPath": "skills/gemini-api-dev/SKILL.md",
"skillFolderHash": "5c9c6bc8cf2ef3e3b11d784a97281d721fdac0ca",
"installedAt": "2026-02-25T04:16:08.363Z",
"updatedAt": "2026-02-25T04:16:08.363Z"
},
"1inch-mcp-server": {
"source": "1inch/1inch-ai",
"sourceType": "github",
"sourceUrl": "https://github.com/1inch/1inch-ai.git",
"skillPath": "skills/1inch-mcp-server/SKILL.md",
"skillFolderHash": "4dc601b333912ea9fbf39ae6a091de5378c38cd2",
"installedAt": "2026-05-13T00:43:47.009Z",
"updatedAt": "2026-05-13T00:43:47.009Z"
},
"appkit": {
"source": "reown-com/skills",
"sourceType": "github",
"sourceUrl": "https://github.com/reown-com/skills.git",
"skillPath": "skills/appkit/SKILL.md",
"skillFolderHash": "69cb3fa2213f1b4f93b9b3e27b4c56052d2825b6",
"installedAt": "2026-05-16T07:40:04.402Z",
"updatedAt": "2026-05-16T07:40:04.402Z"
}
},
"dismissed": {
"findSkillsPrompt": true
},
"lastSelectedAgents": [
"amp",
"antigravity",
"antigravity-cli",
"cline",
"codex",
"cursor",
"deepagents",
"gemini-cli",
"github-copilot",
"kimi-code-cli",
"opencode",
"warp",
"zed",
"claude-code"
]
}
116 changes: 116 additions & 0 deletions .agents/skills/1inch-mcp-server/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
name: 1inch-mcp-server
description: >-
Connect to the 1inch MCP server for documentation search, SDK examples, token swaps,
limit orders, authenticated product API access, and (when registered) org-scoped log lookup. Use when the user asks about 1inch integration,
DeFi swaps, classic or Fusion or cross-chain flows, orderbook, portfolio, gas or spot price APIs, API keys, MCP or IDE setup, or blockchain development with 1inch.
license: MIT
compatibility: Requires an MCP-capable client with HTTP transport (preferred) or stdio plus Node.js 18+ for supergateway bridging.
metadata:
mcp_url_production: https://api.1inch.com/mcp/protocol
documentation: https://business.1inch.com/portal/documentation/ai-integration/ecosystem
---

# 1inch MCP Server

This skill teaches agents how to wire and use the **1inch MCP server** so users get docs, examples, and (with auth) swaps and APIs without re-explaining setup each session.

## When to use this skill

Load this skill whenever the user’s goal depends on the **1inch MCP server** (tools, URL, or auth) or on **1inch Business** product APIs from an AI-assisted workflow.

**Documentation and discovery** (`search`)

- Explain or find behavior in 1inch docs: APIs, slippage, supported chains, rate limits, error codes, SDK usage.
- Compare approaches (e.g. classic vs Fusion vs cross-chain) or look up parameters before coding.

**SDK examples** (`list_examples`, `get_example`)

- Show runnable example code: swap flows, limit orders, chain-specific snippets.
- Pull source from a named example package for copy-paste or review.

**MCP resources** (server `resources` / `read`, if the client lists them)

- Use bundled guides: **swap workflow**, **classic / Fusion / cross-chain** swap guides, **quote** guide, **orderbook workflow**, and the **API index**; plus **SDK examples** as a resource—when the user wants a single structured document instead of or alongside `search`.

**Swaps and routing** (`swap` — requires auth)

- The tool does the heavy work server-side: routing, quotes, and assembling **ready-to-use** data (e.g. unsigned transaction parameters, typed data, or follow-up steps for Fusion/cross-chain). The user or wallet only **signs** and **submits** what the tool returns—no hand-built calldata in the client for normal flows. Supports **classic**, **Fusion (intent)**, and **cross-chain**; `quoteOnly` for inspection without execution.

**Limit orders** (`orderbook` — requires auth)

- Same idea: `build` runs server-side order construction; the response is **EIP-712 (or similar) data ready to sign**—then `create` with the signature, or `list` / `cancel` for lifecycle. The tool carries the orderbook API complexity; the user supplies signing and on-chain follow-through.

**Other product HTTP APIs** (`product_api` — requires auth)

- Call 1inch product endpoints exposed via the gateway: e.g. **portfolio**, **spot price**, **gas price**, **token** metadata, and other [documented](https://business.1inch.com/portal/llms.txt) paths—without re-inventing base URLs and auth for each call.

**Operations and support** (`debug` — requires auth, **optional** tool)

- Look up **organization-scoped** application logs (e.g. by `x-request-id` or time window) when the server exposes this tool and the user is debugging production or API behavior for their org.

**Client setup and configuration**

- Wire **MCP in Cursor, VS Code, Claude Desktop, Claude Code, Codex, Gemini CLI**, or other HTTP/stdio clients; set **`https://api.1inch.com/mcp/protocol`**, headers, or supergateway.
- Use **API keys**, **OAuth**, or understand **which tools are public vs authenticated**.

**General triggers**

- “Connect 1inch to my IDE / agent / MCP” or “how do I authenticate for 1inch MCP.”
- Building or integrating a **dapp, bot, or backend** that uses 1inch Business APIs with AI help.

If the question is only **unrelated off-chain** topics with no 1inch API or MCP angle, you do not need this skill.

## Server URL (production)

`https://api.1inch.com/mcp/protocol` (Streamable HTTP)

## Client setup (summary)

| Client | Transport | Config pattern |
| -------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------- |
| Cursor | HTTP | `.cursor/mcp.json` -> `"url": "https://api.1inch.com/mcp/protocol"` |
| VS Code Copilot | HTTP | `.vscode/mcp.json` -> `type: "http"`, same URL |
| Claude Code / Codex / Gemini CLI | HTTP | CLI `mcp add` with `--transport http` and the URL |
| Claude Desktop | stdio | Launch `npx -y supergateway --streamableHttp <URL> --outputTransport stdio` (see [references/AUTH.md](references/AUTH.md)) |

Prefer **HTTP** when the client supports it; use **supergateway** only for stdio-only clients.

## Tools overview

| Tool | Auth | Purpose |
| --------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `search` | Public | Search 1inch docs and API reference |
| `list_examples` | Public | List SDK example packages |
| `get_example` | Public | Fetch example source files |
| `swap` | Authenticated | Quotes and swap execution flows |
| `orderbook` | Authenticated | Build/create/list/cancel limit orders |
| `product_api` | Authenticated | Call other 1inch product APIs |
| `debug` | Authenticated | Organization-scoped request log lookup (Grafana Loki) — **optional**; only appears in `tools/list` when the deployment registers it. |

Full parameters: [references/TOOLS.md](references/TOOLS.md).

## Authentication

- **API key:** `Authorization: Bearer <key>` on the HTTP transport where the client allows headers.
- **OAuth:** Supported by the server for interactive login when no API key is set.

Details and client-specific snippets: [references/AUTH.md](references/AUTH.md).

## Example prompts (for the user)

- "Search 1inch docs for how to set slippage on Base."
- "Show the TypeScript swap example for Fusion on Ethereum."
- "Quote swapping 100 USDC to ETH on Arbitrum" (requires auth for execution tools).
- "List my open limit orders on Ethereum" / "Build a limit order to sell 1 WETH for USDC" (auth).
- "What's my portfolio value on Arbitrum?" or "Fetch spot price for this token" via `product_api` (auth).
- "Find logs for request id … in the last hour" when `debug` is available (auth).

## Progressive disclosure

- Load [references/TOOLS.md](references/TOOLS.md) when you need exact tool arguments or edge cases.
- Load [references/AUTH.md](references/AUTH.md) when configuring headers, OAuth, or Claude Desktop bridging.

## Legal

Use of the MCP server is subject to 1inch Business Portal terms linked from the [product documentation](https://business.1inch.com/portal/documentation/ai-integration/mcp-server).
48 changes: 48 additions & 0 deletions .agents/skills/1inch-mcp-server/references/AUTH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Authentication -- 1inch MCP

## API key

Obtain a key from the [1inch Business Portal](https://business.1inch.com/portal).

Pass it as:

`Authorization: Bearer <YOUR_API_KEY>`

How you set this depends on the client:

- **Cursor** (`.cursor/mcp.json`): `headers.Authorization`
- **VS Code** (`.vscode/mcp.json`): `headers.Authorization`
- **Claude Code**: `claude mcp add --header "Authorization: Bearer ..."`
- **Claude Desktop** (stdio via supergateway): add `--header` `Authorization: Bearer ...` to the supergateway args **after** `--streamableHttp` and URL (see product docs).

## OAuth

If the user calls an authenticated tool without a key, MCP clients that support OAuth can start a browser login against the 1inch Business Portal. After login, tools work for that session.

Protected tools (including the optional `debug` log lookup) need a **non-anonymous** session: a **Bearer API key** and/or **OAuth** as supported by the gateway, plus (for `debug`) organization context for log scoping. The `debug` tool is only available when the server registers it; see [TOOLS.md](TOOLS.md).

## Stdio bridging (Claude Desktop and similar)

When the client only supports stdio:

```bash
npx -y supergateway \
--streamableHttp https://api.1inch.com/mcp/protocol \
--outputTransport stdio
```

With API key:

```bash
npx -y supergateway \
--streamableHttp https://api.1inch.com/mcp/protocol \
--header "Authorization: Bearer YOUR_API_KEY" \
--outputTransport stdio
```

Use **absolute paths** to `npx` and ensure `PATH` in the MCP server `env` includes your Node binary directory.

## Security

- Never commit API keys to repositories or skills.
- Treat skills that mention keys as **user-supplied configuration**, not embedded secrets.
72 changes: 72 additions & 0 deletions .agents/skills/1inch-mcp-server/references/TOOLS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# 1inch MCP tools -- reference

Production endpoint: `https://api.1inch.com/mcp/protocol`.

Tools expose **safety hints** to clients: read-only tools use `readOnlyHint`; tools that can change on-chain or remote state use `destructiveHint`.

## Public tools

### `search`

Search documentation, API references, and SDK guides.

| Parameter | Type | Required | Notes |
| -------------- | ------- | -------- | -------------------------- |
| `query` | string | Yes | Search string |
| `limit` | number | No | 1-100, page size |
| `page` | number | No | 1-based pagination |
| `include_body` | boolean | No | Include full document body |

### `list_examples`

No parameters. Returns available SDK example identifiers.

### `get_example`

| Parameter | Type | Required | Notes |
| --------- | ------ | -------- | ------------------------------------- |
| `name` | string | Yes | Example id from `list_examples` |
| `file` | string | No | Specific file path inside the example |

## Authenticated tools

Require API key or OAuth session. See [AUTH.md](AUTH.md).

### `swap`

Token swaps (classic, Fusion, cross-chain). Supports quote-only mode (`quoteOnly: true`), execution (returns txs or typed data to sign), and submission (`signedOrder` / `orderHash` for Fusion/cross-chain).

Key parameters: `src`, `dst`, `amount`, `chain`, `from`, optional `quoteOnly`, `preferredType`, `dstChain`, `slippage`, `signedOrder`, `orderHash`.

Prefer the product docs for the full parameter matrix and flows.

### `orderbook`

Limit orders via Orderbook API v4.1. **action** is required: `build` | `create` | `list` | `cancel`.

Typical flow: `build` -> user signs typed data -> `create` with signature.

### `product_api`

Proxy to 1inch product REST APIs.

| Parameter | Type | Required | Notes |
| --------- | ----------------- | -------- | ------------------------------------- |
| `method` | `"GET"` or `"POST"` | No | Default `GET` |
| `path` | string | Yes | API path (e.g. portfolio, price, gas) |
| `query` | object | No | Query string map |
| `body` | object | No | JSON body for POST |

Because the tool can perform writes via POST, it is marked **destructive** at the MCP layer even when `method` is GET.

### `debug`

**Optional** — the server only registers this tool when Grafana Loki integration is enabled. It does not appear in `tools/list` otherwise.

Org-scoped production debugging: look up application logs in Loki. Requires the same **authenticated** access as other protected tools (Bearer and/or OAuth per gateway); organization scope comes from the gateway context.

**Modes:** (1) pass `requestId` (e.g. `x-request-id`) with optional `startTime` / `endTime` (defaults: 24h lookback to `endTime` or now). (2) omit `requestId` and pass `startTime` and `endTime` (RFC3339), with optional `logLevel` (`info` | `warn` | `error`) and `limit` (1–100, default 50).

## Machine-readable API index

For discovering `product_api` paths: `https://business.1inch.com/portal/llms.txt`.
Loading
Loading