OthmaneBlial/term_mcp_deepseek
A MCP‑like server using the DeepSeek API for Terminal
Platform-specific configuration:
{
"mcpServers": {
"term_mcp_deepseek": {
"command": "npx",
"args": [
"-y",
"term_mcp_deepseek"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://archestra.ai/mcp-catalog/othmaneblial__term_mcp_deepseek) This project is an MCP‑like server using the DeepSeek API. It aims to demonstrate the core concepts behind the Model Context Protocol (MCP) by exposing endpoints that allow AI assistants to:
CMD: lines) to trigger command execution.> Note: While this implementation captures many of the MCP ideas and includes features like real-time streaming, session management, and basic security, it is not yet a fully compliant MCP server as defined by Anthropic. It is designed as a proof-of-concept, and further enhancements (e.g., complete JSON‑RPC protocol support, advanced authentication, and comprehensive error handling) would be needed for production use.
A modern web-based chat client (using Flask and Tailwind CSS) where users can interact with the server, now with real-time updates and improved error handling.
Uses the DeepSeek API to generate responses. The AI can instruct the server to execute terminal commands by including lines beginning with CMD:.
Executes shell commands via a persistent Bash session using the pexpect library and returns output to the client, with added real-time streaming capabilities.
Provides /mcp/list_tools and /mcp/call_tool endpoints that mimic MCP tool discovery and invocation, with expanded protocol support including prompts, resources, and roots.
Server-Sent Events (SSE) for live command execution updates and terminal output.
Basic authentication, rate limiting, input validation, and securi
Loading reviews...