@arikusi/deepseek-mcp-server 1.0.1 ā 1.0.3
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 +107 -79
- package/LICENSE +21 -21
- package/README.md +381 -354
- package/dist/index.js +372 -4
- package/dist/index.js.map +1 -1
- package/package.json +63 -63
package/dist/index.js
CHANGED
|
@@ -25,6 +25,35 @@ const server = new McpServer({
|
|
|
25
25
|
name: 'deepseek-mcp-server',
|
|
26
26
|
version: '1.0.0',
|
|
27
27
|
});
|
|
28
|
+
/**
|
|
29
|
+
* Calculate cost for a request based on token usage
|
|
30
|
+
*/
|
|
31
|
+
function calculateCost(promptTokens, completionTokens, model) {
|
|
32
|
+
// DeepSeek pricing (per 1M tokens)
|
|
33
|
+
const pricing = {
|
|
34
|
+
'deepseek-chat': {
|
|
35
|
+
prompt: 0.14, // $0.14 per 1M tokens
|
|
36
|
+
completion: 0.28, // $0.28 per 1M tokens
|
|
37
|
+
},
|
|
38
|
+
'deepseek-reasoner': {
|
|
39
|
+
prompt: 0.55, // $0.55 per 1M tokens (updated pricing)
|
|
40
|
+
completion: 2.19, // $2.19 per 1M tokens (updated pricing)
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
const modelPricing = pricing[model] || pricing['deepseek-chat'];
|
|
44
|
+
const promptCost = (promptTokens / 1_000_000) * modelPricing.prompt;
|
|
45
|
+
const completionCost = (completionTokens / 1_000_000) * modelPricing.completion;
|
|
46
|
+
return promptCost + completionCost;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Format cost as readable string
|
|
50
|
+
*/
|
|
51
|
+
function formatCost(cost) {
|
|
52
|
+
if (cost < 0.01) {
|
|
53
|
+
return `$${cost.toFixed(4)}`;
|
|
54
|
+
}
|
|
55
|
+
return `$${cost.toFixed(2)}`;
|
|
56
|
+
}
|
|
28
57
|
// Define Zod schemas for input validation
|
|
29
58
|
const MessageSchema = z.object({
|
|
30
59
|
role: z.enum(['system', 'user', 'assistant']),
|
|
@@ -106,9 +135,13 @@ server.registerTool('deepseek_chat', {
|
|
|
106
135
|
responseText += `<thinking>\n${response.reasoning_content}\n</thinking>\n\n`;
|
|
107
136
|
}
|
|
108
137
|
responseText += response.content;
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
|
|
138
|
+
// Calculate cost
|
|
139
|
+
const cost = calculateCost(response.usage.prompt_tokens, response.usage.completion_tokens, response.model);
|
|
140
|
+
// Add usage stats with cost information
|
|
141
|
+
responseText += `\n\n---\nš **Request Information:**\n`;
|
|
142
|
+
responseText += `- **Tokens:** ${response.usage.total_tokens} (${response.usage.prompt_tokens} prompt + ${response.usage.completion_tokens} completion)\n`;
|
|
143
|
+
responseText += `- **Model:** ${response.model}\n`;
|
|
144
|
+
responseText += `- **Cost:** ${formatCost(cost)}`;
|
|
112
145
|
return {
|
|
113
146
|
content: [
|
|
114
147
|
{
|
|
@@ -116,7 +149,10 @@ server.registerTool('deepseek_chat', {
|
|
|
116
149
|
text: responseText,
|
|
117
150
|
},
|
|
118
151
|
],
|
|
119
|
-
structuredContent:
|
|
152
|
+
structuredContent: {
|
|
153
|
+
...response,
|
|
154
|
+
cost_usd: parseFloat(cost.toFixed(6)),
|
|
155
|
+
},
|
|
120
156
|
};
|
|
121
157
|
}
|
|
122
158
|
catch (error) {
|
|
@@ -133,6 +169,337 @@ server.registerTool('deepseek_chat', {
|
|
|
133
169
|
};
|
|
134
170
|
}
|
|
135
171
|
});
|
|
172
|
+
/**
|
|
173
|
+
* Register MCP Prompts
|
|
174
|
+
* Pre-built prompt templates for common reasoning tasks
|
|
175
|
+
*/
|
|
176
|
+
// Core Reasoning Prompts
|
|
177
|
+
server.registerPrompt('debug_with_reasoning', {
|
|
178
|
+
title: 'Debug Code with Reasoning',
|
|
179
|
+
description: 'Debug code issues using DeepSeek R1 reasoning model with step-by-step analysis',
|
|
180
|
+
argsSchema: {
|
|
181
|
+
code: z.string().describe('Code to debug'),
|
|
182
|
+
error: z.string().optional().describe('Error message or description of the issue'),
|
|
183
|
+
language: z.string().optional().describe('Programming language'),
|
|
184
|
+
},
|
|
185
|
+
}, ({ code, error, language }, _extra) => ({
|
|
186
|
+
messages: [
|
|
187
|
+
{
|
|
188
|
+
role: 'user',
|
|
189
|
+
content: {
|
|
190
|
+
type: 'text',
|
|
191
|
+
text: `You are an expert debugging assistant. Analyze this code using deep reasoning.
|
|
192
|
+
|
|
193
|
+
${language ? `Language: ${language}` : ''}
|
|
194
|
+
${error ? `Error/Issue: ${error}` : ''}
|
|
195
|
+
|
|
196
|
+
Code:
|
|
197
|
+
\`\`\`
|
|
198
|
+
${code}
|
|
199
|
+
\`\`\`
|
|
200
|
+
|
|
201
|
+
Please:
|
|
202
|
+
1. Identify the bug or issue
|
|
203
|
+
2. Explain your reasoning process step-by-step
|
|
204
|
+
3. Suggest a fix with explanation
|
|
205
|
+
4. Provide the corrected code
|
|
206
|
+
|
|
207
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for detailed reasoning.`,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
}));
|
|
212
|
+
server.registerPrompt('code_review_deep', {
|
|
213
|
+
title: 'Deep Code Review',
|
|
214
|
+
description: 'Comprehensive code review analyzing quality, security, performance, and best practices',
|
|
215
|
+
argsSchema: {
|
|
216
|
+
code: z.string().describe('Code to review'),
|
|
217
|
+
language: z.string().optional().describe('Programming language'),
|
|
218
|
+
focus: z.enum(['security', 'performance', 'quality', 'all']).default('all').describe('Review focus area'),
|
|
219
|
+
},
|
|
220
|
+
}, ({ code, language, focus }, _extra) => ({
|
|
221
|
+
messages: [
|
|
222
|
+
{
|
|
223
|
+
role: 'user',
|
|
224
|
+
content: {
|
|
225
|
+
type: 'text',
|
|
226
|
+
text: `You are an expert code reviewer. Perform a comprehensive code review.
|
|
227
|
+
|
|
228
|
+
${language ? `Language: ${language}` : ''}
|
|
229
|
+
Focus: ${focus === 'all' ? 'Security, Performance, Code Quality, Best Practices' : focus}
|
|
230
|
+
|
|
231
|
+
Code:
|
|
232
|
+
\`\`\`
|
|
233
|
+
${code}
|
|
234
|
+
\`\`\`
|
|
235
|
+
|
|
236
|
+
For each issue found, provide:
|
|
237
|
+
1. **Issue**: What's wrong
|
|
238
|
+
2. **Reasoning**: Why it's a problem
|
|
239
|
+
3. **Severity**: Critical/High/Medium/Low
|
|
240
|
+
4. **Fix**: How to resolve it
|
|
241
|
+
|
|
242
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for thorough analysis.`,
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
}));
|
|
247
|
+
server.registerPrompt('research_synthesis', {
|
|
248
|
+
title: 'Research & Synthesis',
|
|
249
|
+
description: 'Research a topic and synthesize information into a structured report',
|
|
250
|
+
argsSchema: {
|
|
251
|
+
topic: z.string().describe('Topic to research'),
|
|
252
|
+
context: z.string().optional().describe('Additional context or specific questions'),
|
|
253
|
+
depth: z.enum(['brief', 'moderate', 'comprehensive']).default('moderate').describe('Research depth'),
|
|
254
|
+
},
|
|
255
|
+
}, ({ topic, context, depth }, _extra) => ({
|
|
256
|
+
messages: [
|
|
257
|
+
{
|
|
258
|
+
role: 'user',
|
|
259
|
+
content: {
|
|
260
|
+
type: 'text',
|
|
261
|
+
text: `You are a research assistant. Research and synthesize information about this topic.
|
|
262
|
+
|
|
263
|
+
Topic: ${topic}
|
|
264
|
+
${context ? `Context: ${context}` : ''}
|
|
265
|
+
Depth: ${depth}
|
|
266
|
+
|
|
267
|
+
Please provide:
|
|
268
|
+
1. **Overview**: Brief summary
|
|
269
|
+
2. **Key Findings**: Main points with reasoning
|
|
270
|
+
3. **Analysis**: Deep dive with reasoning process
|
|
271
|
+
4. **Conclusion**: Synthesis and implications
|
|
272
|
+
5. **Sources**: Cite reasoning steps
|
|
273
|
+
|
|
274
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for comprehensive analysis.`,
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
}));
|
|
279
|
+
server.registerPrompt('strategic_planning', {
|
|
280
|
+
title: 'Strategic Planning',
|
|
281
|
+
description: 'Analyze options and create strategic plans with reasoning for each decision',
|
|
282
|
+
argsSchema: {
|
|
283
|
+
goal: z.string().describe('Goal or objective'),
|
|
284
|
+
context: z.string().optional().describe('Situational context'),
|
|
285
|
+
constraints: z.string().optional().describe('Constraints or limitations'),
|
|
286
|
+
},
|
|
287
|
+
}, ({ goal, context, constraints }, _extra) => ({
|
|
288
|
+
messages: [
|
|
289
|
+
{
|
|
290
|
+
role: 'user',
|
|
291
|
+
content: {
|
|
292
|
+
type: 'text',
|
|
293
|
+
text: `You are a strategic planning expert. Create a detailed plan with reasoning.
|
|
294
|
+
|
|
295
|
+
Goal: ${goal}
|
|
296
|
+
${context ? `Context: ${context}` : ''}
|
|
297
|
+
${constraints ? `Constraints: ${constraints}` : ''}
|
|
298
|
+
|
|
299
|
+
Please provide:
|
|
300
|
+
1. **Situation Analysis**: Current state with reasoning
|
|
301
|
+
2. **Options**: List possible approaches
|
|
302
|
+
3. **Evaluation**: Pros/cons of each option with reasoning
|
|
303
|
+
4. **Recommendation**: Best approach with detailed reasoning
|
|
304
|
+
5. **Action Plan**: Step-by-step plan with rationale
|
|
305
|
+
|
|
306
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for thorough strategic thinking.`,
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
}));
|
|
311
|
+
server.registerPrompt('explain_like_im_five', {
|
|
312
|
+
title: 'Explain Like I\'m Five',
|
|
313
|
+
description: 'Explain complex topics in simple terms using analogies and reasoning',
|
|
314
|
+
argsSchema: {
|
|
315
|
+
topic: z.string().describe('Complex topic to explain'),
|
|
316
|
+
audience: z.enum(['child', 'beginner', 'intermediate']).default('beginner').describe('Target audience level'),
|
|
317
|
+
},
|
|
318
|
+
}, ({ topic, audience }, _extra) => ({
|
|
319
|
+
messages: [
|
|
320
|
+
{
|
|
321
|
+
role: 'user',
|
|
322
|
+
content: {
|
|
323
|
+
type: 'text',
|
|
324
|
+
text: `You are an expert explainer. Make complex topics simple and understandable.
|
|
325
|
+
|
|
326
|
+
Topic: ${topic}
|
|
327
|
+
Audience: ${audience}
|
|
328
|
+
|
|
329
|
+
Please:
|
|
330
|
+
1. Start with a simple analogy or metaphor
|
|
331
|
+
2. Break down the concept step-by-step
|
|
332
|
+
3. Use everyday examples
|
|
333
|
+
4. Show your reasoning for why this explanation works
|
|
334
|
+
5. Build up complexity gradually if needed
|
|
335
|
+
|
|
336
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" to ensure logical explanations.`,
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
}));
|
|
341
|
+
// Advanced Prompts
|
|
342
|
+
server.registerPrompt('mathematical_proof', {
|
|
343
|
+
title: 'Mathematical Proof',
|
|
344
|
+
description: 'Prove mathematical statements with rigorous step-by-step reasoning',
|
|
345
|
+
argsSchema: {
|
|
346
|
+
statement: z.string().describe('Mathematical statement to prove'),
|
|
347
|
+
context: z.string().optional().describe('Mathematical context or axioms'),
|
|
348
|
+
},
|
|
349
|
+
}, ({ statement, context }, _extra) => ({
|
|
350
|
+
messages: [
|
|
351
|
+
{
|
|
352
|
+
role: 'user',
|
|
353
|
+
content: {
|
|
354
|
+
type: 'text',
|
|
355
|
+
text: `You are a mathematician. Provide a rigorous proof.
|
|
356
|
+
|
|
357
|
+
Statement to prove: ${statement}
|
|
358
|
+
${context ? `Context/Axioms: ${context}` : ''}
|
|
359
|
+
|
|
360
|
+
Provide:
|
|
361
|
+
1. **Given**: What we know
|
|
362
|
+
2. **To Prove**: What we're proving
|
|
363
|
+
3. **Proof**: Step-by-step logical reasoning
|
|
364
|
+
4. **Conclusion**: QED statement
|
|
365
|
+
|
|
366
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for strict logical reasoning.`,
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
}));
|
|
371
|
+
server.registerPrompt('argument_validation', {
|
|
372
|
+
title: 'Argument Validation',
|
|
373
|
+
description: 'Analyze arguments for logical fallacies and reasoning errors',
|
|
374
|
+
argsSchema: {
|
|
375
|
+
argument: z.string().describe('Argument to validate'),
|
|
376
|
+
type: z.enum(['informal', 'formal', 'both']).default('informal').describe('Analysis type'),
|
|
377
|
+
},
|
|
378
|
+
}, ({ argument, type }, _extra) => ({
|
|
379
|
+
messages: [
|
|
380
|
+
{
|
|
381
|
+
role: 'user',
|
|
382
|
+
content: {
|
|
383
|
+
type: 'text',
|
|
384
|
+
text: `You are a logic expert. Analyze this argument for validity.
|
|
385
|
+
|
|
386
|
+
Argument:
|
|
387
|
+
${argument}
|
|
388
|
+
|
|
389
|
+
Analysis type: ${type}
|
|
390
|
+
|
|
391
|
+
Please identify:
|
|
392
|
+
1. **Structure**: Break down the argument's structure
|
|
393
|
+
2. **Premises**: List all premises and assumptions
|
|
394
|
+
3. **Conclusion**: What's being claimed
|
|
395
|
+
4. **Reasoning**: Analyze the logical flow
|
|
396
|
+
5. **Fallacies**: Any logical fallacies or errors
|
|
397
|
+
6. **Validity**: Is the reasoning sound?
|
|
398
|
+
7. **Improvements**: How to strengthen the argument
|
|
399
|
+
|
|
400
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for thorough logical analysis.`,
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
}));
|
|
405
|
+
server.registerPrompt('creative_ideation', {
|
|
406
|
+
title: 'Creative Ideation',
|
|
407
|
+
description: 'Generate creative ideas with reasoning for feasibility and value',
|
|
408
|
+
argsSchema: {
|
|
409
|
+
challenge: z.string().describe('Problem or challenge to solve'),
|
|
410
|
+
constraints: z.string().optional().describe('Constraints or requirements'),
|
|
411
|
+
quantity: z.number().min(1).max(20).default(5).describe('Number of ideas to generate'),
|
|
412
|
+
},
|
|
413
|
+
}, ({ challenge, constraints, quantity }, _extra) => ({
|
|
414
|
+
messages: [
|
|
415
|
+
{
|
|
416
|
+
role: 'user',
|
|
417
|
+
content: {
|
|
418
|
+
type: 'text',
|
|
419
|
+
text: `You are a creative problem solver. Generate innovative ideas with reasoning.
|
|
420
|
+
|
|
421
|
+
Challenge: ${challenge}
|
|
422
|
+
${constraints ? `Constraints: ${constraints}` : ''}
|
|
423
|
+
Ideas needed: ${quantity}
|
|
424
|
+
|
|
425
|
+
For each idea, provide:
|
|
426
|
+
1. **Idea**: The concept
|
|
427
|
+
2. **Reasoning**: Why this could work
|
|
428
|
+
3. **Feasibility**: How realistic it is (High/Medium/Low)
|
|
429
|
+
4. **Value**: Potential impact
|
|
430
|
+
5. **Next Steps**: How to validate/implement
|
|
431
|
+
|
|
432
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for reasoned creativity.`,
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
}));
|
|
437
|
+
server.registerPrompt('cost_comparison', {
|
|
438
|
+
title: 'LLM Cost Comparison',
|
|
439
|
+
description: 'Compare costs of different LLMs for a task and show savings with DeepSeek',
|
|
440
|
+
argsSchema: {
|
|
441
|
+
task: z.string().describe('Task description'),
|
|
442
|
+
estimated_tokens: z.number().min(100).describe('Estimated token count (prompt + completion)'),
|
|
443
|
+
},
|
|
444
|
+
}, ({ task, estimated_tokens }, _extra) => ({
|
|
445
|
+
messages: [
|
|
446
|
+
{
|
|
447
|
+
role: 'user',
|
|
448
|
+
content: {
|
|
449
|
+
type: 'text',
|
|
450
|
+
text: `You are a cost analysis expert. Compare LLM costs for this task.
|
|
451
|
+
|
|
452
|
+
Task: ${task}
|
|
453
|
+
Estimated tokens: ${estimated_tokens} (prompt + completion)
|
|
454
|
+
|
|
455
|
+
Calculate costs for:
|
|
456
|
+
1. **DeepSeek Chat**: $0.14/1M prompt + $0.28/1M completion
|
|
457
|
+
2. **DeepSeek Reasoner**: $0.42/1M prompt + $0.42/1M completion
|
|
458
|
+
3. **Claude Sonnet**: $3/1M prompt + $15/1M completion
|
|
459
|
+
4. **GPT-4**: $2.50/1M prompt + $10/1M completion
|
|
460
|
+
|
|
461
|
+
Show:
|
|
462
|
+
- Cost breakdown per model
|
|
463
|
+
- Savings percentage with DeepSeek
|
|
464
|
+
- When to use which model (cost vs quality)
|
|
465
|
+
|
|
466
|
+
Use the deepseek_chat tool with model: "deepseek-chat" for this analysis.`,
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
}));
|
|
471
|
+
server.registerPrompt('pair_programming', {
|
|
472
|
+
title: 'Pair Programming',
|
|
473
|
+
description: 'Interactive coding assistant that explains reasoning for code decisions',
|
|
474
|
+
argsSchema: {
|
|
475
|
+
task: z.string().describe('Coding task'),
|
|
476
|
+
language: z.string().describe('Programming language'),
|
|
477
|
+
style: z.enum(['beginner', 'intermediate', 'expert']).default('intermediate').describe('Code complexity level'),
|
|
478
|
+
},
|
|
479
|
+
}, ({ task, language, style }, _extra) => ({
|
|
480
|
+
messages: [
|
|
481
|
+
{
|
|
482
|
+
role: 'user',
|
|
483
|
+
content: {
|
|
484
|
+
type: 'text',
|
|
485
|
+
text: `You are a pair programming partner. Help me write code with clear reasoning.
|
|
486
|
+
|
|
487
|
+
Task: ${task}
|
|
488
|
+
Language: ${language}
|
|
489
|
+
Level: ${style}
|
|
490
|
+
|
|
491
|
+
Please:
|
|
492
|
+
1. **Plan**: Break down the task with reasoning
|
|
493
|
+
2. **Code**: Write clean, commented code
|
|
494
|
+
3. **Explain**: Explain each major decision
|
|
495
|
+
4. **Test**: Suggest test cases with reasoning
|
|
496
|
+
5. **Optimize**: Mention potential improvements
|
|
497
|
+
|
|
498
|
+
Use the deepseek_chat tool with model: "deepseek-reasoner" for thoughtful code generation.`,
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
}));
|
|
136
503
|
// Start server with stdio transport
|
|
137
504
|
async function main() {
|
|
138
505
|
console.error('[DeepSeek MCP] Starting server...');
|
|
@@ -151,6 +518,7 @@ async function main() {
|
|
|
151
518
|
await server.connect(transport);
|
|
152
519
|
console.error('[DeepSeek MCP] Server running on stdio');
|
|
153
520
|
console.error('[DeepSeek MCP] Available tools: deepseek_chat');
|
|
521
|
+
console.error('[DeepSeek MCP] Available prompts: 10 reasoning templates');
|
|
154
522
|
}
|
|
155
523
|
// Error handling
|
|
156
524
|
process.on('uncaughtException', (error) => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,wCAAwC;AACxC,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;AAEtD,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACtB,OAAO,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;IACzE,OAAO,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACnD,OAAO,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;IAC/D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,6BAA6B;AAC7B,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEtD,oBAAoB;AACpB,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IAC3B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,0CAA0C;AAC1C,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,IAAI,EAAE,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,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;IACpD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@arikusi/deepseek-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "MCP Server for DeepSeek API integration - enables Claude Code to use DeepSeek Chat and Reasoner models",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"bin": {
|
|
8
|
-
"deepseek-mcp-server": "dist/index.js"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"watch": "tsc --watch",
|
|
13
|
-
"prepare": "npm run build",
|
|
14
|
-
"start": "node dist/index.js",
|
|
15
|
-
"test": "echo \"No tests yet\" && exit 0",
|
|
16
|
-
"lint": "tsc --noEmit",
|
|
17
|
-
"prepublishOnly": "npm run build"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"mcp",
|
|
21
|
-
"model-context-protocol",
|
|
22
|
-
"deepseek",
|
|
23
|
-
"deepseek-api",
|
|
24
|
-
"deepseek-chat",
|
|
25
|
-
"deepseek-reasoner",
|
|
26
|
-
"deepseek-r1",
|
|
27
|
-
"claude-code",
|
|
28
|
-
"ai",
|
|
29
|
-
"llm",
|
|
30
|
-
"openai-compatible"
|
|
31
|
-
],
|
|
32
|
-
"author": "arikusi",
|
|
33
|
-
"license": "MIT",
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/arikusi/deepseek-mcp-server.git"
|
|
37
|
-
},
|
|
38
|
-
"bugs": {
|
|
39
|
-
"url": "https://github.com/arikusi/deepseek-mcp-server/issues"
|
|
40
|
-
},
|
|
41
|
-
"homepage": "https://github.com/arikusi/deepseek-mcp-server#readme",
|
|
42
|
-
"publishConfig": {
|
|
43
|
-
"access": "public"
|
|
44
|
-
},
|
|
45
|
-
"files": [
|
|
46
|
-
"dist",
|
|
47
|
-
"README.md",
|
|
48
|
-
"LICENSE",
|
|
49
|
-
"CHANGELOG.md"
|
|
50
|
-
],
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
53
|
-
"openai": "^4.77.3",
|
|
54
|
-
"zod": "^3.24.1"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@types/node": "^22.10.5",
|
|
58
|
-
"typescript": "^5.7.3"
|
|
59
|
-
},
|
|
60
|
-
"engines": {
|
|
61
|
-
"node": ">=18.0.0"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@arikusi/deepseek-mcp-server",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "MCP Server for DeepSeek API integration - enables Claude Code to use DeepSeek Chat and Reasoner models",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"deepseek-mcp-server": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"watch": "tsc --watch",
|
|
13
|
+
"prepare": "npm run build",
|
|
14
|
+
"start": "node dist/index.js",
|
|
15
|
+
"test": "echo \"No tests yet\" && exit 0",
|
|
16
|
+
"lint": "tsc --noEmit",
|
|
17
|
+
"prepublishOnly": "npm run build"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"mcp",
|
|
21
|
+
"model-context-protocol",
|
|
22
|
+
"deepseek",
|
|
23
|
+
"deepseek-api",
|
|
24
|
+
"deepseek-chat",
|
|
25
|
+
"deepseek-reasoner",
|
|
26
|
+
"deepseek-r1",
|
|
27
|
+
"claude-code",
|
|
28
|
+
"ai",
|
|
29
|
+
"llm",
|
|
30
|
+
"openai-compatible"
|
|
31
|
+
],
|
|
32
|
+
"author": "arikusi",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/arikusi/deepseek-mcp-server.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/arikusi/deepseek-mcp-server/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/arikusi/deepseek-mcp-server#readme",
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist",
|
|
47
|
+
"README.md",
|
|
48
|
+
"LICENSE",
|
|
49
|
+
"CHANGELOG.md"
|
|
50
|
+
],
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
53
|
+
"openai": "^4.77.3",
|
|
54
|
+
"zod": "^3.24.1"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^22.10.5",
|
|
58
|
+
"typescript": "^5.7.3"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=18.0.0"
|
|
62
|
+
}
|
|
63
|
+
}
|