1. Conduid
  2. Developer Tools
  3. Client Server
MCP server · Developer Tools

Client Server

MCP server: Client Server

Unclaimed last commit a year ago devtools
37Low

Scored 4 months ago · breakdown

About Client Server

Client Server is an MCP server published by wangliguang in the Developer Tools category: mCP server: Client Server. It has been installed 0 times through Conduid.

The repository has 2 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx mcp-client-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Client Server

Powered by Claude · Grounded in docs

I know everything about Client Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

从这个项目中能获得的东西

  • 大模型是如何与 mcp 进行交互
    • 与tool的交互逻辑
    • 与resource的交互逻辑
    • 与prompt的交互逻辑
  • 两种mcp server的机制
    • 如何自己开发一个 mcp server
    • 如何使用三方的mcp server
    • stdio 如何转 streamable-http

一、项目介绍

1. 目录结构

├── index.js # 启动文件,在这里可以选择你要使用的 mcp server
├── llm
│   └── askLLM.js # 调用大模型
└── mcp
    ├── sse
    │   └── client.js
    ├── stdio
    │   ├── compute 
    │   │   ├── client.js
    │   │   └── server.js # 自己写的 mcp server
    │   └── filesystem
    │       └── client.js
    └── streamable-http
        └── client.js

2. 脚本介绍

  • npm run start:开启对话服务,根目录下有个.env 文件用于设置环境变量,在src/index里可以选择要测试的mcp 类型
  • npm run sse:基于stdio启动sse服务
  • npm run inspector:开启测试mcp server的可视化工具

3. 经验教训

  1. 各种Transport都可以通过requestInit设置header,比如补充鉴权的token

    new StreamableHTTPClientTransport(new URL('http://localhost:8000/sse'), {
    	requestInit: {
    		headers: {
    			"Authorization": "Bearer xxx",
        }
      }
    })
    
  2. 在访问各种client各种接口时,都可以通过_meta设置参数,比如:

    await client.listTools({
      _meta: {
        newsId: "179",
      }
    })
    
    await client.callTool({ 
      name: tool.name,
      arguments: {
        ...JSON.parse(functionInfo.arguments),
        _meta: {
          newsId: '170'
        }
      }
    });
    
    await client.listResources({
      _meta: {
        newsId: "179",
      }
    })
    
    await client.readResource({
       uri: "",
       _meta: {
    	   newId: '179'
    })
    

二、MCP知识点补充

1. 调用client.connect时报错

protocol version not supported, supported lastest version is 2025-03-26

主要原因是mcp client 和 mcp server 使用的 mcp 协议版本不一致,前端的办法就是升级 或降级@modelcontextprotocol/sdk的版本

2. stdio、sse、streamableHttp的区别

stdio 和 sse 的应用场景

MCP 协议:为什么 Streamable HTTP 是最佳选择?

stdio 是在本地拉取对应的代码在本地启动一个服务

sse 是在服务器上拉取对应的代码启动一个服务

3. 如何将stdio 转换成ssestreamableHttp服务

工具:https://github.com/supercorp-ai/supergateway

4. RAG与MCP

RAG与MCP:LLMs的“左右手”,谁才是你的菜?

5. Sequential Thinking

大腦思考大不同:Sequential Thinking MCP 與推理型大模型功能實現全解析

三、官方地址

  1. modelcontextprotocol/typescript-sdk
  2. mcp 官网

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About Client Server

How do I install Client Server?

Run npx mcp-client-server, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Client Server safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Client Server still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.