https://github.com/mark3labs/mcp-go
rpcReq := map[string]interface{}{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": map[string]interface{}{
"name": toolName,
"arguments": args,
},
}
elastic search
{
"index": "housing_listings",
"body": {
"query": {
"match": {
"city": {
"query": "北书里",
"fuzziness": "AUTO",
"prefix_length": 1
}
}
}
}
}
fuzziness with prefix_length 1 will solve the issue of vosk translation not matching
GO library
MCP is inteded for AI usage, its server with stdin, stdout, you have to make wrapper for REST
Intended to server as a bridge between AI and db, so MCP handles db authentication, provide tools for AI to use to look up in db
https://my.oschina.net/qiangmzsx/blog/18014540
No comments:
Post a Comment