信件计数器 MCP 服务器 (strawberry-mcp)
这是根据使用 LLM构建 MCP的说明生成的 LLM mcp 服务器。
其目的是解决草莓 LLM 问题作为一个笑话/学习示例。
迅速的
原始提示引用了llms-full.md和typescript-sdk README以获取有关构建 MCP 服务器的指导。
提示如下:
We're going to build an MCP server. We can look at `llms-full.md` for some general guidance and examples. `typescript-sdk-README.md` to understand the typescript-sdk for MCP.
Build an MCP server that:
- Enables the LLM to count letter occurrences in a word
- It should provide a tool that the LLM can pass a word + the letter they want to count
We should keep the code well organized. We should add unit tests. Please setup build and test scripts in the package.json. We should be able to test the letter counter without having to run the MCP server.
We should be able to have the LLM do something like:
count strawberry r and get back 3.