25 lines
504 B
Go
25 lines
504 B
Go
package mcpserver
|
|
|
|
import (
|
|
"github.com/modelcontextprotocol/go-sdk/mcp"
|
|
|
|
"isphere-ai-bridge/internal/helperclient"
|
|
"isphere-ai-bridge/internal/tools"
|
|
)
|
|
|
|
const (
|
|
ServerName = "isphere-ai-bridge"
|
|
ServerTitle = "iSphere AI Bridge"
|
|
ServerVersion = "0.1.0"
|
|
)
|
|
|
|
func NewServer() *mcp.Server {
|
|
server := mcp.NewServer(&mcp.Implementation{
|
|
Name: ServerName,
|
|
Title: ServerTitle,
|
|
Version: ServerVersion,
|
|
}, nil)
|
|
tools.RegisterWinHelperTools(server, helperclient.Client{})
|
|
return server
|
|
}
|