Skip to content

Deployment: Dockerfile and Smithery config #12

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
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use an official Node.js runtime as a parent image
FROM node:18-alpine AS builder

# Set the working directory
WORKDIR /app

# Copy the package.json and package-lock.json into the container
COPY package.json package-lock.json ./

# Install the dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the TypeScript code
RUN npm run build

# Use a lighter image for running the app
FROM node:18-alpine

# Set the working directory
WORKDIR /app

# Copy the built application code from the builder stage
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/node_modules ./node_modules

# Set environment variable for Apify API Token
ENV APIFY_API_TOKEN=your-apify-api-token

# Specify the command to run the app
ENTRYPOINT ["node", "build/index.js"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Model Context Protocol (MCP) Server for the RAG Web Browser Actor 🌐

[![smithery badge](https://smithery.ai/badge/mcp-server-rag-web-browser)](https://smithery.ai/server/mcp-server-rag-web-browser)
Implementation of an MCP server for the [RAG Web Browser Actor](https://apify.com/apify/rag-web-browser).
This Actor serves as a web browser for large language models (LLMs) and RAG pipelines, similar to a web search in ChatGPT.

Expand Down Expand Up @@ -47,6 +48,14 @@ The server does not provide any resources and prompts.

### Install

#### Installing via Smithery

To install the MCP Server for the RAG Web Browser Actor for Claude Desktop automatically via [Smithery](https://smithery.ai/server/mcp-server-rag-web-browser):

```bash
npx -y @smithery/cli install mcp-server-rag-web-browser --client claude
```

Follow the steps below to set up and run the server on your local machine:
First, clone the repository using the following command:

Expand Down
18 changes: 18 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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:
- apifyApiToken
properties:
apifyApiToken:
type: string
description: The API token for the Apify service, required to access RAG Web
Browser Actor functionality.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({ command: 'node', args: ['build/index.js'], env: { APIFY_API_TOKEN: config.apifyApiToken } })