diff --git a/.cursor/mcp.json b/.cursor/mcp.json index 72e0cdd..45523f3 100644 --- a/.cursor/mcp.json +++ b/.cursor/mcp.json @@ -1,9 +1,10 @@ { "mcpServers": { - "evm": { - "command": "node", + "mcpEvmServer": { + "command": "npx", "args": [ - "${workspaceFolder}/build/index.js" + "-y", + "@mcpdotdirect/mcp-evm-server@latest" ] } } diff --git a/.gitignore b/.gitignore index 62ce640..36790bd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ node_modules out dist *.tgz +.cursor/mcp-example.json # code coverage coverage diff --git a/LICENSE b/LICENSE index f006802..e2e9ac7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Context Labs, Inc. +Copyright (c) 2025 mcpdotdirect Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c1d9aa8..386b51c 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ All services are exposed through a consistent interface of MCP tools and resourc ```bash # Clone the repository -git clone https://github.com/yourusername/mcp-evm-server.git +git clone https://github.com/mcpdotdirect/mcp-evm-server.git cd mcp-evm-server # Install dependencies with Bun diff --git a/bun.lock b/bun.lock index a62d7bd..40ba78b 100644 --- a/bun.lock +++ b/bun.lock @@ -6,7 +6,6 @@ "dependencies": { "@modelcontextprotocol/sdk": "^1.6.1", "cors": "^2.8.5", - "dotenv": "^16.4.7", "express": "^4.21.2", "viem": "^2.23.8", "zod": "^3.24.2", @@ -17,7 +16,7 @@ "@types/express": "^5.0.0", }, "peerDependencies": { - "typescript": "^5", + "typescript": "^5.8.2", }, }, }, @@ -96,8 +95,6 @@ "destroy": ["destroy@1.2.0", "", {}, "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg=="], - "dotenv": ["dotenv@16.4.7", "", {}, "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ=="], - "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], "ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="], diff --git a/package.json b/package.json index 2c6fc87..4667e41 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { - "name": "mcp-evm-server", + "name": "@mcpdotdirect/mcp-evm-server", "module": "src/index.ts", "type": "module", - "version": "1.0.0", + "version": "1.0.2", "description": "MCP EVM Server Implementation", - "private": true, "scripts": { "start": "bun run src/index.ts", - "build": "bun build src/index.ts --outdir build --target node", - "build:http": "bun build src/server/http-server.ts --outdir build --target node", + "build": "bun build src/index.ts --outdir build --target node --format esm", + "postbuild": "chmod +x build/index.js", "dev": "bun --watch src/index.ts", "start:http": "bun run src/server/http-server.ts", - "dev:http": "bun --watch src/server/http-server.ts" + "dev:http": "bun --watch src/server/http-server.ts", + "prepublishOnly": "bun run build" }, "devDependencies": { "@types/bun": "latest", @@ -27,5 +27,28 @@ "express": "^4.21.2", "viem": "^2.23.8", "zod": "^3.24.2" - } + }, + "bin": { + "mcp-evm-server": "./build/index.js" + }, + "files": [ + "build" + ], + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/mcpdotdirect/mcp-evm-server.git" + }, + "author": { + "name": "mcpdotdirect", + "url": "https://github.com/mcpdotdirect" + }, + "bugs": { + "url": "https://github.com/mcpdotdirect/mcp-evm-server/issues" + }, + "homepage": "https://github.com/mcpdotdirect/mcp-evm-server#readme", + "engines": { + "node": ">=18.0.0" + }, + "main": "./build/index.js" } \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 0e48074..df2693d 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env node import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import startServer from "./server/server.js";