Skip to content

Commit bb3007c

Browse files
authored
Merge pull request #22 from tolak/phala-cloud
Add SSE transport to support remote deployment
2 parents d16d6b3 + fbab9a8 commit bb3007c

9 files changed

Lines changed: 8259 additions & 19 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ __pycache__
33
**/dist
44
**/node_modules
55
**/.pnpm-store
6-
**/*.tsbuildinfo
6+
**/*.tsbuildinfo
7+
.env

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ claude mcp add near-mcp npx @nearai/near-mcp@latest run
1919
claude
2020
```
2121

22+
Or deploy the MCP server remotely on Phala Cloud, check the instructions [here](./tee.md)
23+
2224
## Installing
2325

2426
`near-mcp` is meant to be used is with an MCP compatible client. Learn more in the [MCP docs](https://modelcontextprotocol.io/introduction)

docker-compose.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: '3.8'
2+
3+
services:
4+
near-mcp:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
image: near-mcp:latest
9+
container_name: near-mcp-server
10+
restart: unless-stopped
11+
volumes:
12+
- ~/.near-keystore:/root/.near-keystore
13+
ports:
14+
# Expose the SSE server port
15+
- "3001:3001"
16+
# Override the entrypoint from the Dockerfile
17+
entrypoint: []
18+
command: ["bash", "/app/scripts/run"]
19+
environment:
20+
- NODE_ENV=production
21+
- NEAR_KEYSTOREDATA=${NEAR_KEYSTOREDATA}
22+
- NEAR_NETWORK=${NEAR_NETWORK:-mainnet}
23+
- NEAR_ACCOUNT_ID=${NEAR_ACCOUNT_ID}
24+
- NEAR_KEYSTORE=/root/.near-keystore
25+

0 commit comments

Comments
 (0)