Skip to content

Commit eedc0c8

Browse files
authored
Merge pull request #1 from doggybee/smithery/config-8z2g
Deployment: Dockerfile and Smithery config
2 parents 8d3679c + 905143f commit eedc0c8

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
FROM node:lts-alpine
3+
4+
# Create app directory
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock.json
8+
COPY package*.json ./
9+
10+
# Install dependencies
11+
RUN npm install --ignore-scripts
12+
13+
# Copy the rest of the files
14+
COPY . .
15+
16+
# Build the project
17+
RUN npm run build
18+
19+
# Expose port if needed (optional)
20+
# EXPOSE 3000
21+
22+
# Start the MCP server
23+
CMD [ "node", "dist/index.js" ]

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![npm version](https://img.shields.io/npm/v/@mcpfun/mcp-server-leetcode.svg)](https://www.npmjs.com/package/@mcpfun/mcp-server-leetcode)
44
[![GitHub license](https://img.shields.io/github/license/doggybee/mcp-server-leetcode.svg)](https://github.com/doggybee/mcp-server-leetcode/blob/main/LICENSE)
55
[![Version](https://img.shields.io/badge/version-1.0.1-blue.svg)](https://github.com/doggybee/mcp-server-leetcode/releases)
6+
[![smithery badge](https://smithery.ai/badge/@doggybee/mcp-server-leetcode)](https://smithery.ai/server/@doggybee/mcp-server-leetcode)
67

78
A Model Context Protocol (MCP) server for LeetCode that enables AI assistants to access LeetCode problems, user information, and contest data.
89

@@ -16,6 +17,14 @@ A Model Context Protocol (MCP) server for LeetCode that enables AI assistants to
1617

1718
## Installation
1819

20+
### Installing via Smithery
21+
22+
To install mcp-server-leetcode for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@doggybee/mcp-server-leetcode):
23+
24+
```bash
25+
npx -y @smithery/cli install @doggybee/mcp-server-leetcode --client claude
26+
```
27+
1928
### Global Installation
2029

2130
```bash

smithery.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
{}
8+
commandFunction:
9+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
10+
|-
11+
(config) => ({ command: 'node', args: ['dist/index.js'] })
12+
exampleConfig: {}

0 commit comments

Comments
 (0)