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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ An MCP (Model Context Protocol) server that provides access to Rust documentatio

## Installation

This project uses Bun for development, but the built server can run with Node.js.
This project uses npm for dependency management and TypeScript compilation.

```bash
# Clone the repository
git clone https://github.com/yourusername/rust-docs-mcp-server.git
cd rust-docs-mcp-server

# Install dependencies
bun install
npm install
```

## Building

```bash
# Build the server
bun run build
npm run build
```

This will create a build directory with the compiled JavaScript files.
Expand All @@ -38,10 +38,10 @@ This will create a build directory with the compiled JavaScript files.

```bash
# Run the development server
bun run dev
npm run dev

# Or run the built server
bun run start
npm run start
```

## Usage with MCP Clients
Expand All @@ -64,7 +64,7 @@ The server provides the following tools:

```bash
# Run tests
bun test
npm test
```

## License
Expand Down
327 changes: 0 additions & 327 deletions bun.lock

This file was deleted.

23 changes: 23 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
rootDir: '.',
testMatch: ['<rootDir>/src/**/*.test.ts'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.test.ts',
'!src/**/*.d.ts',
],
coverageDirectory: 'coverage',
moduleFileExtensions: ['ts', 'js'],
transform: {
'^.+\\.ts$': ['ts-jest', {
tsconfig: 'tsconfig.test.json'
}],
},
testTimeout: 15000,
testPathIgnorePatterns: ['/node_modules/', '/build/'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
};
Loading