mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
refactor: update README for consistency and modify mcp_settings.json command; add Dockerfile for application containerization
This commit is contained in:
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Use Node.js LTS image with Python support
|
||||||
|
FROM node:lts-alpine
|
||||||
|
|
||||||
|
# Install Python and pip
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
python3 \
|
||||||
|
py3-pip \
|
||||||
|
&& ln -sf python3 /usr/bin/python
|
||||||
|
|
||||||
|
# Create symbolic links for python commands
|
||||||
|
RUN ln -sf /usr/bin/pip3 /usr/bin/pip
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy package files and install dependencies
|
||||||
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
RUN npm install -g pnpm && pnpm install
|
||||||
|
|
||||||
|
# Copy the rest of the application
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build the application
|
||||||
|
RUN pnpm build
|
||||||
|
|
||||||
|
# Expose the port defined in .env
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
# Start the application
|
||||||
|
CMD ["pnpm", "start"]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# MCP Hub
|
# MCP Hub
|
||||||
|
|
||||||
A hub server for mcp servers.
|
A hub server for MCP servers.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
{
|
{
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"mcphub": {
|
|
||||||
"url": "http://localhost:3001/sse"
|
|
||||||
},
|
|
||||||
"time": {
|
"time": {
|
||||||
"command": "python3",
|
"command": "python",
|
||||||
"args": ["-m", "mcp_server_time", "--local-timezone=America/New_York"]
|
"args": ["-m", "mcp_server_time", "--local-timezone=America/New_York"]
|
||||||
},
|
},
|
||||||
"sequential-thinking": {
|
"sequential-thinking": {
|
||||||
|
|||||||
Reference in New Issue
Block a user