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

# Set the working directory in the container
WORKDIR /app

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

# Install the dependencies
RUN npm install

# Copy the rest of the application code into the container
COPY . .

# Build the TypeScript application
RUN npm run build

# Use a smaller Node.js runtime image for the final build
FROM node:20-alpine

# Set the working directory
WORKDIR /app

# Copy the compiled JavaScript files and package.json
COPY --from=builder /app/build /app/build
COPY --from=builder /app/package*.json /app/

# Install only production dependencies
RUN npm install --omit=dev

# Set the command to run the application
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 @@
# mcp-server-fetch-typescript MCP Server

[![smithery badge](https://smithery.ai/badge/@tatn/mcp-server-fetch-typescript)](https://smithery.ai/server/@tatn/mcp-server-fetch-typescript)
A Model Context Protocol server that provides web content fetching and conversion capabilities. This server implements a comprehensive web content retrieval system with support for various formats and rendering methods, making it ideal for tasks ranging from simple data extraction to sophisticated web scraping.

<a href="https://glama.ai/mcp/servers/iyfpvfkgyx"><img width="380" height="200" src="https://glama.ai/mcp/servers/iyfpvfkgyx/badge" alt="Server Fetch TypeScript MCP server" /></a>
Expand Down Expand Up @@ -34,6 +35,14 @@ A Model Context Protocol server that provides web content fetching and conversio

## Installation

### Installing via Smithery

To install Fetch TypeScript Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@tatn/mcp-server-fetch-typescript):

```bash
npx -y @smithery/cli install @tatn/mcp-server-fetch-typescript --client claude
```

### As a Global Package

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

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