Skip to content

Commit 565d82d

Browse files
authored
Merge pull request #1 from mcpdotdirect/smithery/config-r1cs
Deployment: Dockerfile and Smithery config
2 parents 92ca871 + 08a4693 commit 565d82d

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
FROM node:lts-alpine
3+
4+
# Install curl and bash
5+
RUN apk add --no-cache curl bash \
6+
&& curl -fsSL https://bun.sh/install | bash \
7+
&& mv /root/.bun/bin/bun /usr/local/bin/
8+
9+
WORKDIR /app
10+
11+
# Copy package files and source
12+
COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* ./
13+
COPY . .
14+
15+
# Install dependencies and build
16+
RUN bun install
17+
RUN bun build src/index.ts --outdir build --target node
18+
RUN bun build src/server/http-server.ts --outdir build --target node --outfile http-server.js
19+
20+
# Default command
21+
CMD ["node", "build/index.js"]

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Starknet MCP Server
22

3+
[![smithery badge](https://smithery.ai/badge/@mcpdotdirect/starknet-mcp-server)](https://smithery.ai/server/@mcpdotdirect/starknet-mcp-server)
34
![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
45
![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-3178C6)
56
![MCP](https://img.shields.io/badge/MCP-1.7+-green)
@@ -99,6 +100,14 @@ The server supports the following Starknet networks:
99100

100101
## 📦 Installation
101102

103+
### Installing via Smithery
104+
105+
To install starknet-mcp-server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@mcpdotdirect/starknet-mcp-server):
106+
107+
```bash
108+
npx -y @smithery/cli install @mcpdotdirect/starknet-mcp-server --client claude
109+
```
110+
102111
### Option 1: Use without installation (npx)
103112

104113
The easiest way to get started is to use `npx` to run the package directly:

smithery.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required: []
9+
properties: {}
10+
default: {}
11+
description: Start the Starknet MCP server
12+
commandFunction:
13+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
14+
|-
15+
(config) => ({ command: 'node', args: ['build/index.js'] })
16+
exampleConfig: {}

0 commit comments

Comments
 (0)