Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use the Node.js 16.x image as the base image
FROM node:16-alpine AS build

# Set the working directory
WORKDIR /app

# Copy package.json and package-lock.json for dependency installation
COPY package.json package-lock.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application files
COPY . .

# Build the application
RUN npm run build

# Create a release image
FROM node:16-alpine AS release

# Set the working directory
WORKDIR /app

# Copy the built files and package.json
COPY --from=build /app/build /app/build
COPY --from=build /app/package.json /app/package.json

# Install production dependencies only
RUN npm install --production

# Set the command to run the application
ENTRYPOINT ["node", "build/index.js"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# OpenRPC MCP Server
[![smithery badge](https://smithery.ai/badge/openrpc-mcp-server)](https://smithery.ai/server/openrpc-mcp-server)

A Model Context Protocol (MCP) server that provides JSON-RPC functionality through [OpenRPC](https://open-rpc.org).

Expand Down Expand Up @@ -34,6 +35,14 @@ npm run watch

## Installation

### Installing via Smithery

To install OpenRPC MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/openrpc-mcp-server):

```bash
npx -y @smithery/cli install openrpc-mcp-server --client claude
```

To use with Claude Desktop, add the server config:

On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
Expand Down
12 changes: 12 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
properties: {}
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
config => ({ command: 'node', args: ['build/index.js'] })