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
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
access=public
30 changes: 21 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
{
"name": "iexec-mcp-server",
"version": "1.0.0",
"main": "index.js",
"name": "@paypes/iexec-mcp",
"version": "0.0.1",
"description": "MCP server for interacting with iExec Blockchain",
"type": "module",
"main": "build/index.js",
"types": "build/index.d.ts",
"bin": {
"weather": "./build/index.js"
"iexec-mcp": "build/index.js"
},
"homepage": "https://github.com/iExecBlockchainComputing/iexec-mcp-server",
"repository": {
"type": "git",
"url": "git+https://github.com/iExecBlockchainComputing/iexec-mcp-server.git"
},
"files": [
"build",
"README.md",
"LICENSE"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc && chmod 755 build/index.js",
"prepare": "npm run build",
"watch": "tsc --watch",
"run": "node build/index.js",
"inspector": "npx @modelcontextprotocol/inspector build/index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"license": "MIT",
"dependencies": {
"@iexec/dataprotector": "^2.0.0-beta.15",
"@iexec/web3mail": "^1.2.1",
Expand All @@ -28,5 +37,8 @@
"@types/node": "^22.15.18",
"dotenv": "^16.5.0",
"typescript": "^5.8.3"
},
"publishConfig": {
"access": "public"
}
}
1 change: 0 additions & 1 deletion src/tools/dataProtectorCore/getGrantedAccess.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
import 'dotenv/config';

export const getGrantedAccess = {
name: "get_granted_access",
Expand Down
1 change: 0 additions & 1 deletion src/tools/dataProtectorCore/grantAccess.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
import 'dotenv/config';

// Dictionnaire d'apps connues avec alias
const iExecApps = {
Expand Down
1 change: 0 additions & 1 deletion src/tools/dataProtectorCore/processProtectedData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
import 'dotenv/config';

export const processProtectedData = {
name: "process_protected_data",
Expand Down
1 change: 0 additions & 1 deletion src/tools/dataProtectorCore/protectData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import { Wallet } from "ethers";
import { z } from "zod";
import 'dotenv/config';

export const protectData = {
name: "protect_data",
Expand Down
1 change: 0 additions & 1 deletion src/tools/dataProtectorCore/revokeAllAccess.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
import 'dotenv/config';

export const revokeAllAccess = {
name: "revoke_all_access",
Expand Down
1 change: 0 additions & 1 deletion src/tools/dataProtectorCore/revokeOneAccess.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
import 'dotenv/config';

export const revokeOneAccess = {
name: "revoke_access",
Expand Down
1 change: 0 additions & 1 deletion src/tools/dataProtectorCore/transferOwnership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import {
IExecDataProtectorCore,
} from "@iexec/dataprotector";
import 'dotenv/config';

export const transferOwnership = {
name: "transfer_ownership",
Expand Down
1 change: 0 additions & 1 deletion src/tools/web3mail/fetchMyContacts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { getWeb3Provider, IExecWeb3mail } from "@iexec/web3mail";
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
import 'dotenv/config';

export const fetchMyContacts = {
name: "fetchMyContacts",
Expand Down
1 change: 0 additions & 1 deletion src/tools/web3mail/fetchUserContacts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { McpError, ErrorCode } from '@modelcontextprotocol/sdk/types.js';
import { getWeb3Provider, IExecWeb3mail, WorkflowError } from '@iexec/web3mail';
import 'dotenv/config';

export const fetchUserContacts = {
name: 'fetchUserContacts',
Expand Down
1 change: 0 additions & 1 deletion src/tools/web3mail/sendEmail.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { McpError, ErrorCode } from '@modelcontextprotocol/sdk/types.js';
import { IExecWeb3mail, WorkflowError } from '@iexec/web3mail';
import 'dotenv/config';

export const sendEmail = {
name: 'sendEmail',
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

{
"compilerOptions": {
"declaration": true,
"declarationDir": "./build/types",
"sourceMap": true,
"target": "ES2022",
"module": "Node16",
"moduleResolution": "Node16",
Expand Down