— No reviews yet
0 installs
1 views
0.0% view→install
Install
$ agentstack add mcp-dks50217-mcpclientserverexample ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of McpClientServerExample? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
McpClientServerExample
McpClientServerExample 是一個基於 Model Context Protocol (MCP) 的範例專案,展示了如何實現客戶端與伺服器之間的通訊。此專案包含兩個主要部分:McpClient 和 McpServer,分別代表客戶端與伺服器。
用自製的Client,以不使用Claude Client App 為範例
功能
客戶端 (McpClient)
- 使用
ModelContextProtocol.Client與伺服器通訊。 - 支援 OpenAI GPT 模型進行對話。
- 提供工具列表並支援工具函數調用。
伺服器 (McpServer)
- 使用
ModelContextProtocol.Server提供 MCP 伺服器功能。 - 支援標準輸入/輸出通訊。
- 提供內建工具,例如:
Echo: 回傳用戶輸入的訊息。ReverseEcho: 回傳用戶輸入訊息的反轉版本。
安裝與執行
需求
- .NET 8.0 SDK
- OpenAI API 金鑰(若使用 GPT 模型)
export OPENAI_API_KEY=your_api_key_here
執行
dotnet run --project client/McpClient.csproj
使用範例
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: dks50217
- Source: dks50217/McpClientServerExample
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.