Skip to content

Commit 78e41c4

Browse files
authored
Merge pull request #2 from smithery-ai/smithery/config-3dzh
Deployment: Dockerfile and Smithery config
2 parents 530c691 + e50e313 commit 78e41c4

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
# Stage 1: Build
3+
FROM node:18-alpine AS builder
4+
5+
WORKDIR /app
6+
7+
# Copy package files
8+
COPY package.json package-lock.json ./
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Copy the rest of the source code
14+
COPY src ./src
15+
COPY tsconfig.json ./
16+
17+
# Build the project
18+
RUN npm run build
19+
20+
# Stage 2: Release
21+
FROM node:18-alpine
22+
23+
WORKDIR /app
24+
25+
# Copy the build output and package files
26+
COPY --from=builder /app/build ./build
27+
COPY --from=builder /app/package.json /app/package-lock.json ./
28+
29+
# Set environment to production
30+
ENV NODE_ENV=production
31+
32+
# Install only production dependencies
33+
RUN npm install --omit=dev
34+
35+
# Define the command to run the application
36+
ENTRYPOINT ["node", "build/index.js"]

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# solana-docs-server MCP Server
2+
[![smithery badge](https://smithery.ai/badge/@aldrin-labs/solana-docs-mcp-server)](https://smithery.ai/server/@aldrin-labs/solana-docs-mcp-server)
23

34
solana docs context
45

@@ -44,6 +45,14 @@ npm run watch
4445

4546
## Installation
4647

48+
### Installing via Smithery
49+
50+
To install solana-docs-server MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@aldrin-labs/solana-docs-mcp-server):
51+
52+
```bash
53+
npx -y @smithery/cli install @aldrin-labs/solana-docs-mcp-server --client claude
54+
```
55+
4756
To use with Claude Desktop, add the server config:
4857

4958
On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`

smithery.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
properties: {}
9+
commandFunction:
10+
# A function that produces the CLI command to start the MCP on stdio.
11+
|-
12+
(config) => ({ command: 'node', args: ['build/index.js'] })

0 commit comments

Comments
 (0)