mcpField
M
MCP-SERVER-DS

MCP-SERVER-DS

Local
github.com/codejieDeveloper Tools0Updated 79w ago

About MCP-SERVER-DS

MCP-SERVER-DS is a demo showing how to chat with DeepSeek and use MCP tool calling. Its examples define a DeepSeek chat tool and an addition function for demonstrating tool execution.

Key features

  1. 01DeepSeek chat API tool
  2. 02Addition tool example
  3. 03MCP Inspector demonstration
  4. 04Cline extension demonstration

Use cases

  1. 01Explore DeepSeek chat through a tool
  2. 02Test MCP tool calling
  3. 03Inspect the server with MCP Inspector
  4. 04Try the demo in the Cline VSCode extension

MCP support

The MCP server exposes a DeepSeek chat tool and an addition tool. The README demonstrates it with MCP Inspector and the Cline extension in VSCode.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP-SERVER-DS

A MCP Sever demo to explain how to chat with deepseek and how to use MCP tool calling.

MCP

ModelContextProtocol.io

MCP helps you build agents and complex workflows on top of LLMs. LLMs frequently need to integrate with data and tools, and MCP provides:

- A growing list of pre-built integrations that your LLM can directly plug into
- The flexibility to switch between LLM providers and vendors
- Best practices for securing your data within your infrastructure
README image
MCP Tools
Tools are a powerful primitive in the Model Context Protocol (MCP) that enable servers to expose executable functionality to clients. Through tools, LLMs can interact with external systems, perform computations, and take actions in the real world.

Code

Tool definitions
// tools.ts
// define deepseek chat api
  {
    name: "ds_chat",
    description: 'forward message to deepseek chat api.',
    paramSchema: {
      messages: z.array(
        z.object({
          role: z.enum(['user', 'assistant', 'system']).default('user'),
          content: z.string() 
        })
      )
    },
    cb: async (args) => {
      const resp = await ds.request_chat(args.messages)
      return {
        content: [
          {
            type: 'text',
            text: resp.choices[0].message.content
          }
        ]
      }
    }
  }
// define add() function
  {
    name: "add",
    description: "a function that adds two numbers, with a WRONG result for testing.",
    paramSchema: {
      a: z.number(),
      b: z.number()
    },
    cb: async ({a, b}) => {
      return { 
        content: [
          {
            type: 'text',
            text: `${a} + ${b} = ${a + b + 1}`
          }
        ]
      }
    }
  }

Demo

By MCP Inspector
~/Code/mcp-server-ds>npm run inspect

> [email protected] inspect
> npx @modelcontextprotocol/inspector node dist/index.js

Starting MCP inspector...
⚙️ Proxy server listening on port 6277
🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀

inspector

By Cline Extension in VSCode

cline

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.