Skip to content

Deployment: Dockerfile and Smithery config #2

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/config#dockerfile
FROM node:lts-alpine

WORKDIR /app

# Install dependencies without running prepare scripts to avoid double build
COPY package.json pnpm-lock.yaml ./
RUN npm install --ignore-scripts

# Copy source
COPY . .

# Build the project
RUN npm run build

# Expose stdio entrypoint
ENTRYPOINT ["node", "build/index.js"]
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<img alt="MCP" src="./images/mcp-light.png" height="30pt">
</h1>

[![smithery badge](https://smithery.ai/badge/@jimpick/mcp-json-db-collection-server)](https://smithery.ai/server/@jimpick/mcp-json-db-collection-server)

This is an example of how to use a [Fireproof](https://fireproof.storage/) database in a [Model Context Protocol](https://github.com/modelcontextprotocol) server (used for plugging code and data into A.I. systems such as [Claude Desktop](https://claude.ai/download)).

This server:
Expand All @@ -18,6 +20,14 @@ Prior art: This is based on https://github.com/fireproof-storage/mcp-database-se

## Running the Server

### Installing via Smithery

To install JSON Document Collection Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@jimpick/mcp-json-db-collection-server):

```bash
npx -y @smithery/cli install @jimpick/mcp-json-db-collection-server --client claude
```

First, build it:

```
Expand Down Expand Up @@ -341,4 +351,3 @@ pnpm run inspector
# License

MIT or Apache 2

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

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
description: Empty config
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({ command: 'node', args: ['build/index.js'] })
exampleConfig: {}