@iqai/adk 0.1.2 → 0.1.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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1523,25 +1523,25 @@ interface McpServerConfig {
|
|
|
1523
1523
|
* Required env vars: CONTRACT_ABI, CONTRACT_ADDRESS
|
|
1524
1524
|
* Optional env vars: CONTRACT_NAME, CHAIN_ID, RPC_URL, WALLET_PRIVATE_KEY
|
|
1525
1525
|
*/
|
|
1526
|
-
declare function McpAbi(config
|
|
1526
|
+
declare function McpAbi(config?: McpServerConfig): McpToolset;
|
|
1527
1527
|
/**
|
|
1528
1528
|
* MCP ATP - Interact with the IQ AI Agent Tokenization Platform
|
|
1529
1529
|
*
|
|
1530
1530
|
* Required env vars: ATP_WALLET_PRIVATE_KEY, ATP_API_KEY
|
|
1531
1531
|
*/
|
|
1532
|
-
declare function McpAtp(config
|
|
1532
|
+
declare function McpAtp(config?: McpServerConfig): McpToolset;
|
|
1533
1533
|
/**
|
|
1534
1534
|
* MCP BAMM - Borrow Automated Market Maker operations on Fraxtal
|
|
1535
1535
|
*
|
|
1536
1536
|
* Required env vars: WALLET_PRIVATE_KEY
|
|
1537
1537
|
*/
|
|
1538
|
-
declare function McpBamm(config
|
|
1538
|
+
declare function McpBamm(config?: McpServerConfig): McpToolset;
|
|
1539
1539
|
/**
|
|
1540
1540
|
* MCP FRAXLEND - Interact with the Fraxlend lending platform
|
|
1541
1541
|
*
|
|
1542
1542
|
* Required env vars: WALLET_PRIVATE_KEY
|
|
1543
1543
|
*/
|
|
1544
|
-
declare function McpFraxlend(config
|
|
1544
|
+
declare function McpFraxlend(config?: McpServerConfig): McpToolset;
|
|
1545
1545
|
/**
|
|
1546
1546
|
* MCP IQWiki - Access and manage IQ.wiki data and user activities
|
|
1547
1547
|
*
|
|
@@ -1554,26 +1554,26 @@ declare function McpIqWiki(config?: McpServerConfig): McpToolset;
|
|
|
1554
1554
|
* Required env vars: ACCOUNT_ID, ACCOUNT_KEY
|
|
1555
1555
|
* Optional env vars: NEAR_NETWORK_ID, NEAR_NODE_URL, NEAR_GAS_LIMIT
|
|
1556
1556
|
*/
|
|
1557
|
-
declare function McpNearAgent(config
|
|
1557
|
+
declare function McpNearAgent(config?: McpServerConfig): McpToolset;
|
|
1558
1558
|
/**
|
|
1559
1559
|
* MCP NEAR Intent Swaps - NEAR Protocol intent swaps functionality
|
|
1560
1560
|
*
|
|
1561
1561
|
* Required env vars: ACCOUNT_ID, ACCOUNT_KEY
|
|
1562
1562
|
* Optional env vars: NEAR_NETWORK_ID, NEAR_NODE_URL, NEAR_GAS_LIMIT
|
|
1563
1563
|
*/
|
|
1564
|
-
declare function McpNearIntentSwaps(config
|
|
1564
|
+
declare function McpNearIntentSwaps(config?: McpServerConfig): McpToolset;
|
|
1565
1565
|
/**
|
|
1566
1566
|
* MCP ODOS - Interact with decentralized exchanges through ODOS aggregation
|
|
1567
1567
|
*
|
|
1568
1568
|
* Required env vars: WALLET_PRIVATE_KEY
|
|
1569
1569
|
*/
|
|
1570
|
-
declare function McpOdos(config
|
|
1570
|
+
declare function McpOdos(config?: McpServerConfig): McpToolset;
|
|
1571
1571
|
/**
|
|
1572
1572
|
* MCP Telegram - Interact with Telegram bots and channels
|
|
1573
1573
|
*
|
|
1574
1574
|
* Required env vars: TELEGRAM_BOT_TOKEN
|
|
1575
1575
|
*/
|
|
1576
|
-
declare function McpTelegram(config
|
|
1576
|
+
declare function McpTelegram(config?: McpServerConfig): McpToolset;
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Popular third-party MCP servers
|
|
1579
1579
|
* These can be added as we expand support for community MCP servers
|
package/dist/index.d.ts
CHANGED
|
@@ -1523,25 +1523,25 @@ interface McpServerConfig {
|
|
|
1523
1523
|
* Required env vars: CONTRACT_ABI, CONTRACT_ADDRESS
|
|
1524
1524
|
* Optional env vars: CONTRACT_NAME, CHAIN_ID, RPC_URL, WALLET_PRIVATE_KEY
|
|
1525
1525
|
*/
|
|
1526
|
-
declare function McpAbi(config
|
|
1526
|
+
declare function McpAbi(config?: McpServerConfig): McpToolset;
|
|
1527
1527
|
/**
|
|
1528
1528
|
* MCP ATP - Interact with the IQ AI Agent Tokenization Platform
|
|
1529
1529
|
*
|
|
1530
1530
|
* Required env vars: ATP_WALLET_PRIVATE_KEY, ATP_API_KEY
|
|
1531
1531
|
*/
|
|
1532
|
-
declare function McpAtp(config
|
|
1532
|
+
declare function McpAtp(config?: McpServerConfig): McpToolset;
|
|
1533
1533
|
/**
|
|
1534
1534
|
* MCP BAMM - Borrow Automated Market Maker operations on Fraxtal
|
|
1535
1535
|
*
|
|
1536
1536
|
* Required env vars: WALLET_PRIVATE_KEY
|
|
1537
1537
|
*/
|
|
1538
|
-
declare function McpBamm(config
|
|
1538
|
+
declare function McpBamm(config?: McpServerConfig): McpToolset;
|
|
1539
1539
|
/**
|
|
1540
1540
|
* MCP FRAXLEND - Interact with the Fraxlend lending platform
|
|
1541
1541
|
*
|
|
1542
1542
|
* Required env vars: WALLET_PRIVATE_KEY
|
|
1543
1543
|
*/
|
|
1544
|
-
declare function McpFraxlend(config
|
|
1544
|
+
declare function McpFraxlend(config?: McpServerConfig): McpToolset;
|
|
1545
1545
|
/**
|
|
1546
1546
|
* MCP IQWiki - Access and manage IQ.wiki data and user activities
|
|
1547
1547
|
*
|
|
@@ -1554,26 +1554,26 @@ declare function McpIqWiki(config?: McpServerConfig): McpToolset;
|
|
|
1554
1554
|
* Required env vars: ACCOUNT_ID, ACCOUNT_KEY
|
|
1555
1555
|
* Optional env vars: NEAR_NETWORK_ID, NEAR_NODE_URL, NEAR_GAS_LIMIT
|
|
1556
1556
|
*/
|
|
1557
|
-
declare function McpNearAgent(config
|
|
1557
|
+
declare function McpNearAgent(config?: McpServerConfig): McpToolset;
|
|
1558
1558
|
/**
|
|
1559
1559
|
* MCP NEAR Intent Swaps - NEAR Protocol intent swaps functionality
|
|
1560
1560
|
*
|
|
1561
1561
|
* Required env vars: ACCOUNT_ID, ACCOUNT_KEY
|
|
1562
1562
|
* Optional env vars: NEAR_NETWORK_ID, NEAR_NODE_URL, NEAR_GAS_LIMIT
|
|
1563
1563
|
*/
|
|
1564
|
-
declare function McpNearIntentSwaps(config
|
|
1564
|
+
declare function McpNearIntentSwaps(config?: McpServerConfig): McpToolset;
|
|
1565
1565
|
/**
|
|
1566
1566
|
* MCP ODOS - Interact with decentralized exchanges through ODOS aggregation
|
|
1567
1567
|
*
|
|
1568
1568
|
* Required env vars: WALLET_PRIVATE_KEY
|
|
1569
1569
|
*/
|
|
1570
|
-
declare function McpOdos(config
|
|
1570
|
+
declare function McpOdos(config?: McpServerConfig): McpToolset;
|
|
1571
1571
|
/**
|
|
1572
1572
|
* MCP Telegram - Interact with Telegram bots and channels
|
|
1573
1573
|
*
|
|
1574
1574
|
* Required env vars: TELEGRAM_BOT_TOKEN
|
|
1575
1575
|
*/
|
|
1576
|
-
declare function McpTelegram(config
|
|
1576
|
+
declare function McpTelegram(config?: McpServerConfig): McpToolset;
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Popular third-party MCP servers
|
|
1579
1579
|
* These can be added as we expand support for community MCP servers
|
package/dist/index.js
CHANGED
|
@@ -5176,7 +5176,7 @@ var McpToolAdapter = (_class18 = class extends BaseTool {
|
|
|
5176
5176
|
}, _class18);
|
|
5177
5177
|
|
|
5178
5178
|
// src/tools/mcp/servers.ts
|
|
5179
|
-
function createMcpConfig(name, packageName, config) {
|
|
5179
|
+
function createMcpConfig(name, packageName, config = {}) {
|
|
5180
5180
|
const { debug, description, retryOptions, env: envVars = {} } = config;
|
|
5181
5181
|
const env = {};
|
|
5182
5182
|
for (const [key, value] of Object.entries(envVars)) {
|
|
@@ -5200,15 +5200,15 @@ function createMcpConfig(name, packageName, config) {
|
|
|
5200
5200
|
}
|
|
5201
5201
|
};
|
|
5202
5202
|
}
|
|
5203
|
-
function McpAbi(config) {
|
|
5203
|
+
function McpAbi(config = {}) {
|
|
5204
5204
|
const mcpConfig = createMcpConfig("ABI MCP Client", "@iqai/mcp-abi", config);
|
|
5205
5205
|
return new McpToolset(mcpConfig);
|
|
5206
5206
|
}
|
|
5207
|
-
function McpAtp(config) {
|
|
5207
|
+
function McpAtp(config = {}) {
|
|
5208
5208
|
const mcpConfig = createMcpConfig("ATP MCP Client", "@iqai/mcp-atp", config);
|
|
5209
5209
|
return new McpToolset(mcpConfig);
|
|
5210
5210
|
}
|
|
5211
|
-
function McpBamm(config) {
|
|
5211
|
+
function McpBamm(config = {}) {
|
|
5212
5212
|
const mcpConfig = createMcpConfig(
|
|
5213
5213
|
"BAMM MCP Client",
|
|
5214
5214
|
"@iqai/mcp-bamm",
|
|
@@ -5216,7 +5216,7 @@ function McpBamm(config) {
|
|
|
5216
5216
|
);
|
|
5217
5217
|
return new McpToolset(mcpConfig);
|
|
5218
5218
|
}
|
|
5219
|
-
function McpFraxlend(config) {
|
|
5219
|
+
function McpFraxlend(config = {}) {
|
|
5220
5220
|
const mcpConfig = createMcpConfig(
|
|
5221
5221
|
"Fraxlend MCP Client",
|
|
5222
5222
|
"@iqai/mcp-fraxlend",
|
|
@@ -5232,7 +5232,7 @@ function McpIqWiki(config = {}) {
|
|
|
5232
5232
|
);
|
|
5233
5233
|
return new McpToolset(mcpConfig);
|
|
5234
5234
|
}
|
|
5235
|
-
function McpNearAgent(config) {
|
|
5235
|
+
function McpNearAgent(config = {}) {
|
|
5236
5236
|
const mcpConfig = createMcpConfig(
|
|
5237
5237
|
"NEAR Agent MCP Client",
|
|
5238
5238
|
"@iqai/mcp-near-agent",
|
|
@@ -5240,7 +5240,7 @@ function McpNearAgent(config) {
|
|
|
5240
5240
|
);
|
|
5241
5241
|
return new McpToolset(mcpConfig);
|
|
5242
5242
|
}
|
|
5243
|
-
function McpNearIntentSwaps(config) {
|
|
5243
|
+
function McpNearIntentSwaps(config = {}) {
|
|
5244
5244
|
const mcpConfig = createMcpConfig(
|
|
5245
5245
|
"NEAR Intent Swaps MCP Client",
|
|
5246
5246
|
"@iqai/mcp-near-intent-swaps",
|
|
@@ -5248,7 +5248,7 @@ function McpNearIntentSwaps(config) {
|
|
|
5248
5248
|
);
|
|
5249
5249
|
return new McpToolset(mcpConfig);
|
|
5250
5250
|
}
|
|
5251
|
-
function McpOdos(config) {
|
|
5251
|
+
function McpOdos(config = {}) {
|
|
5252
5252
|
const mcpConfig = createMcpConfig(
|
|
5253
5253
|
"ODOS MCP Client",
|
|
5254
5254
|
"@iqai/mcp-odos",
|
|
@@ -5256,7 +5256,7 @@ function McpOdos(config) {
|
|
|
5256
5256
|
);
|
|
5257
5257
|
return new McpToolset(mcpConfig);
|
|
5258
5258
|
}
|
|
5259
|
-
function McpTelegram(config) {
|
|
5259
|
+
function McpTelegram(config = {}) {
|
|
5260
5260
|
const mcpConfig = createMcpConfig(
|
|
5261
5261
|
"Telegram MCP Client",
|
|
5262
5262
|
"@iqai/mcp-telegram",
|
package/dist/index.mjs
CHANGED
|
@@ -5176,7 +5176,7 @@ var McpToolAdapter = class extends BaseTool {
|
|
|
5176
5176
|
};
|
|
5177
5177
|
|
|
5178
5178
|
// src/tools/mcp/servers.ts
|
|
5179
|
-
function createMcpConfig(name, packageName, config) {
|
|
5179
|
+
function createMcpConfig(name, packageName, config = {}) {
|
|
5180
5180
|
const { debug, description, retryOptions, env: envVars = {} } = config;
|
|
5181
5181
|
const env = {};
|
|
5182
5182
|
for (const [key, value] of Object.entries(envVars)) {
|
|
@@ -5200,15 +5200,15 @@ function createMcpConfig(name, packageName, config) {
|
|
|
5200
5200
|
}
|
|
5201
5201
|
};
|
|
5202
5202
|
}
|
|
5203
|
-
function McpAbi(config) {
|
|
5203
|
+
function McpAbi(config = {}) {
|
|
5204
5204
|
const mcpConfig = createMcpConfig("ABI MCP Client", "@iqai/mcp-abi", config);
|
|
5205
5205
|
return new McpToolset(mcpConfig);
|
|
5206
5206
|
}
|
|
5207
|
-
function McpAtp(config) {
|
|
5207
|
+
function McpAtp(config = {}) {
|
|
5208
5208
|
const mcpConfig = createMcpConfig("ATP MCP Client", "@iqai/mcp-atp", config);
|
|
5209
5209
|
return new McpToolset(mcpConfig);
|
|
5210
5210
|
}
|
|
5211
|
-
function McpBamm(config) {
|
|
5211
|
+
function McpBamm(config = {}) {
|
|
5212
5212
|
const mcpConfig = createMcpConfig(
|
|
5213
5213
|
"BAMM MCP Client",
|
|
5214
5214
|
"@iqai/mcp-bamm",
|
|
@@ -5216,7 +5216,7 @@ function McpBamm(config) {
|
|
|
5216
5216
|
);
|
|
5217
5217
|
return new McpToolset(mcpConfig);
|
|
5218
5218
|
}
|
|
5219
|
-
function McpFraxlend(config) {
|
|
5219
|
+
function McpFraxlend(config = {}) {
|
|
5220
5220
|
const mcpConfig = createMcpConfig(
|
|
5221
5221
|
"Fraxlend MCP Client",
|
|
5222
5222
|
"@iqai/mcp-fraxlend",
|
|
@@ -5232,7 +5232,7 @@ function McpIqWiki(config = {}) {
|
|
|
5232
5232
|
);
|
|
5233
5233
|
return new McpToolset(mcpConfig);
|
|
5234
5234
|
}
|
|
5235
|
-
function McpNearAgent(config) {
|
|
5235
|
+
function McpNearAgent(config = {}) {
|
|
5236
5236
|
const mcpConfig = createMcpConfig(
|
|
5237
5237
|
"NEAR Agent MCP Client",
|
|
5238
5238
|
"@iqai/mcp-near-agent",
|
|
@@ -5240,7 +5240,7 @@ function McpNearAgent(config) {
|
|
|
5240
5240
|
);
|
|
5241
5241
|
return new McpToolset(mcpConfig);
|
|
5242
5242
|
}
|
|
5243
|
-
function McpNearIntentSwaps(config) {
|
|
5243
|
+
function McpNearIntentSwaps(config = {}) {
|
|
5244
5244
|
const mcpConfig = createMcpConfig(
|
|
5245
5245
|
"NEAR Intent Swaps MCP Client",
|
|
5246
5246
|
"@iqai/mcp-near-intent-swaps",
|
|
@@ -5248,7 +5248,7 @@ function McpNearIntentSwaps(config) {
|
|
|
5248
5248
|
);
|
|
5249
5249
|
return new McpToolset(mcpConfig);
|
|
5250
5250
|
}
|
|
5251
|
-
function McpOdos(config) {
|
|
5251
|
+
function McpOdos(config = {}) {
|
|
5252
5252
|
const mcpConfig = createMcpConfig(
|
|
5253
5253
|
"ODOS MCP Client",
|
|
5254
5254
|
"@iqai/mcp-odos",
|
|
@@ -5256,7 +5256,7 @@ function McpOdos(config) {
|
|
|
5256
5256
|
);
|
|
5257
5257
|
return new McpToolset(mcpConfig);
|
|
5258
5258
|
}
|
|
5259
|
-
function McpTelegram(config) {
|
|
5259
|
+
function McpTelegram(config = {}) {
|
|
5260
5260
|
const mcpConfig = createMcpConfig(
|
|
5261
5261
|
"Telegram MCP Client",
|
|
5262
5262
|
"@iqai/mcp-telegram",
|