Commit b68c234
authored
feat(stdio): add standalone stdio entry point for Claude Desktop (#7)
* feat(smithery): add Smithery compatibility and npm publishing setup
- Refactor src/index.ts to use Smithery-compatible McpServer format with configSchema
- Add zod dependency for configuration validation
- Create smithery.yaml for TypeScript runtime deployment
- Add .npmignore to exclude development files from npm package
- Update package.json with repository metadata and enhanced keywords
- Maintain all 13 Namecheap API tools with proper Zod schemas
- Ready for both npm publish and Smithery deployment
* chore(deps): update dependencies to fix security vulnerabilities
Fixes the following vulnerabilities:
- axios: DoS attack (high) - updated to 1.13.4
- form-data: unsafe random function (critical) - updated to 4.0.5
- js-yaml: prototype pollution (moderate) - updated to 4.1.1
- qs: memory exhaustion DoS (high) - updated to 6.14.1
- @eslint/plugin-kit: ReDoS (low) - updated to 0.3.5
- body-parser: DoS (moderate) - updated to 2.2.2
Note: @modelcontextprotocol/sdk vulnerability (high) remains unfixed.
The SDK update to 1.25.3 introduces breaking TypeScript type changes
that require code modifications to resolve. This should be addressed
in a separate PR with proper type fixes.
* feat(stdio): add standalone stdio entry point for Claude Desktop
index.ts exports a Smithery factory function that never starts a server.
Claude Desktop needs a process that connects stdio transport and stays
alive. Add src/stdio.ts as the standalone entry point and update start
script to use it.
* fix(lint): remove unnecessary @ts-nocheck from stdio.ts1 parent 120f95e commit b68c234
2 files changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments