You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
DVMCP is a bun monorepo. Each package has its own directory and can be installed and run independently. To execute commands for all packages, run them from the root directory
3
+
4
+
## Build/Test Commands
5
+
6
+
- **Install**: `bun install`
7
+
- **Run**: `bun start` (specific package)
8
+
- **Typecheck**: `bun typecheck` (run in root directory)
9
+
- **Test**: `bun test` (runs all tests)
10
+
- **Single test**: `bun test path/to/file.test.ts` (specific test file)
11
+
12
+
## Code Style
13
+
14
+
- **Runtime**: Bun with TypeScript ESM modules
15
+
- **Imports**: Use relative imports for local modules, named imports preferred
16
+
- **Types**: Zod schemas for validation, TypeScript interfaces for structure
17
+
- **Naming**: camelCase for variables/functions, PascalCase for classes/namespaces
18
+
- **Error handling**: Use Result patterns, avoid throwing exceptions in tools
- Try to keep things in one function unless composable or reusable
24
+
- DO NOT do unnecessary destructuring of variables
25
+
- DO NOT use `else` statements unless necessary
26
+
- DO NOT use `try`/`catch` if it can be avoided
27
+
- AVOID `try`/`catch` where possible
28
+
- AVOID `else` statements
29
+
- AVOID using `any` type
30
+
- AVOID `let` statements
31
+
- PREFER single word variable names where possible
32
+
- If necessary, for external libraries like `modelcontextprotocol/sdk` or questions about the Bun runtime, use context7 to access up-to-date, version-specific documentation and code examples directly from the source.
33
+
- Constants such as kind numbers, MCP methods, and other relevant constants are defined in the constants.ts file within the commons/core package. Use these when available, and only create new constants if necessary.
34
+
- If necessary, for understanding the DVMCP specification refer to the specification at docs/dvmcp-spec-2025-03-26.md
0 commit comments