Skip to content

Commit 9115a84

Browse files
Merge pull request #1 from iExecBlockchainComputing/feat/refactor
Feat/refactor
2 parents 20e692c + 6e1087f commit 9115a84

File tree

13 files changed

+25
-19
lines changed

13 files changed

+25
-19
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access=public

package.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
{
2-
"name": "iexec-mcp-server",
3-
"version": "1.0.0",
4-
"main": "index.js",
2+
"name": "@paypes/iexec-mcp",
3+
"version": "0.0.1",
4+
"description": "MCP server for interacting with iExec Blockchain",
55
"type": "module",
6+
"main": "build/index.js",
7+
"types": "build/index.d.ts",
68
"bin": {
7-
"weather": "./build/index.js"
9+
"iexec-mcp": "build/index.js"
810
},
11+
"homepage": "https://github.com/iExecBlockchainComputing/iexec-mcp-server",
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/iExecBlockchainComputing/iexec-mcp-server.git"
15+
},
16+
"files": [
17+
"build",
18+
"README.md",
19+
"LICENSE"
20+
],
921
"scripts": {
10-
"test": "echo \"Error: no test specified\" && exit 1",
1122
"build": "tsc && chmod 755 build/index.js",
1223
"prepare": "npm run build",
1324
"watch": "tsc --watch",
25+
"run": "node build/index.js",
1426
"inspector": "npx @modelcontextprotocol/inspector build/index.js"
1527
},
16-
"keywords": [],
17-
"author": "",
18-
"license": "ISC",
19-
"description": "",
28+
"license": "MIT",
2029
"dependencies": {
2130
"@iexec/dataprotector": "^2.0.0-beta.15",
2231
"@iexec/web3mail": "^1.2.1",
@@ -28,5 +37,8 @@
2837
"@types/node": "^22.15.18",
2938
"dotenv": "^16.5.0",
3039
"typescript": "^5.8.3"
40+
},
41+
"publishConfig": {
42+
"access": "public"
3143
}
3244
}

src/tools/dataProtectorCore/getGrantedAccess.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
22
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
3-
import 'dotenv/config';
43

54
export const getGrantedAccess = {
65
name: "get_granted_access",

src/tools/dataProtectorCore/grantAccess.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
22
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
3-
import 'dotenv/config';
43

54
// Dictionnaire d'apps connues avec alias
65
const iExecApps = {

src/tools/dataProtectorCore/processProtectedData.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
22
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
3-
import 'dotenv/config';
43

54
export const processProtectedData = {
65
name: "process_protected_data",

src/tools/dataProtectorCore/protectData.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
22
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
33
import { Wallet } from "ethers";
44
import { z } from "zod";
5-
import 'dotenv/config';
65

76
export const protectData = {
87
name: "protect_data",

src/tools/dataProtectorCore/revokeAllAccess.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
22
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
3-
import 'dotenv/config';
43

54
export const revokeAllAccess = {
65
name: "revoke_all_access",

src/tools/dataProtectorCore/revokeOneAccess.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
22
import { getWeb3Provider, IExecDataProtectorCore } from "@iexec/dataprotector";
3-
import 'dotenv/config';
43

54
export const revokeOneAccess = {
65
name: "revoke_access",

src/tools/dataProtectorCore/transferOwnership.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
22
import {
33
IExecDataProtectorCore,
44
} from "@iexec/dataprotector";
5-
import 'dotenv/config';
65

76
export const transferOwnership = {
87
name: "transfer_ownership",

src/tools/web3mail/fetchMyContacts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getWeb3Provider, IExecWeb3mail } from "@iexec/web3mail";
22
import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
3-
import 'dotenv/config';
43

54
export const fetchMyContacts = {
65
name: "fetchMyContacts",

0 commit comments

Comments
 (0)