MCP.so
登录

MCP Client

@1999AZZAR

关于 MCP Client

TypeScript client for interacting with MCP (Model Context Protocol) servers

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

1999AZZAR

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Client?

A TypeScript client for interacting with MCP (Model Context Protocol) servers. It includes specialized clients for Wikipedia, Dictionary, Google Search, and LRU Caching services, providing a promise-based API with full type definitions.

How to use MCP Client?

Install via npm (npm install @your-org/mcp-client) or yarn. Create a base MCPClient instance with a server URL, then call request(method, params) or batchRequest(requests). For specialized services, instantiate WikipediaClient, DictionaryClient, GoogleSearchClient, or LRUCacheClient with the appropriate server URL and use their dedicated methods.

Key features of MCP Client

  • TypeScript support with full type definitions
  • JSON-RPC 2.0 protocol and batch request support
  • Configurable timeouts and custom headers
  • Specialized clients for Wikipedia, Dictionary, Google Search, and LRU Cache
  • Promise-based API with comprehensive error handling

Use cases of MCP Client

  • Search Wikipedia and retrieve page content
  • Look up word definitions, synonyms, and antonyms
  • Perform web, image, and news searches via Google
  • Set, get, and manage key-value entries in an LRU cache with TTL
  • Make arbitrary JSON-RPC requests to any MCP server

FAQ from MCP Client

What protocols does the client support?

It supports the JSON-RPC 2.0 protocol, including batch requests.

How does error handling work?

Methods return Promises that reject on failure: network/HTTP errors provide status and data, while MCP protocol errors include an error code.

What are the runtime requirements?

A TypeScript/Node.js environment. Install the npm package (@your-org/mcp-client) and build with npm run build.

Where does data live?

All data resides on the MCP server specified by the url option; the client only sends requests and receives responses.

What are the transport and authentication options?

The client uses HTTP and accepts custom headers (e.g., for authentication) via the headers option in the constructor.

评论

其他 分类下的更多 MCP 服务器