Skip to content

Commit c3d23aa

Browse files
Merge pull request #6 from smithery-ai/smithery/config-wskc
Deployment: Dockerfile and Smithery config
2 parents 1f6f06c + e35df43 commit c3d23aa

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
# Use Node.js LTS version as the base image
3+
FROM node:18-alpine AS builder
4+
5+
# Set the working directory
6+
WORKDIR /app
7+
8+
# Copy package.json and package-lock.json to the working directory
9+
COPY package.json package-lock.json ./
10+
11+
# Install dependencies
12+
RUN npm install
13+
14+
# Copy the rest of the application code to the working directory
15+
COPY . .
16+
17+
# Build the TypeScript files
18+
RUN npm run build
19+
20+
# Use a clean Node.js image for the production environment
21+
FROM node:18-alpine AS release
22+
23+
# Set the working directory
24+
WORKDIR /app
25+
26+
# Copy built files and node_modules from the builder stage
27+
COPY --from=builder /app/build ./build
28+
COPY --from=builder /app/node_modules ./node_modules
29+
COPY --from=builder /app/package.json ./
30+
31+
# Set environment variables (replace YOUR_API_KEY_HERE with the actual key)
32+
ENV PERPLEXITY_API_KEY=YOUR_API_KEY_HERE
33+
34+
# Expose the port the app runs on
35+
EXPOSE 3000
36+
37+
# Command to run the application
38+
ENTRYPOINT ["node", "build/index.js"]

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ We got an article about perpelxity mcp!
22
https://cline.bot/blog/supercharge-cline-3-ways-to-build-better-with-perplexity-mcp
33

44
# MCP-researcher Server
5+
[![smithery badge](https://smithery.ai/badge/@DaInfernalCoder/perplexity-mcp)](https://smithery.ai/server/@DaInfernalCoder/perplexity-mcp)
56

67
Your own research assistant inside of Cline! Utilizes Perplexity's new Sonar Pro API to get docs, create up-to-date api routes, and check deprecated code while you create features with Cline.
78

@@ -26,6 +27,14 @@ Analyzes code for deprecated features or patterns, providing migration guidance.
2627

2728
## Installation
2829

30+
### Installing via Smithery
31+
32+
To install MCP-researcher Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@DaInfernalCoder/perplexity-mcp):
33+
34+
```bash
35+
npx -y @smithery/cli install @DaInfernalCoder/perplexity-mcp --client claude
36+
```
37+
2938
### paste this part into claude directly if you want to, the ai can install it for you
3039

3140
1. First install Node.js if not already installed (from nodejs.org)

smithery.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
type: object
8+
required:
9+
- perplexityApiKey
10+
properties:
11+
perplexityApiKey:
12+
type: string
13+
description: The API key for the Perplexity API.
14+
commandFunction:
15+
# A function that produces the CLI command to start the MCP on stdio.
16+
|-
17+
(config) => ({ command: 'node', args: ['build/index.js'], env: { PERPLEXITY_API_KEY: config.perplexityApiKey } })

0 commit comments

Comments
 (0)