Skip to content

Commit 83f4112

Browse files
authored
Merge pull request #1 from novitalabs/smithery/config-uqsm
Deployment: Dockerfile and Smithery config
2 parents 25be57b + 18dc954 commit 83f4112

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
2+
FROM node:lts-alpine
3+
4+
WORKDIR /app
5+
6+
# Copy package and typescript config
7+
COPY package.json tsconfig.json ./
8+
9+
# Install dependencies without running prepare/build
10+
RUN npm install --ignore-scripts
11+
12+
# Copy source files
13+
COPY src ./src
14+
15+
# Build and prune dev dependencies
16+
RUN npm run build && npm prune --production
17+
18+
# Default command to start the MCP server
19+
CMD ["node", "dist/index.js"]

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Novita MCP Server
2+
[![smithery badge](https://smithery.ai/badge/@novitalabs/novita-mcp-server)](https://smithery.ai/server/@novitalabs/novita-mcp-server)
23

34
`novita-mcp-server` is a Model Context Protocol (MCP) server that provides seamless interaction with Novita AI platform resources. We recommend accessing this server through [Claude Desktop](https://claude.ai/download), [Cursor](https://www.cursor.com/), or any other compatible MCP client.
45

@@ -20,6 +21,15 @@ Supported operations are as follows:
2021

2122
You can install the package using either npm, mcp-get, or Smithery:
2223

24+
### Installing via Smithery
25+
26+
To install novita-mcp-server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@novitalabs/novita-mcp-server):
27+
28+
```bash
29+
npx -y @smithery/cli install @novitalabs/novita-mcp-server --client claude
30+
```
31+
32+
### Installing Manually
2333
Using npm:
2434
```bash
2535
npm install -g @novitalabs/novita-mcp-server

smithery.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Smithery configuration file: https://smithery.ai/docs/build/project-config
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- novitaApiKey
10+
properties:
11+
novitaApiKey:
12+
type: string
13+
description: Novita API key for authentication
14+
commandFunction:
15+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
16+
|-
17+
(config) => ({ command: 'node', args: ['dist/index.js'], env: { NOVITA_API_KEY: config.novitaApiKey } })
18+
exampleConfig:
19+
novitaApiKey: your_api_key_here

0 commit comments

Comments
 (0)