Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit e14c6e9

Browse files
committed
Initial project setup with TypeScript and pnpm
1 parent 83cf975 commit e14c6e9

File tree

6 files changed

+317
-0
lines changed

6 files changed

+317
-0
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Dependencies
2+
node_modules/
3+
.pnpm-store/
4+
5+
# Build output
6+
dist/
7+
8+
# IDE and editor files
9+
.vscode/
10+
.idea/
11+
*.swp
12+
*.swo
13+
14+
# Logs
15+
*.log
16+
npm-debug.log*
17+
pnpm-debug.log*
18+
19+
# Environment variables
20+
.env
21+
.env.local
22+
.env.*.local
23+
24+
# OS files
25+
.DS_Store
26+
Thumbs.db

README.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# DeepSource MCP Server
2+
3+
A TypeScript-based server implementation for DeepSource MCP (Mission Control Panel).
4+
5+
## Prerequisites
6+
7+
- Node.js (v16 or higher recommended)
8+
- pnpm (v10.7.0 or higher)
9+
10+
## Installation
11+
12+
1. Clone the repository:
13+
```bash
14+
git clone https://github.com/yourusername/deepsource-mcp-server.git
15+
cd deepsource-mcp-server
16+
```
17+
18+
2. Install dependencies:
19+
```bash
20+
pnpm install
21+
```
22+
23+
## Development
24+
25+
To start the development server with hot-reload:
26+
27+
```bash
28+
pnpm run dev
29+
```
30+
31+
To watch for changes and automatically recompile:
32+
33+
```bash
34+
pnpm run watch
35+
```
36+
37+
## Building
38+
39+
To build the project:
40+
41+
```bash
42+
pnpm run build
43+
```
44+
45+
This will create a `dist` directory with the compiled JavaScript files.
46+
47+
## Running in Production
48+
49+
To run the compiled version:
50+
51+
```bash
52+
pnpm run start
53+
```
54+
55+
## Project Structure
56+
57+
```
58+
deepsource-mcp-server/
59+
├── src/ # Source files
60+
├── dist/ # Compiled files (generated)
61+
├── node_modules/ # Dependencies
62+
├── package.json # Project configuration
63+
├── tsconfig.json # TypeScript configuration
64+
└── README.md # This file
65+
```
66+
67+
## Scripts
68+
69+
- `pnpm run dev` - Run the TypeScript code directly using ts-node
70+
- `pnpm run build` - Compile TypeScript to JavaScript
71+
- `pnpm run start` - Run the compiled JavaScript
72+
- `pnpm run watch` - Watch for changes and recompile automatically
73+
74+
## License
75+
76+
ISC

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "deepsource-mcp-server",
3+
"version": "1.0.0",
4+
"description": "DeepSource MCP Server",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"scripts": {
8+
"build": "tsc",
9+
"start": "node dist/index.js",
10+
"dev": "ts-node src/index.ts",
11+
"watch": "tsc -w",
12+
"test": "echo \"Error: no test specified\" && exit 1"
13+
},
14+
"keywords": [],
15+
"author": "",
16+
"license": "ISC",
17+
"packageManager": "pnpm@10.7.0",
18+
"devDependencies": {
19+
"@types/node": "^22.13.14",
20+
"ts-node": "^10.9.2",
21+
"typescript": "^5.8.2"
22+
}
23+
}

pnpm-lock.yaml

Lines changed: 168 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function greet(name: string): string {
2+
return `Hello, ${name}!`;
3+
}
4+
5+
console.log(greet('TypeScript'));

tsconfig.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"module": "commonjs",
5+
"lib": ["ES2022"],
6+
"strict": true,
7+
"esModuleInterop": true,
8+
"skipLibCheck": true,
9+
"forceConsistentCasingInFileNames": true,
10+
"outDir": "./dist",
11+
"rootDir": "./src",
12+
"declaration": true,
13+
"resolveJsonModule": true,
14+
"moduleResolution": "node",
15+
"sourceMap": true
16+
},
17+
"include": ["src/**/*"],
18+
"exclude": ["node_modules", "dist"]
19+
}

0 commit comments

Comments
 (0)