@arikusi/deepseek-mcp-server 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +142 -79
- package/LICENSE +21 -21
- package/README.md +469 -354
- package/dist/config.d.ts +42 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +63 -0
- package/dist/config.js.map +1 -0
- package/dist/cost.d.ts +24 -0
- package/dist/cost.d.ts.map +1 -0
- package/dist/cost.js +34 -0
- package/dist/cost.js.map +1 -0
- package/dist/deepseek-client.d.ts +2 -3
- package/dist/deepseek-client.d.ts.map +1 -1
- package/dist/deepseek-client.js +72 -13
- package/dist/deepseek-client.js.map +1 -1
- package/dist/index.js +517 -38
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +258 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +56 -0
- package/dist/schemas.js.map +1 -0
- package/dist/types.d.ts +57 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +69 -63
package/CHANGELOG.md
CHANGED
|
@@ -1,79 +1,142 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
### Added
|
|
11
|
-
- Nothing yet
|
|
12
|
-
|
|
13
|
-
### Changed
|
|
14
|
-
- Nothing yet
|
|
15
|
-
|
|
16
|
-
### Fixed
|
|
17
|
-
- Nothing yet
|
|
18
|
-
|
|
19
|
-
## [1.
|
|
20
|
-
|
|
21
|
-
### Added
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
[1.0.0]
|
|
79
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Nothing yet
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- Nothing yet
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Nothing yet
|
|
18
|
+
|
|
19
|
+
## [1.1.0] - 2026-02-10
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- **Function Calling Support**: Full OpenAI-compatible function calling via `tools` and `tool_choice` parameters
|
|
23
|
+
- Define up to 128 tool definitions with JSON Schema parameters
|
|
24
|
+
- Control tool behavior with `tool_choice`: auto, none, required, or specific function
|
|
25
|
+
- Tool call results formatted in response with call IDs and arguments
|
|
26
|
+
- Streaming + function calling works together (delta accumulation)
|
|
27
|
+
- `tool` message role for sending tool results back
|
|
28
|
+
- **Centralized Config System** (`src/config.ts`)
|
|
29
|
+
- Zod-validated configuration from environment variables
|
|
30
|
+
- `DEEPSEEK_BASE_URL`: Custom API endpoint (default: `https://api.deepseek.com`)
|
|
31
|
+
- `SHOW_COST_INFO`: Toggle cost display in responses (default: true)
|
|
32
|
+
- `REQUEST_TIMEOUT`: API request timeout in ms (default: 60000)
|
|
33
|
+
- `MAX_RETRIES`: Maximum API retry count (default: 2)
|
|
34
|
+
- **Test Suite**: 85 tests with Vitest
|
|
35
|
+
- Config, Cost, Schemas, Client, and Function Calling tests
|
|
36
|
+
- 80%+ code coverage with v8 provider
|
|
37
|
+
- `npm test`, `npm run test:watch`, `npm run test:coverage` scripts
|
|
38
|
+
- **2 New Prompt Templates** (total: 12)
|
|
39
|
+
- `function_call_debug`: Debug function calling issues
|
|
40
|
+
- `create_function_schema`: Generate JSON Schema from natural language
|
|
41
|
+
- CI coverage job in GitHub Actions
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
- **Project Structure**: Modularized codebase
|
|
45
|
+
- `src/config.ts`: Centralized configuration
|
|
46
|
+
- `src/cost.ts`: Cost calculation (extracted from index.ts)
|
|
47
|
+
- `src/schemas.ts`: Zod validation schemas (extracted from index.ts)
|
|
48
|
+
- `DeepSeekClient` constructor now uses centralized config (no manual apiKey passing)
|
|
49
|
+
- Server version bumped to 1.1.0
|
|
50
|
+
- Updated `deepseek_chat` tool description to mention function calling
|
|
51
|
+
|
|
52
|
+
## [1.0.3] - 2025-02-07
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
- Cost tracking for API requests
|
|
56
|
+
- Automatic cost calculation based on token usage
|
|
57
|
+
- USD cost included in response output
|
|
58
|
+
- Cost data available in `structuredContent.cost_usd`
|
|
59
|
+
- 10 MCP prompt templates for common reasoning tasks
|
|
60
|
+
- `debug_with_reasoning`: Debug code with step-by-step analysis
|
|
61
|
+
- `code_review_deep`: Comprehensive code review
|
|
62
|
+
- `research_synthesis`: Research and synthesize information
|
|
63
|
+
- `strategic_planning`: Create strategic plans with reasoning
|
|
64
|
+
- `explain_like_im_five`: Explain complex topics simply
|
|
65
|
+
- `mathematical_proof`: Prove mathematical statements
|
|
66
|
+
- `argument_validation`: Analyze arguments for logical fallacies
|
|
67
|
+
- `creative_ideation`: Generate creative ideas with feasibility analysis
|
|
68
|
+
- `cost_comparison`: Compare LLM costs
|
|
69
|
+
- `pair_programming`: Interactive coding assistant
|
|
70
|
+
- Enhanced response format with request information section
|
|
71
|
+
- Token breakdown (prompt + completion)
|
|
72
|
+
- Model name
|
|
73
|
+
- Cost in USD
|
|
74
|
+
|
|
75
|
+
### Changed
|
|
76
|
+
- Updated DeepSeek Reasoner pricing to current rates ($0.55/$2.19 per 1M tokens)
|
|
77
|
+
|
|
78
|
+
## [1.0.0] - 2025-01-13
|
|
79
|
+
|
|
80
|
+
### Added
|
|
81
|
+
- Initial release of DeepSeek MCP Server
|
|
82
|
+
- Support for `deepseek-chat` model
|
|
83
|
+
- Support for `deepseek-reasoner` (R1) model with reasoning traces
|
|
84
|
+
- Streaming mode support
|
|
85
|
+
- Full TypeScript implementation with type safety
|
|
86
|
+
- OpenAI-compatible API client
|
|
87
|
+
- Comprehensive error handling
|
|
88
|
+
- MCP protocol compliance via stdio transport
|
|
89
|
+
- Tool: `deepseek_chat` for chat completions
|
|
90
|
+
- Environment variable configuration for API key
|
|
91
|
+
- Detailed documentation and examples
|
|
92
|
+
- MIT License
|
|
93
|
+
|
|
94
|
+
### Features
|
|
95
|
+
- **Models**:
|
|
96
|
+
- deepseek-chat: Fast general-purpose model
|
|
97
|
+
- deepseek-reasoner: Advanced reasoning with chain-of-thought
|
|
98
|
+
- **Parameters**:
|
|
99
|
+
- temperature: Control randomness (0-2)
|
|
100
|
+
- max_tokens: Limit response length
|
|
101
|
+
- stream: Enable streaming mode
|
|
102
|
+
- **Output**:
|
|
103
|
+
- Text content with formatting
|
|
104
|
+
- Reasoning traces for R1 model
|
|
105
|
+
- Token usage statistics
|
|
106
|
+
- Structured response data
|
|
107
|
+
|
|
108
|
+
### Technical
|
|
109
|
+
- Built with @modelcontextprotocol/sdk v1.0.4
|
|
110
|
+
- Uses OpenAI SDK v4.77.3 for API compatibility
|
|
111
|
+
- Zod v3.24.1 for schema validation
|
|
112
|
+
- TypeScript v5.7.3
|
|
113
|
+
- Node.js 18+ required
|
|
114
|
+
- Stdio-based transport for process communication
|
|
115
|
+
|
|
116
|
+
## [0.1.0] - Development
|
|
117
|
+
|
|
118
|
+
### Added
|
|
119
|
+
- Initial project setup
|
|
120
|
+
- Basic MCP server structure
|
|
121
|
+
- DeepSeek API integration prototype
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Version History
|
|
126
|
+
|
|
127
|
+
- **1.1.0** (2026-02-10): Function calling, config system, test suite
|
|
128
|
+
- **1.0.3** (2025-02-07): Cost tracking and prompt templates
|
|
129
|
+
- **1.0.0** (2025-01-13): Initial public release
|
|
130
|
+
- **0.1.0** (Development): Internal development version
|
|
131
|
+
|
|
132
|
+
## Links
|
|
133
|
+
|
|
134
|
+
- [npm package](https://www.npmjs.com/package/@arikusi/deepseek-mcp-server)
|
|
135
|
+
- [GitHub repository](https://github.com/arikusi/deepseek-mcp-server)
|
|
136
|
+
- [Issue tracker](https://github.com/arikusi/deepseek-mcp-server/issues)
|
|
137
|
+
|
|
138
|
+
[Unreleased]: https://github.com/arikusi/deepseek-mcp-server/compare/v1.1.0...HEAD
|
|
139
|
+
[1.1.0]: https://github.com/arikusi/deepseek-mcp-server/compare/v1.0.3...v1.1.0
|
|
140
|
+
[1.0.3]: https://github.com/arikusi/deepseek-mcp-server/releases/tag/v1.0.3
|
|
141
|
+
[1.0.0]: https://github.com/arikusi/deepseek-mcp-server/releases/tag/v1.0.0
|
|
142
|
+
[0.1.0]: https://github.com/arikusi/deepseek-mcp-server/releases/tag/v0.1.0
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 DeepSeek MCP Server Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 DeepSeek MCP Server Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|