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

# Set the working directory in the container
WORKDIR /app

# Copy the package files and install the dependencies
COPY package.json package-lock.json ./
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the TypeScript code
RUN npm run build

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

# Set the working directory in the container
WORKDIR /app

# Copy built files and node_modules from the builder
COPY --from=builder /app/build /app/build
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/package.json /app/package.json

# Expose any ports the app is expected to listen on
# EXPOSE <port_number>

# Set environment variables (if any)
ENV COSENSE_PROJECT_NAME=your_project_name
# ENV COSENSE_SID=your_sid

# Run the server
ENTRYPOINT ["node", "build/index.js"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Cosense MCP Server
[![smithery badge](https://smithery.ai/badge/@yosider/cosense-mcp-server)](https://smithery.ai/server/@yosider/cosense-mcp-server)

MCP server for [Cosense](https://cosen.se)
Forked from [funwarioisii/cosense-mcp-server](https://github.com/funwarioisii/cosense-mcp-server)
Expand All @@ -9,6 +10,15 @@ Forked from [funwarioisii/cosense-mcp-server](https://github.com/funwarioisii/co

## Installation

### Installing via Smithery

To install Cosense for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@yosider/cosense-mcp-server):

```bash
npx -y @smithery/cli install @yosider/cosense-mcp-server --client claude
```

### Manual Installation
```bash
git clone https://github.com/funwarioisii/cosense-mcp-server.git
cd cosense-mcp-server
Expand Down
21 changes: 21 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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:
- cosenseProjectName
properties:
cosenseProjectName:
type: string
description: The project name for the COSENSE server.
cosenseSid:
type: string
default: ""
description: The SID for a private COSENSE project.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({command: 'node', args: ['build/index.js'], env: {COSENSE_PROJECT_NAME: config.cosenseProjectName, COSENSE_SID: config.cosenseSid}})