About Client Demo
Client Demo is an MCP server published by kaichen in the AI category: mCP客户端演示项目,使用OpenAI和Model Context Protocol.
The repository has 2 stars and 1 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 before depending on it in production.
Install
git clone https://github.com/kaichen/mcp-client-demoThis 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 Demo
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 2 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
MCP Client Demo
这是一个基于 Model Context Protocol (MCP) 的客户端演示项目,用于展示如何使用 OpenAI API 与 MCP 工具进行交互。
项目介绍
本项目是一个简单的命令行应用,演示了如何:
- 使用 OpenAI 的 GPT-4o-mini 模型
- 处理工具调用和响应
- 连接到 MCP 服务器
- 维护完整的对话历史
技术栈
- 运行时: Bun - 一个快速的 JavaScript 全能运行时
- 语言: TypeScript
- 依赖:
openai: ^4.87.3 - OpenAI API 客户端@modelcontextprotocol/sdk: ^1.7.0 - MCP SDK
安装
# 安装依赖
bun install
使用方法
# 运行应用
bun run index.ts
环境变量
请确保在运行前设置以下环境变量或创建 .env 文件:
OPENAI_API_KEY=your_openai_api_key
EXA_API_KEY=your_exa_api_key
开发
本项目使用 bun init 在 bun v1.1.38 中创建。如需进行开发,可以修改 index.ts 文件中的用户提示或添加更多功能。
README fetched from the repository 2 hours ago. The original is authoritative.