Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 🔗 NEAR Intents MCP Server
# 🔗 NEAR Intent Swaps MCP Server

[![npm version](https://img.shields.io/npm/v/@iqai/mcp-near-intents.svg)](https://www.npmjs.com/package/@iqai/mcp-near-intents)
[![npm version](https://img.shields.io/npm/v/@iqai/mcp-near-intent-swaps.svg)](https://www.npmjs.com/package/@iqai/mcp-near-intent-swaps)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## 📖 Overview

The NEAR Intents MCP Server enables AI agents to perform cross-chain token swaps through NEAR's intent-based architecture using the [Defuse Protocol one-click SDK](https://github.com/defuse-protocol/one-click-sdk-typescript). This server provides a comprehensive 5-step flow for discovering tokens, getting quotes, executing swaps, and tracking their status.
The NEAR Intent Swaps MCP Server enables AI agents to perform cross-chain token swaps through NEAR's intent-based architecture using the [Defuse Protocol one-click SDK](https://github.com/defuse-protocol/one-click-sdk-typescript). This server provides a comprehensive 5-step flow for discovering tokens, getting quotes, executing swaps, and tracking their status.

By implementing the Model Context Protocol (MCP), this server allows Large Language Models (LLMs) to facilitate cross-chain swaps seamlessly, bridging the gap between AI assistants and decentralized cross-chain infrastructure.

Expand All @@ -24,14 +24,14 @@ By implementing the Model Context Protocol (MCP), this server allows Large Langu
To use this server without installing it globally:

```bash
npx @iqai/mcp-near-intents
npx @iqai/mcp-near-intent-swaps
```

### 🔧 Build from Source

```bash
git clone https://github.com/IQAIcom/mcp-near-intents.git
cd mcp-near-intents
git clone https://github.com/IQAIcom/mcp-near-intent-swaps.git
cd mcp-near-intent-swaps
pnpm install
pnpm run build
```
Expand All @@ -45,9 +45,9 @@ Add the following configuration to your MCP client settings (e.g., `claude_deskt
```json
{
"mcpServers": {
"near-intents": {
"near-intent-swaps": {
"command": "npx",
"args": ["-y", "@iqai/mcp-near-intents"],
"args": ["-y", "@iqai/mcp-near-intent-swaps"],
"env": {
"NEAR_SWAP_JWT_TOKEN": "your-jwt-token-here"
}
Expand All @@ -61,9 +61,9 @@ Add the following configuration to your MCP client settings (e.g., `claude_deskt
```json
{
"mcpServers": {
"near-intents": {
"near-intent-swaps": {
"command": "node",
"args": ["/absolute/path/to/mcp-near-intents/dist/index.js"],
"args": ["/absolute/path/to/mcp-near-intent-swaps/dist/index.js"],
"env": {
"NEAR_SWAP_JWT_TOKEN": "your-jwt-token-here",
"NEAR_SWAP_API_URL": "https://1click.chaindefuser.com"
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@iqai/mcp-near-intents",
"name": "@iqai/mcp-near-intent-swaps",
"version": "0.0.11",
"description": "An MCP server for NEAR intents swap using the Defuse Protocol one-click SDK.",
"description": "An MCP server for NEAR intent swaps using the Defuse Protocol one-click SDK.",
"main": "dist/index.js",
"type": "module",
"bin": {
"mcp-near-intents": "dist/index.js"
"mcp-near-intent-swaps": "dist/index.js"
},
Comment on lines +2 to 9
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the package name, description, and binary name are correctly updated here, the renaming seems incomplete across the project. There are still several references to the old name that should be updated for consistency.

For example:

  • src/index.ts still contains multiple references to "NEAR Intents MCP Server" in log messages and in the FastMCP constructor.
  • The tool description for GET_NEAR_SWAP_TOKENS in src/tools/near-swap-tokens.ts still refers to "NEAR Intents".

Please update all remaining occurrences of the old name to ensure the renaming is applied consistently throughout the codebase.

"files": ["dist"],
"scripts": {
Expand Down