
mcp tools
一个用于生成和管理 MCP 工具的实用工具。
Repository Info
About This Server
一个用于生成和管理 MCP 工具的实用工具。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
A useful MCP Tool
Usage
Install
go install github.com/ll-41/mcp-tools/cmd/mcpgen@latest
WriteYourCode
Create Go functions with Tool prefix and standardized comments:
// ToolExample Example tool description
// @param1 Parameter 1 description
// @param2 Parameter 2 description
func ToolExample(param1 string, param2 int) (*mcp_golang.ToolResponse, error) {
// Implementation logic...
}
GenerateCode
Execute generation command:
mcpgen -root=./sometools
Import sometools package
package main
import (
"log"
_ "github.com/yourrepository/sometools"
"github.com/metoro-io/mcp-golang"
"github.com/metoro-io/mcp-golang/transport/stdio"
"github.com/chslink/mcp-tools/gen"
)
func main() {
done := make(chan struct{})
server := mcp_golang.NewServer(stdio.NewStdioServerTransport())
var err error
// Register tools
for _, tool := range gen.GetTools() {
err = server.RegisterTool(tool.Name, tool.Description, tool.Func)
if err != nil {
log.Fatal(err)
}
}
err = server.Serve()
if err != nil {
panic(err)
}
<-done
}
Quick Start
Clone the repository
git clone https://github.com/ll-41/mcp-toolsInstall dependencies
cd mcp-tools
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.