acrmp/mcp 是从 https://github.com/acrmp/mcp. 导入的 MCP 服务器候选。
概览
acrmp/mcp 是从 https://github.com/acrmp/mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
服务器实现了模型上下文协议(MCP)。目前支持 这些工具可以接触支持该协议的大型语言模型。
示例
示例目录包含一个向 Claude 暴露工具的示例 计算SHA-256求和。
把示例服务器添加到你的Claude配置里:
然后我们可以问克劳德:
“西班牙的雨主要落在平原上”的sha256sum是什么意思?
然后 Claude 会对服务器执行工具调用并返回 以下回复:
SHA-256中“西班牙的雨主要落在平原”的哈希值是: B65AACBDD951FF4cd8ACEF585D482CA4BAEF81FA0e32132B842FDDca3B5590E9
本页由 AI 翻译,技术细节请以原文为准。
README
mcp
Server implementation of the Model Context Protocol (MCP). Currently allows tools to be exposed to LLMs supporting the protocol.
Example
The example directory contains an example of exposing a tool to Claude to compute a SHA-256 sum.
$ cd mcp/example
$ GOOS=darwin GOARCH=arm64 go build
Add the example server to your Claude config:
$ vim ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"sha256": {
"command": "/path/to/example/binary"
}
}
}
We can then ask Claude:
What is the sha256sum of “the rain in spain falls mainly on the plains”?
Claude will then perform a tool call against the server and return the following response:
The SHA-256 hash of “the rain in spain falls mainly on the plains” is: b65aacbdd951ff4cd8acef585d482ca4baef81fa0e32132b842fddca3b5590e9
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"sha256": {
"command": "/path/to/example/binary"
}
}
}