Skip to content

Deployment: Dockerfile and Smithery config #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
FROM python:3.11-slim

# Prevent Python from buffering stdout/stderr
ENV PYTHONUNBUFFERED=1

WORKDIR /app

# Copy project files
COPY pyproject.toml README.md ./
COPY src ./src

# Install dependencies and package
RUN pip install --no-cache-dir .

# Default command to run the MCP server over stdio
ENTRYPOINT ["devrev-mcp"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# DevRev MCP server
[![smithery badge](https://smithery.ai/badge/@devrev/mcp-server)](https://smithery.ai/server/@devrev/mcp-server)

## Overview

Expand Down
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/build/project-config

startCommand:
type: stdio
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({ command: 'devrev-mcp', args: [], env: { DEVREV_API_KEY: config.devrevApiKey } })
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- devrevApiKey
properties:
devrevApiKey:
type: string
description: DevRev API key for authentication
exampleConfig:
devrevApiKey: YOUR_DEVREV_API_KEY