MCP.so
ログイン

Ts MCP Client Server

@oneness

基本情報

カテゴリ

その他

ライセンス

MIT

トランスポート

stdio

作者

oneness

Ts MCP Client Server について

MCP client and server with command line chat interface using Anthropic

Ts MCP Client Server の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

Ts MCP Client Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Ts Mcp Client Server?

It is an example MCP (Model Context Protocol) client and server implementation in TypeScript, demonstrating how MCP works with stdio transport and the Anthropic API.

How to use Ts Mcp Client Server?

Clone the repository, set your ANTHROPIC_API_KEY in a .env.local file, and install dependencies with npm. Run npm run build to compile, then npm run mcp for the stdio client/server demo or npm run chat for a command-line chat interface that uses Claude via MCP.

Key features of Ts Mcp Client Server

  • TypeScript MCP client and server example
  • Uses stdio transport for inter-process communication
  • Integrates with Anthropic SDK for LLM completions
  • Provides a command-line chat interface
  • Exposes and executes tools via the MCP server

Use cases of Ts Mcp Client Server

  • Learning how MCP client/server works with stdio transport
  • Building a CLI chat interface to Claude completion
  • Demonstrating tool execution through an MCP server
  • Prototyping MCP integrations with the Anthropic API

よくある質問

1

What is the purpose of Ts Mcp Client Server?

It is a step-by-step example showing how MCP works as a standalone client/server and with an LLM, aimed at developers learning the protocol.

2

How do I set up the environment?

Install Node.js (nix recommended), then install npm dependencies. Create a `.env.local` file with your `ANTHROPIC_API_KEY`.

3

How do I run the demo?

First run `npm run build`, then `npm run mcp` to start the stdio client/server demo, or `npm run chat` to launch the CLI chat interface that uses Anthropic’s Claude.

4

What files are included?

The project contains `index.ts` (entry point), `server.ts` (MCP server), `client.ts` (MCP client), `llm.ts` (Anthropic SDK integration), and `chat.ts` (command-line interface).

5

Does the project have any notes on code generation?

The README notes that Claude and Gemini web chat interfaces were used to generate some of the boilerplate code.

コメント

「その他」の他のコンテンツ