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
37 changes: 37 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Start from the official Python image with uv pre-installed
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv

# Set the working directory
WORKDIR /app

# Copy the project descriptor files
COPY pyproject.toml /app
COPY uv.lock /app

# Sync dependencies and set up the virtual environment
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-install-project --no-dev --no-editable

# Add the project source code
ADD . /app

# Install the project
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-dev --no-editable

# Create the final runtime image
FROM python:3.12-slim-bookworm

# Set the working directory
WORKDIR /app

# Copy the installed application from the builder stage
COPY --from=uv /root/.local /root/.local
COPY --from=uv --chown=app:app /app/.venv /app/.venv

# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"

# Define the entrypoint for the Docker container
ENTRYPOINT ["uv", "run", "brev-mcp"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Brev MCP server
[![smithery badge](https://smithery.ai/badge/@brevdev/brev-mcp)](https://smithery.ai/server/@brevdev/brev-mcp)

This is a MCP server implementation for Brev.

Expand Down Expand Up @@ -47,6 +48,14 @@ Add the following to your `claude_desktop_config.json`:
```
</details>

### Installing via Smithery

To install Brev MCP server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@brevdev/brev-mcp):

```bash
npx -y @smithery/cli install @brevdev/brev-mcp --client claude
```

## Development

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

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- repoPath
properties:
repoPath:
type: string
description: The local path to the cloned brev-mcp repository.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
config => ({command: 'uv', args: ['--directory', config.repoPath, 'run', 'brev-mcp']})