Skip to content

Commit 5f79d04

Browse files
docker compose
1 parent 1d83a5d commit 5f79d04

File tree

18 files changed

+123
-8044
lines changed

18 files changed

+123
-8044
lines changed

.DS_Store

6 KB
Binary file not shown.

.cursor/mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"mcpServers": {
33
"appwrite-docs-mcp": {
44
"transport": "http",
5-
"url": "http://localhost:1234/mcp"
5+
"url": "http://localhost:1234"
66
}
77
}
88
}

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
.env
3+
dist
4+
.git
5+
.gitignore
6+
**/*.node_modules
7+
Dockerfile
8+
docker-compose.yml

.env.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
OPENAI_API_KEY=
2-
DATABASE_URL=
1+
OPENAI_API_KEY=

.github/workflows/ci.yml

Whitespace-only changes.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ dist
66
.env
77
*.db
88
*.db-*
9-
content
9+
content
10+
tmp
11+
local_cache

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM node:22-slim
2+
3+
RUN apt-get update -y && apt-get install -y openssl
4+
RUN npm install -g bun
5+
6+
WORKDIR /app
7+
8+
ADD ./package.json /app/package.json
9+
ADD ./bun.lock /app/bun.lock
10+
11+
RUN bun install --frozen-lockfile
12+
13+
ADD ./ /app/
14+
15+
RUN bun run build
16+
17+
# Copy raw content
18+
COPY ./content /app/content
19+
# Copy vector store .db file
20+
COPY ./tmp/vector-store.db /app/tmp/vector-store.db
21+
22+
EXPOSE 1234
23+
24+
CMD ["node", "dist/index.js"]

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ There are three processes involved in setting up the MCP server, to ensure we ha
2424

2525
Simply run the following command to initialize the MCP server:
2626
```bash
27-
bun run init
27+
bun run prepare
2828
```
2929

3030
### Starting the MCP server
@@ -38,7 +38,15 @@ Then, start the MCP server:
3838
bun run start
3939
```
4040

41-
The server should, by default, be available at `http://localhost:1234/mcp`.
41+
The server should, by default, be available at `http://localhost:1234`.
42+
43+
## Setting up with Docker
44+
Run the following command to build the Docker image:
45+
```bash
46+
bun run init
47+
docker compose build
48+
docker compose up
49+
```
4250

4351
### Inspecting using the official MCP Inspector
4452
Simply run the following command to inspect the MCP server:
@@ -62,7 +70,7 @@ Here is a sample configuration file:
6270
"mcpServers": {
6371
"appwrite-docs-mcp": {
6472
"transport": "http",
65-
"url": "http://localhost:1234/mcp"
73+
"url": "http://localhost:1234"
6674
}
6775
}
6876
}

bun.lock

Lines changed: 6 additions & 61 deletions
Large diffs are not rendered by default.

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
mcp-for-docs:
3+
image: appwrite/mcp-for-docs
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
ports:
8+
- 1234:1234
9+
env_file:
10+
- .env

0 commit comments

Comments
 (0)