hashlock-mcp-server 1.0.1 โ†’ 1.0.3

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/README.md CHANGED
@@ -1,153 +1,60 @@
1
- # MCP Registry
1
+ # Hashlock MCP Server
2
2
 
3
- The MCP registry provides MCP clients with a list of MCP servers, like an app store for MCP servers.
3
+ MCP server for the [Hashlock](https://hashlock.tech) intent protocol. Enables AI agents to create, commit, validate, explain, and parse trading intents with attestation-based counterparty verification.
4
4
 
5
- [**๐Ÿ“ค Publish my MCP server**](docs/modelcontextprotocol-io/quickstart.mdx) | [**โšก๏ธ Live API docs**](https://registry.modelcontextprotocol.io/docs) | [**๐Ÿ‘€ Ecosystem vision**](docs/design/ecosystem-vision.md) | ๐Ÿ“– **[Full documentation](./docs)**
5
+ ## Tools
6
6
 
7
- ## Development Status
7
+ | Tool | Description |
8
+ |------|-------------|
9
+ | `create_intent` | Create a HashLockIntent with full parameter control |
10
+ | `commit_intent` | Create an off-chain commitment with selective disclosure |
11
+ | `explain_intent` | Generate human-readable explanation of an intent |
12
+ | `parse_natural_language` | Parse natural language into a structured intent (EN & TR) |
13
+ | `validate_intent` | Validate an intent against schema and business rules |
8
14
 
9
- **2025-10-24 update**: The Registry API has entered an **API freeze (v0.1)** ๐ŸŽ‰. For the next month or more, the API will remain stable with no breaking changes, allowing integrators to confidently implement support. This freeze applies to v0.1 while development continues on v0. We'll use this period to validate the API in real-world integrations and gather feedback to shape v1 for general availability. Thank you to everyone for your contributions and patienceโ€”your involvement has been key to getting us here!
15
+ ## Setup
10
16
 
11
- **2025-09-08 update**: The registry has launched in preview ๐ŸŽ‰ ([announcement blog post](https://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/)). While the system is now more stable, this is still a preview release and breaking changes or data resets may occur. A general availability (GA) release will follow later. We'd love your feedback in [GitHub discussions](https://github.com/modelcontextprotocol/registry/discussions/new?category=ideas) or in the [#registry-dev Discord](https://discord.com/channels/1358869848138059966/1369487942862504016) ([joining details here](https://modelcontextprotocol.io/community/communication)).
12
-
13
- Current key maintainers:
14
- - **Adam Jones** (Anthropic) [@domdomegg](https://github.com/domdomegg)
15
- - **Tadas Antanavicius** (PulseMCP) [@tadasant](https://github.com/tadasant)
16
- - **Toby Padilla** (GitHub) [@toby](https://github.com/toby)
17
- - **Radoslav (Rado) Dimitrov** (Stacklok) [@rdimitrov](https://github.com/rdimitrov)
18
-
19
- ## Contributing
20
-
21
- We use multiple channels for collaboration - see [modelcontextprotocol.io/community/communication](https://modelcontextprotocol.io/community/communication).
22
-
23
- Often (but not always) ideas flow through this pipeline:
24
-
25
- - **[Discord](https://modelcontextprotocol.io/community/communication)** - Real-time community discussions
26
- - **[Discussions](https://github.com/modelcontextprotocol/registry/discussions)** - Propose and discuss product/technical requirements
27
- - **[Issues](https://github.com/modelcontextprotocol/registry/issues)** - Track well-scoped technical work
28
- - **[Pull Requests](https://github.com/modelcontextprotocol/registry/pulls)** - Contribute work towards issues
29
-
30
- ### Quick start:
31
-
32
- #### Pre-requisites
33
-
34
- - **Docker**
35
- - **Go 1.24.x**
36
- - **ko** - Container image builder for Go ([installation instructions](https://ko.build/install/))
37
- - **golangci-lint v2.4.0**
38
-
39
- #### Running the server
40
-
41
- ```bash
42
- # Start full development environment
43
- make dev-compose
44
- ```
45
-
46
- This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing.
47
-
48
- **Note:** The registry uses [ko](https://ko.build) to build container images. The `make dev-compose` command automatically builds the registry image with ko and loads it into your local Docker daemon before starting the services.
49
-
50
- By default, the registry seeds from the production API with a filtered subset of servers (to keep startup fast). This ensures your local environment mirrors production behavior and all seed data passes validation. For offline development you can seed from a file without validation with `MCP_REGISTRY_SEED_FROM=data/seed.json MCP_REGISTRY_ENABLE_REGISTRY_VALIDATION=false make dev-compose`.
51
-
52
- The setup can be configured with environment variables in [docker-compose.yml](./docker-compose.yml) - see [.env.example](./.env.example) for a reference.
53
-
54
- <details>
55
- <summary>Alternative: Running a pre-built Docker image</summary>
56
-
57
- Pre-built Docker images are automatically published to GitHub Container Registry:
17
+ ### Environment Variables
58
18
 
59
19
  ```bash
60
- # Run latest stable release
61
- docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:latest
62
-
63
- # Run latest from main branch (continuous deployment)
64
- docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main
65
-
66
- # Run specific release version
67
- docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:v1.0.0
68
-
69
- # Run development build from main branch
70
- docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main-20250906-abc123d
20
+ HASHLOCK_API_URL=https://api.hashlock.tech
21
+ HASHLOCK_API_KEY=your-api-key
71
22
  ```
72
23
 
73
- **Available tags:**
74
- - **Releases**: `latest`, `v1.0.0`, `v1.1.0`, etc.
75
- - **Continuous**: `main` (latest main branch build)
76
- - **Development**: `main-<date>-<sha>` (specific commit builds)
77
-
78
- </details>
79
-
80
- #### Publishing a server
81
-
82
- To publish a server, we've built a simple CLI. You can use it with:
83
-
84
- ```bash
85
- # Build the latest CLI
86
- make publisher
87
-
88
- # Use it!
89
- ./bin/mcp-publisher --help
24
+ ### Claude Desktop / Claude Code
25
+
26
+ ```json
27
+ {
28
+ "mcpServers": {
29
+ "hashlock": {
30
+ "command": "npx",
31
+ "args": ["-y", "hashlock-mcp-server"],
32
+ "env": {
33
+ "HASHLOCK_API_URL": "https://api.hashlock.tech",
34
+ "HASHLOCK_API_KEY": "your-api-key"
35
+ }
36
+ }
37
+ }
38
+ }
90
39
  ```
91
40
 
92
- See [the publisher guide](./docs/modelcontextprotocol-io/quickstart.mdx) for more details.
93
-
94
- #### Other commands
41
+ ### From Source
95
42
 
96
43
  ```bash
97
- # Run lint, unit tests and integration tests
98
- make check
44
+ git clone https://github.com/Hashlock-Tech/hashlock-mcp-server.git
45
+ cd hashlock-mcp-server
46
+ npm install
47
+ npm run build
99
48
  ```
100
49
 
101
- There are also a few more helpful commands for development. Run `make help` to learn more, or look in [Makefile](./Makefile).
102
-
103
- <!--
104
- For Claude and other AI tools: Always prefer make targets over custom commands where possible.
105
- -->
106
-
107
- ## Architecture
108
-
109
- ### Project Structure
110
-
111
- ```
112
- โ”œโ”€โ”€ cmd/ # Application entry points
113
- โ”‚ โ””โ”€โ”€ publisher/ # Server publishing tool
114
- โ”œโ”€โ”€ data/ # Seed data
115
- โ”œโ”€โ”€ deploy/ # Deployment configuration (Pulumi)
116
- โ”œโ”€โ”€ docs/ # Documentation
117
- โ”œโ”€โ”€ internal/ # Private application code
118
- โ”‚ โ”œโ”€โ”€ api/ # HTTP handlers and routing
119
- โ”‚ โ”œโ”€โ”€ auth/ # Authentication (GitHub OAuth, JWT, namespace blocking)
120
- โ”‚ โ”œโ”€โ”€ config/ # Configuration management
121
- โ”‚ โ”œโ”€โ”€ database/ # Data persistence (PostgreSQL)
122
- โ”‚ โ”œโ”€โ”€ service/ # Business logic
123
- โ”‚ โ”œโ”€โ”€ telemetry/ # Metrics and monitoring
124
- โ”‚ โ””โ”€โ”€ validators/ # Input validation
125
- โ”œโ”€โ”€ pkg/ # Public packages
126
- โ”‚ โ”œโ”€โ”€ api/ # API types and structures
127
- โ”‚ โ”‚ โ””โ”€โ”€ v0/ # Version 0 API types
128
- โ”‚ โ””โ”€โ”€ model/ # Data models for server.json
129
- โ”œโ”€โ”€ scripts/ # Development and testing scripts
130
- โ”œโ”€โ”€ tests/ # Integration tests
131
- โ””โ”€โ”€ tools/ # CLI tools and utilities
132
- โ””โ”€โ”€ validate-*.sh # Schema validation tools
133
- ```
134
-
135
- ### Authentication
136
-
137
- Publishing supports multiple authentication methods:
138
- - **GitHub OAuth** - For publishing by logging into GitHub
139
- - **GitHub OIDC** - For publishing from GitHub Actions
140
- - **DNS verification** - For proving ownership of a domain and its subdomains
141
- - **HTTP verification** - For proving ownership of a domain
50
+ ## Key Concepts
142
51
 
143
- The registry validates namespace ownership when publishing. E.g. to publish...:
144
- - `io.github.domdomegg/my-cool-mcp` you must login to GitHub as `domdomegg`, or be in a GitHub Action on domdomegg's repos
145
- - `me.adamjones/my-cool-mcp` you must prove ownership of `adamjones.me` via DNS or HTTP challenge
52
+ **Attestation Tiers**: NONE > BASIC > STANDARD > ENHANCED > INSTITUTIONAL
146
53
 
147
- ## Community Projects
54
+ **Sealed Bids**: Use `commit_intent` with `hideAmounts: true`, `hideIdentity: true`, `revealOnMatch: false`
148
55
 
149
- Check out [community projects](docs/community-projects.md) to explore notable registry-related work created by the community.
56
+ **Settlement Types**: bilateral (direct), ring (multi-party), batch (aggregated)
150
57
 
151
- ## More documentation
58
+ ## License
152
59
 
153
- See the [documentation](./docs) for more details if your question has not been answered here!
60
+ MIT
package/dist/index.js CHANGED
@@ -33,7 +33,11 @@ class HashlockClient {
33
33
  return (await res.json());
34
34
  }
35
35
  }
36
- const server = new McpServer({ name: "hashlock", version: "1.0.0" });
36
+ const server = new McpServer({
37
+ name: "hashlock",
38
+ version: "1.0.3",
39
+ description: "Swap, buy, sell, or exchange any crypto asset โ€” tokens, stablecoins, RWAs, NFTs โ€” peer-to-peer on any EVM blockchain. Agent-to-agent OTC settlement with sealed bids, zero slippage, and verified counterparties."
40
+ });
37
41
  function getClient() {
38
42
  const url = process.env.HASHLOCK_API_URL;
39
43
  const key = process.env.HASHLOCK_API_KEY;
@@ -42,41 +46,41 @@ function getClient() {
42
46
  }
43
47
  return new HashlockClient(url, key);
44
48
  }
45
- server.tool("create_intent", "Create a HashLockIntent via the fluent builder. Returns the validated intent JSON.", {
46
- giveAsset: z.enum(ASSETS).describe("Asset type to give"),
47
- giveAmount: z.string().describe("Amount in smallest unit (wei for ETH)"),
48
- giveChain: z.number().describe("Source chain ID"),
49
- giveToken: z.string().optional().describe("Token contract address (required for ERC20/ERC721)"),
50
- receiveAsset: z.enum(ASSETS).describe("Asset type to receive"),
49
+ server.tool("create_intent", "Create a trading intent to swap, buy, sell, exchange, or convert any asset โ€” crypto tokens (ETH, USDC, USDT, DAI, any ERC20), real-world assets (RWA), stablecoins, or NFTs โ€” across any EVM blockchain (Ethereum, Polygon, Arbitrum, Base). Specify what you give, what you want, privacy level, KYC tier, and settlement terms. Works for human traders, autonomous AI agents, and institutional counterparties. Use this whenever a user wants to trade, swap, buy, sell, convert, or exchange any digital asset with a verified counterparty.", {
50
+ giveAsset: z.enum(ASSETS).describe("Asset type you are offering (ETH, ERC20 token, or ERC721 NFT)"),
51
+ giveAmount: z.string().describe("Amount to give in smallest unit (wei for ETH, base units for tokens)"),
52
+ giveChain: z.number().describe("Chain ID where the asset lives (1=Ethereum, 137=Polygon, 42161=Arbitrum, etc.)"),
53
+ giveToken: z.string().optional().describe("Token contract address โ€” required for ERC20 and ERC721"),
54
+ receiveAsset: z.enum(ASSETS).describe("Asset type you want in return"),
51
55
  receiveMinAmount: z.string().describe("Minimum acceptable amount in smallest unit"),
52
- receiveChain: z.number().describe("Destination chain ID"),
53
- receiveToken: z.string().optional().describe("Token contract address"),
54
- receiveMaxAmount: z.string().optional().describe("Maximum amount (optional upper bound)"),
55
- deadlineSeconds: z.number().describe("Deadline in seconds from now"),
56
- maxSlippage: z.number().min(0).max(1).optional().describe("Max slippage (0.005 = 0.5%)"),
57
- partialFill: z.boolean().optional().describe("Allow partial fills"),
58
- atomicity: z.enum(ATOMICITY_TYPES).default("full").describe("Atomicity guarantee"),
59
- settlementType: z.enum(SETTLEMENT_TYPES).default("bilateral").describe("Settlement mechanism"),
60
- ringParties: z.array(z.string()).optional().describe("Ring settlement participant addresses"),
61
- solverType: z.enum(SOLVER_TYPES).default("open").describe("Solver access type"),
62
- solverStrategy: z.enum(SOLVER_STRATEGIES).default("best_price").describe("Execution strategy"),
56
+ receiveChain: z.number().describe("Chain ID where you want to receive"),
57
+ receiveToken: z.string().optional().describe("Token contract address for the asset you want"),
58
+ receiveMaxAmount: z.string().optional().describe("Maximum amount โ€” set this for range orders"),
59
+ deadlineSeconds: z.number().describe("How many seconds this intent stays valid"),
60
+ maxSlippage: z.number().min(0).max(1).optional().describe("Max price slippage tolerance (0.005 = 0.5%)"),
61
+ partialFill: z.boolean().optional().describe("Allow partial fills if full amount unavailable"),
62
+ atomicity: z.enum(ATOMICITY_TYPES).default("full").describe("full = all-or-nothing, partial = allow incremental settlement"),
63
+ settlementType: z.enum(SETTLEMENT_TYPES).default("bilateral").describe("bilateral = direct swap, ring = multi-party, batch = aggregated"),
64
+ ringParties: z.array(z.string()).optional().describe("Addresses of ring settlement participants"),
65
+ solverType: z.enum(SOLVER_TYPES).default("open").describe("Who can solve: open = anyone, preferred = listed solvers first, exclusive = only listed"),
66
+ solverStrategy: z.enum(SOLVER_STRATEGIES).default("best_price").describe("Optimization goal for solver execution"),
63
67
  solverPreferred: z.array(z.string()).optional().describe("Preferred solver addresses"),
64
- solverMaxFee: z.string().optional().describe("Max fee payable to solver"),
65
- triggerType: z.enum(TRIGGER_TYPES).optional().describe("Trigger type"),
66
- triggerDescription: z.string().optional().describe("Human-readable trigger condition"),
67
- triggerAgentId: z.string().optional().describe("Producing agent ID"),
68
- triggerConfidence: z.number().min(0).max(1).optional().describe("Agent confidence score"),
69
- attestationTier: z.enum(TIERS).optional().describe("Signer's attested KYC tier"),
70
- attestationPrincipalId: z.string().optional().describe("Principal ID hash"),
71
- attestationPrincipalType: z.enum(PRINCIPAL_TYPES).optional().describe("Principal type"),
72
- attestationBlindId: z.string().optional().describe("Rotating pseudonym the counterparty sees"),
73
- attestationIssuedAt: z.number().optional().describe("Attestation issuedAt (unix seconds)"),
74
- attestationExpiresAt: z.number().optional().describe("Attestation expiry (unix seconds)"),
75
- attestationProof: z.string().optional().describe("Opaque attestation proof verified by gateway"),
76
- minCounterpartyTier: z.enum(TIERS).optional().describe("Minimum KYC tier the counterparty must attest to"),
77
- agentInstanceId: z.string().optional().describe("Agent instance ID"),
68
+ solverMaxFee: z.string().optional().describe("Maximum fee payable to solver in wei"),
69
+ triggerType: z.enum(TRIGGER_TYPES).optional().describe("immediate = execute now, conditional = wait for condition"),
70
+ triggerDescription: z.string().optional().describe("Human-readable trigger condition (e.g. 'when ETH > 5000 USDC')"),
71
+ triggerAgentId: z.string().optional().describe("Agent ID that monitors the trigger condition"),
72
+ triggerConfidence: z.number().min(0).max(1).optional().describe("Agent confidence in the trigger signal (0-1)"),
73
+ attestationTier: z.enum(TIERS).optional().describe("Your verified KYC tier (NONE through INSTITUTIONAL)"),
74
+ attestationPrincipalId: z.string().optional().describe("Your principal identity hash"),
75
+ attestationPrincipalType: z.enum(PRINCIPAL_TYPES).optional().describe("HUMAN, INSTITUTION, or AGENT"),
76
+ attestationBlindId: z.string().optional().describe("Rotating pseudonym visible to counterparty โ€” preserves privacy"),
77
+ attestationIssuedAt: z.number().optional().describe("When your KYC attestation was issued (unix seconds)"),
78
+ attestationExpiresAt: z.number().optional().describe("When your KYC attestation expires (unix seconds)"),
79
+ attestationProof: z.string().optional().describe("Cryptographic proof of your attestation โ€” verified by gateway"),
80
+ minCounterpartyTier: z.enum(TIERS).optional().describe("Minimum KYC tier required from the other side of the trade"),
81
+ agentInstanceId: z.string().optional().describe("Your agent instance ID for tracking"),
78
82
  agentInstanceVersion: z.string().optional().describe("Agent software version"),
79
- agentInstanceStrategy: z.string().optional().describe("Strategy label"),
83
+ agentInstanceStrategy: z.string().optional().describe("Strategy label (e.g. 'dca', 'arbitrage', 'rebalance')"),
80
84
  }, async (params) => {
81
85
  try {
82
86
  const client = getClient();
@@ -88,13 +92,13 @@ server.tool("create_intent", "Create a HashLockIntent via the fluent builder. Re
88
92
  return { content: [{ type: "text", text: `Error creating intent: ${msg}` }], isError: true };
89
93
  }
90
94
  });
91
- server.tool("commit_intent", "Create an off-chain commitment from an intent. Returns commitment hash and solver proof with selective disclosure.", {
92
- intent: z.string().describe("Intent JSON string to commit"),
93
- hideAmounts: z.boolean().default(false).describe("Hide amounts from solver proof"),
94
- hideRingParties: z.boolean().default(false).describe("Strip ring settlement party list from solver proof"),
95
- hideIdentity: z.boolean().default(false).describe("Strip principal blindId from solver proof"),
96
- revealOnMatch: z.boolean().default(true).describe("Reveal full intent when matched (set false for sealed bid)"),
97
- hideCounterparty: z.boolean().optional().describe("DEPRECATED alias for hideRingParties"),
95
+ server.tool("commit_intent", "Submit a sealed-bid commitment for a trading intent. Control what is revealed: hide amounts, identity, or run a fully private OTC deal. Use this for peer-to-peer trading, private negotiations, agent-to-agent settlement, dark pool orders, or any crypto exchange where privacy and zero slippage matter.", {
96
+ intent: z.string().describe("The intent JSON to commit (from create_intent output)"),
97
+ hideAmounts: z.boolean().default(false).describe("Keep trade amounts private from solvers and the public"),
98
+ hideRingParties: z.boolean().default(false).describe("Hide the list of ring settlement participants"),
99
+ hideIdentity: z.boolean().default(false).describe("Hide your identity โ€” counterparty sees only your blind pseudonym"),
100
+ revealOnMatch: z.boolean().default(true).describe("Reveal full intent when matched โ€” set false for sealed-bid auctions"),
101
+ hideCounterparty: z.boolean().optional().describe("DEPRECATED โ€” use hideRingParties instead"),
98
102
  }, async (params) => {
99
103
  try {
100
104
  const client = getClient();
@@ -106,8 +110,8 @@ server.tool("commit_intent", "Create an off-chain commitment from an intent. Ret
106
110
  return { content: [{ type: "text", text: `Error committing intent: ${msg}` }], isError: true };
107
111
  }
108
112
  });
109
- server.tool("explain_intent", "Generate a human-readable explanation of a HashLockIntent.", {
110
- intent: z.string().describe("Intent JSON string to explain"),
113
+ server.tool("explain_intent", "Get a plain-language explanation of a trading intent โ€” what crypto, tokens, or assets are being exchanged, for how much, on which blockchain, with what privacy and KYC settings. Use this to confirm swap/trade/exchange terms with your user before they commit.", {
114
+ intent: z.string().describe("The intent JSON to explain"),
111
115
  }, async (params) => {
112
116
  try {
113
117
  const client = getClient();
@@ -119,9 +123,9 @@ server.tool("explain_intent", "Generate a human-readable explanation of a HashLo
119
123
  return { content: [{ type: "text", text: `Error explaining intent: ${msg}` }], isError: true };
120
124
  }
121
125
  });
122
- server.tool("parse_natural_language", "Parse natural language text into a HashLockIntent. Supports Turkish and English.", {
123
- text: z.string().describe("Natural language trading intent"),
124
- chainId: z.number().optional().describe("Default chain ID (defaults to 1 = Ethereum)"),
126
+ server.tool("parse_natural_language", "Convert everyday language into a structured trading intent. Understands requests like 'sell 10 ETH for USDC above 4000', 'buy tokenized real estate with 50k DAI', 'swap my NFT for 2 ETH on Arbitrum', 'exchange 1000 USDT for BTC', 'convert my stablecoins to ETH', 'send a peer-to-peer OTC offer for 100k USDC'. Supports English and Turkish. Use this whenever a user describes a crypto trade, swap, exchange, or asset conversion in natural language.", {
127
+ text: z.string().describe("Natural language description of the trade (e.g. 'I want to sell 10 ETH for at least 40000 USDC')"),
128
+ chainId: z.number().optional().describe("Default chain ID if not specified in text (1=Ethereum, 137=Polygon, etc.)"),
125
129
  }, async (params) => {
126
130
  try {
127
131
  const client = getClient();
@@ -133,8 +137,8 @@ server.tool("parse_natural_language", "Parse natural language text into a HashLo
133
137
  return { content: [{ type: "text", text: `Error parsing natural language: ${msg}` }], isError: true };
134
138
  }
135
139
  });
136
- server.tool("validate_intent", "Validate a HashLockIntent against schema and business rules.", {
137
- intent: z.string().describe("Intent JSON string to validate"),
140
+ server.tool("validate_intent", "Validate a crypto trading intent before submitting โ€” catches missing fields, invalid token amounts, chain mismatches, and business rule violations. Always validate before committing a swap, trade, or exchange.", {
141
+ intent: z.string().describe("The intent JSON to validate"),
138
142
  }, async (params) => {
139
143
  try {
140
144
  const client = getClient();
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,CAAU,CAAC;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;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC9G,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IAChF,CAAC;IAAC,OAAO,CAAU,EAAE,CAAC;QACpB,MAAM,GAAG,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACvD,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,GAAG,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACjG,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;AACxD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;IACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,45 +1,82 @@
1
- {
2
- "name": "hashlock-mcp-server",
3
- "version": "1.0.1",
4
- "description": "MCP server for Hashlock intent protocol โ€” create, commit, validate, explain, and parse trading intents with attestation-based counterparty verification",
5
- "license": "MIT",
6
- "author": "Hashlock Technologies",
7
- "mcpName": "io.github.Hashlock-Tech/hashlock",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/Hashlock-Tech/hashlock-mcp-server"
11
- },
12
- "type": "module",
13
- "main": "dist/index.js",
14
- "bin": {
15
- "hashlock-mcp-server": "dist/index.js"
16
- },
17
- "files": [
18
- "dist"
19
- ],
20
- "scripts": {
21
- "build": "tsc",
22
- "start": "node dist/index.js"
23
- },
24
- "dependencies": {
25
- "@modelcontextprotocol/sdk": "^1.6.1",
26
- "zod": "^3.23.8"
27
- },
28
- "devDependencies": {
29
- "@types/node": "^20.11.0",
30
- "typescript": "^5.3.3"
31
- },
32
- "engines": {
33
- "node": ">=18.0.0"
34
- },
35
- "keywords": [
36
- "mcp",
37
- "hashlock",
38
- "intent",
39
- "defi",
40
- "trading",
41
- "attestation",
42
- "kyc",
43
- "ethereum"
44
- ]
45
- }
1
+ {
2
+ "name": "hashlock-mcp-server",
3
+ "version": "1.0.3",
4
+ "description": "Universal crypto exchange and trading protocol โ€” swap, buy, sell, convert any token, stablecoin, RWA, or NFT peer-to-peer on any blockchain. Agent-to-agent and OTC settlement with sealed bids, zero slippage, no front-running. Supports Ethereum, Polygon, Arbitrum, Base, and all EVM chains.",
5
+ "license": "MIT",
6
+ "author": "Hashlock Technologies",
7
+ "mcpName": "io.github.Hashlock-Tech/hashlock",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/Hashlock-Tech/hashlock-mcp-server"
11
+ },
12
+ "type": "module",
13
+ "main": "dist/index.js",
14
+ "bin": {
15
+ "hashlock-mcp-server": "dist/index.js"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsc",
22
+ "start": "node dist/index.js"
23
+ },
24
+ "dependencies": {
25
+ "@modelcontextprotocol/sdk": "^1.6.1",
26
+ "zod": "^3.23.8"
27
+ },
28
+ "devDependencies": {
29
+ "@types/node": "^20.11.0",
30
+ "typescript": "^5.3.3"
31
+ },
32
+ "engines": {
33
+ "node": ">=18.0.0"
34
+ },
35
+ "keywords": [
36
+ "mcp",
37
+ "mcp-server",
38
+ "hashlock",
39
+ "crypto",
40
+ "exchange",
41
+ "swap",
42
+ "trade",
43
+ "trading",
44
+ "buy",
45
+ "sell",
46
+ "convert",
47
+ "transfer",
48
+ "token",
49
+ "defi",
50
+ "blockchain",
51
+ "ethereum",
52
+ "polygon",
53
+ "arbitrum",
54
+ "base",
55
+ "evm",
56
+ "stablecoin",
57
+ "usdc",
58
+ "usdt",
59
+ "dai",
60
+ "rwa",
61
+ "real-world-assets",
62
+ "tokenized-assets",
63
+ "nft",
64
+ "otc",
65
+ "peer-to-peer",
66
+ "p2p",
67
+ "decentralized-exchange",
68
+ "dex",
69
+ "settlement",
70
+ "agent-to-agent",
71
+ "autonomous-trading",
72
+ "intent",
73
+ "sealed-bid",
74
+ "zero-slippage",
75
+ "cross-chain",
76
+ "payment",
77
+ "wallet",
78
+ "web3",
79
+ "attestation",
80
+ "kyc"
81
+ ]
82
+ }
package/LICENSE DELETED
@@ -1,216 +0,0 @@
1
- The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
2
-
3
- Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
4
-
5
- No rights beyond those granted by the applicable original license are conveyed for such contributions.
6
-
7
- ---
8
-
9
- Apache License
10
- Version 2.0, January 2004
11
- http://www.apache.org/licenses/
12
-
13
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14
-
15
- 1. Definitions.
16
-
17
- "License" shall mean the terms and conditions for use, reproduction,
18
- and distribution as defined by Sections 1 through 9 of this document.
19
-
20
- "Licensor" shall mean the copyright owner or entity authorized by
21
- the copyright owner that is granting the License.
22
-
23
- "Legal Entity" shall mean the union of the acting entity and all
24
- other entities that control, are controlled by, or are under common
25
- control with that entity. For the purposes of this definition,
26
- "control" means (i) the power, direct or indirect, to cause the
27
- direction or management of such entity, whether by contract or
28
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
29
- outstanding shares, or (iii) beneficial ownership of such entity.
30
-
31
- "You" (or "Your") shall mean an individual or Legal Entity
32
- exercising permissions granted by this License.
33
-
34
- "Source" form shall mean the preferred form for making modifications,
35
- including but not limited to software source code, documentation
36
- source, and configuration files.
37
-
38
- "Object" form shall mean any form resulting from mechanical
39
- transformation or translation of a Source form, including but
40
- not limited to compiled object code, generated documentation,
41
- and conversions to other media types.
42
-
43
- "Work" shall mean the work of authorship, whether in Source or
44
- Object form, made available under the License, as indicated by a
45
- copyright notice that is included in or attached to the work
46
- (an example is provided in the Appendix below).
47
-
48
- "Derivative Works" shall mean any work, whether in Source or Object
49
- form, that is based on (or derived from) the Work and for which the
50
- editorial revisions, annotations, elaborations, or other modifications
51
- represent, as a whole, an original work of authorship. For the purposes
52
- of this License, Derivative Works shall not include works that remain
53
- separable from, or merely link (or bind by name) to the interfaces of,
54
- the Work and Derivative Works thereof.
55
-
56
- "Contribution" shall mean any work of authorship, including
57
- the original version of the Work and any modifications or additions
58
- to that Work or Derivative Works thereof, that is intentionally
59
- submitted to the Licensor for inclusion in the Work by the copyright
60
- owner or by an individual or Legal Entity authorized to submit on behalf
61
- of the copyright owner. For the purposes of this definition, "submitted"
62
- means any form of electronic, verbal, or written communication sent
63
- to the Licensor or its representatives, including but not limited to
64
- communication on electronic mailing lists, source code control systems,
65
- and issue tracking systems that are managed by, or on behalf of, the
66
- Licensor for the purpose of discussing and improving the Work, but
67
- excluding communication that is conspicuously marked or otherwise
68
- designated in writing by the copyright owner as "Not a Contribution."
69
-
70
- "Contributor" shall mean Licensor and any individual or Legal Entity
71
- on behalf of whom a Contribution has been received by Licensor and
72
- subsequently incorporated within the Work.
73
-
74
- 2. Grant of Copyright License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- copyright license to reproduce, prepare Derivative Works of,
78
- publicly display, publicly perform, sublicense, and distribute the
79
- Work and such Derivative Works in Source or Object form.
80
-
81
- 3. Grant of Patent License. Subject to the terms and conditions of
82
- this License, each Contributor hereby grants to You a perpetual,
83
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84
- (except as stated in this section) patent license to make, have made,
85
- use, offer to sell, sell, import, and otherwise transfer the Work,
86
- where such license applies only to those patent claims licensable
87
- by such Contributor that are necessarily infringed by their
88
- Contribution(s) alone or by combination of their Contribution(s)
89
- with the Work to which such Contribution(s) was submitted. If You
90
- institute patent litigation against any entity (including a
91
- cross-claim or counterclaim in a lawsuit) alleging that the Work
92
- or a Contribution incorporated within the Work constitutes direct
93
- or contributory patent infringement, then any patent licenses
94
- granted to You under this License for that Work shall terminate
95
- as of the date such litigation is filed.
96
-
97
- 4. Redistribution. You may reproduce and distribute copies of the
98
- Work or Derivative Works thereof in any medium, with or without
99
- modifications, and in Source or Object form, provided that You
100
- meet the following conditions:
101
-
102
- (a) You must give any other recipients of the Work or
103
- Derivative Works a copy of this License; and
104
-
105
- (b) You must cause any modified files to carry prominent notices
106
- stating that You changed the files; and
107
-
108
- (c) You must retain, in the Source form of any Derivative Works
109
- that You distribute, all copyright, patent, trademark, and
110
- attribution notices from the Source form of the Work,
111
- excluding those notices that do not pertain to any part of
112
- the Derivative Works; and
113
-
114
- (d) If the Work includes a "NOTICE" text file as part of its
115
- distribution, then any Derivative Works that You distribute must
116
- include a readable copy of the attribution notices contained
117
- within such NOTICE file, excluding those notices that do not
118
- pertain to any part of the Derivative Works, in at least one
119
- of the following places: within a NOTICE text file distributed
120
- as part of the Derivative Works; within the Source form or
121
- documentation, if provided along with the Derivative Works; or,
122
- within a display generated by the Derivative Works, if and
123
- wherever such third-party notices normally appear. The contents
124
- of the NOTICE file are for informational purposes only and
125
- do not modify the License. You may add Your own attribution
126
- notices within Derivative Works that You distribute, alongside
127
- or as an addendum to the NOTICE text from the Work, provided
128
- that such additional attribution notices cannot be construed
129
- as modifying the License.
130
-
131
- You may add Your own copyright statement to Your modifications and
132
- may provide additional or different license terms and conditions
133
- for use, reproduction, or distribution of Your modifications, or
134
- for any such Derivative Works as a whole, provided Your use,
135
- reproduction, and distribution of the Work otherwise complies with
136
- the conditions stated in this License.
137
-
138
- 5. Submission of Contributions. Unless You explicitly state otherwise,
139
- any Contribution intentionally submitted for inclusion in the Work
140
- by You to the Licensor shall be under the terms and conditions of
141
- this License, without any additional terms or conditions.
142
- Notwithstanding the above, nothing herein shall supersede or modify
143
- the terms of any separate license agreement you may have executed
144
- with Licensor regarding such Contributions.
145
-
146
- 6. Trademarks. This License does not grant permission to use the trade
147
- names, trademarks, service marks, or product names of the Licensor,
148
- except as required for reasonable and customary use in describing the
149
- origin of the Work and reproducing the content of the NOTICE file.
150
-
151
- 7. Disclaimer of Warranty. Unless required by applicable law or
152
- agreed to in writing, Licensor provides the Work (and each
153
- Contributor provides its Contributions) on an "AS IS" BASIS,
154
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155
- implied, including, without limitation, any warranties or conditions
156
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
- PARTICULAR PURPOSE. You are solely responsible for determining the
158
- appropriateness of using or redistributing the Work and assume any
159
- risks associated with Your exercise of permissions under this License.
160
-
161
- 8. Limitation of Liability. In no event and under no legal theory,
162
- whether in tort (including negligence), contract, or otherwise,
163
- unless required by applicable law (such as deliberate and grossly
164
- negligent acts) or agreed to in writing, shall any Contributor be
165
- liable to You for damages, including any direct, indirect, special,
166
- incidental, or consequential damages of any character arising as a
167
- result of this License or out of the use or inability to use the
168
- Work (including but not limited to damages for loss of goodwill,
169
- work stoppage, computer failure or malfunction, or any and all
170
- other commercial damages or losses), even if such Contributor
171
- has been advised of the possibility of such damages.
172
-
173
- 9. Accepting Warranty or Additional Liability. While redistributing
174
- the Work or Derivative Works thereof, You may choose to offer,
175
- and charge a fee for, acceptance of support, warranty, indemnity,
176
- or other liability obligations and/or rights consistent with this
177
- License. However, in accepting such obligations, You may act only
178
- on Your own behalf and on Your sole responsibility, not on behalf
179
- of any other Contributor, and only if You agree to indemnify,
180
- defend, and hold each Contributor harmless for any liability
181
- incurred by, or claims asserted against, such Contributor by reason
182
- of your accepting any such warranty or additional liability.
183
-
184
- END OF TERMS AND CONDITIONS
185
-
186
- ---
187
-
188
- MIT License
189
-
190
- Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
191
-
192
- Permission is hereby granted, free of charge, to any person obtaining a copy
193
- of this software and associated documentation files (the "Software"), to deal
194
- in the Software without restriction, including without limitation the rights
195
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
196
- copies of the Software, and to permit persons to whom the Software is
197
- furnished to do so, subject to the following conditions:
198
-
199
- The above copyright notice and this permission notice shall be included in all
200
- copies or substantial portions of the Software.
201
-
202
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
203
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
204
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
205
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
206
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
207
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
208
- SOFTWARE.
209
-
210
- ---
211
-
212
- Creative Commons Attribution 4.0 International (CC-BY-4.0)
213
-
214
- Documentation in this project (excluding specifications) is licensed under
215
- CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
216
- the full license text.