Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e1981c

Browse files
Deployment: Dockerfile and Smithery config (#2)
* Add Dockerfile* Add Smithery configuration* Update README---------Co-authored-by: smithery-ai[bot] <194235850+smithery-ai[bot]@users.noreply.github.com>
1 parent99ac299 commit7e1981c

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

‎Dockerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
# Use a Python image with uv pre-installed
3+
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv
4+
5+
# Install the project into /app
6+
WORKDIR /app
7+
8+
# Enable bytecode compilation
9+
ENV UV_COMPILE_BYTECODE=1
10+
11+
# Copy from the cache instead of linking since it's a mounted volume
12+
ENV UV_LINK_MODE=copy
13+
14+
# Install the project's dependencies using the lockfile and settings
15+
RUN --mount=type=cache,target=/root/.cache/uv --mount=type=bind,source=uv.lock,target=uv.lock --mount=type=bind,source=pyproject.toml,target=pyproject.toml uv sync --frozen --no-install-project --no-dev --no-editable
16+
17+
# Then, add the rest of the project source code and install it
18+
# Installing separately from its dependencies allows optimal layer caching
19+
ADD . /app
20+
RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-dev --no-editable
21+
22+
FROM python:3.12-slim-bookworm
23+
24+
WORKDIR /app
25+
26+
COPY --from=uv /root/.local /root/.local
27+
COPY --from=uv --chown=app:app /app/.venv /app/.venv
28+
29+
# Place executables in the environment at the front of the path
30+
ENV PATH="/app/.venv/bin:$PATH"
31+
32+
# when running the container, add --db-path and a bind mount to the host's db file
33+
ENTRYPOINT ["uv","run","excel-mcp-server"]

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#Excel MCP Server
2+
[![smithery badge](https://smithery.ai/badge/@haris-musa/excel-mcp-server)](https://smithery.ai/server/@haris-musa/excel-mcp-server)
23

34
A Model Context Protocol (MCP) server implementation that provides Excel file manipulation capabilities without requiring Microsoft Excel installation. This server enables workbook creation, data manipulation, formatting, and advanced Excel features.
45

‎smithery.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
required:[]
9+
properties:
10+
excelFilesPath:
11+
type:string
12+
description:Directory where Excel files will be stored.
13+
commandFunction:
14+
# A function that produces the CLI command to start the MCP on stdio.
15+
|-
16+
config => ({ command:'uv', args: ['run', 'excel-mcp-server'], env: { EXCEL_FILES_PATH: config.excelFilesPath || './excel_files' } })

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp