smithy-mcp-server
Smithy-mcp-server 是一个实现 Smithy Model Compiler Protocol 的服务器,用于使用 Smithy 框架构建和集成服务。
Smithy-MCP-Server 是一个实现 Smithy Model Compiler Protocol 的服务器,用于使用 Smithy 框架构建和集成服务。
安装要求
- Java 11 或更高版本
- Gradle 7.0+
快速开始
1. 添加依赖
dependencies { implementation "com.example:smithy-mcp-server:1.0.0" }
2. 启动服务器
import com.example.smithy.mcp.Server;
public class Main {
public static void main(String[] args) {
Server server = new Server.Builder()
.withPort(8080)
.build();
server.start();
}
}
3. 配置客户端连接
在你的客户端配置文件中添加:
{
"smithy": {
"mcp": {
"serverUrl": "http://localhost:8080"
}
}
}
常见问题
- 无法连接到服务器? 确保防火墙设置允许指定端口的通信
- 编译错误? 检查 Smithy 模型文件的语法是否正确
更多资源
访问官方文档获取更详细的信息和高级配置选项。