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
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use the official lightweight Node.js image
FROM node:20-alpine

# Set the working directory
WORKDIR /app

# Copy package.json and tsconfig.json
COPY examples/simple-server/package.json examples/simple-server/tsconfig.json ./

# Install the dependencies
RUN npm install

# Copy the application code
COPY examples/simple-server .

# Expose the application port
EXPOSE 9512

# Command to run the application
CMD ["npm", "run", "start"]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Remote-MCP: Remote Model Context Protocol

[![smithery badge](https://smithery.ai/badge/@remote-mcp/client)](https://smithery.ai/server/@remote-mcp/client)

A **type-safe, bidirectional and simple** solution for **remote MCP communication**, allowing remote access and centralized management of model contexts.

![preview](https://github.com/user-attachments/assets/a16804b9-8378-493c-8ca8-f61839458cde)
Expand Down Expand Up @@ -236,3 +238,4 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file
## References

* [Model Context Protocol](https://modelcontextprotocol.org/)

19 changes: 19 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

build:
dockerBuildPath: examples/simple-server
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required: []
properties:
port:
type: number
default: 9512
description: The port number on which the server will run.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
config => ({ command: 'npm', args: ['run', 'start'], env: { PORT: String(config.port) } })