DeepSeek MCP 服务器
MCP 服务器实现使用 DeepSeek API 提供代码生成和完成功能,并支持工具链和成本优化。
特征
具有特定语言支持的代码生成
具有上下文感知的代码完成
多目标代码优化
复杂操作的工具链
内置缓存,用于成本优化
具有完全类型安全性的 TypeScript 实现
工具
1. 生成代码
使用具有特定语言支持的 DeepSeek API 生成代码。
2. 完整代码
根据现有上下文获取智能代码完成。
3. 优化代码
优化现有代码的性能、内存使用率或可读性。
4. 执行链
按顺序执行一系列工具,并在步骤之间传递上下文。
安装
克隆存储库
安装依赖项:
构建项目:
在 MCP 设置文件中配置您的 DeepSeek API 密钥:
用法
该服务器可与任何兼容 MCP 的客户端配合使用。以下是使用 MCP CLI 的示例:
工具链
工具链允许您将多个操作组合成一个工作流。链中的每个工具都可以通过链上下文访问前面工具的结果。
示例链:
生成初始代码
完成带有错误处理的代码
优化最终结果
成本优化
服务器实施了几种策略来优化 API 成本:
使用 TTL 进行请求缓存
链式结果缓存
智能提示构造
用于使用情况分析的元数据跟踪
发展
开始开发:
清理并重建:
要求
Node.js >= 18.0.0
DeepSeek API 密钥
MCP 兼容客户端
执照
国际学习中心
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使用 DeepSeek API 提供代码生成和完成功能,并支持工具链和成本优化。
Related Resources
Related MCP Servers
- -security-license-qualityProvides code completion, bug fixing, and test generation for multiple programming languages, integrating with the Mistral Codestral API to enhance code development processes.Last updated -2
- -security-license-qualityA Cursor-compatible toolkit that provides intelligent coding assistance through custom AI tools for code architecture planning, screenshot analysis, code review, and file reading capabilities.Last updated -82411MIT License
- -security-license-qualityA local server that provides powerful code analysis and search capabilities for software projects, helping AI assistants and development tools understand codebases for tasks like code generation and refactoring.Last updated -4
- -security-license-qualityProvides AI-enhanced code search capabilities by integrating with Sourcegraph, allowing AI assistants to search across multiple repositories and codebases with advanced query syntax.Last updated -14MIT License