refactor: simplify Dockerfile by removing Python installation; update mcp_settings.json to use npx for time-mcp command

This commit is contained in:
samanhappy
2025-03-31 19:56:47 +08:00
parent 35bce33ef6
commit ff2ff8a941
2 changed files with 3 additions and 12 deletions

View File

@@ -1,15 +1,6 @@
# Use Node.js LTS image with Python support # Use Node.js LTS image with Python support
FROM node:22-alpine FROM node:22-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 # Set working directory
WORKDIR /app WORKDIR /app

View File

@@ -1,8 +1,8 @@
{ {
"mcpServers": { "mcpServers": {
"time": { "time-mcp": {
"command": "python", "command": "npx",
"args": ["-m", "mcp_server_time", "--local-timezone=America/New_York"] "args": ["-y", "time-mcp"]
}, },
"sequential-thinking": { "sequential-thinking": {
"command": "npx", "command": "npx",