You've already forked agentic-coding-workflow
完善 MCP 工具
This commit is contained in:
+10
-5
@@ -16,9 +16,14 @@ type ServerDeps struct {
|
||||
Issues project.IssueService
|
||||
Artifacts project.ArtifactService
|
||||
Workspaces workspace.WorkspaceService
|
||||
Worktrees workspace.WorktreeService
|
||||
GitOps workspace.GitOpsService
|
||||
Templates chat.TemplateService
|
||||
Messages chat.MessageService
|
||||
Conversations chat.ConversationService
|
||||
Endpoints chat.EndpointService
|
||||
ACP ACPBridge // acp 服务桥接(见 tools_acp.go / acp.NewMCPBridge)
|
||||
Runs RunService // *run.Service(见 tools_run.go)
|
||||
}
|
||||
|
||||
// NewMCPServer 装配 SDK Server 实例并注册所有工具/prompts/resources。
|
||||
@@ -28,16 +33,16 @@ func NewMCPServer(deps ServerDeps) *mcpsdk.Server {
|
||||
Version: "0.1.0",
|
||||
}, nil)
|
||||
|
||||
// Phase F: 16 PM 工具
|
||||
// Phase F: PM 工具(projects / requirements / issues / artifacts)
|
||||
registerPMTools(srv, deps)
|
||||
// Phase G: chat / prompts / resources
|
||||
registerChatTools(srv, deps)
|
||||
registerPrompts(srv, deps)
|
||||
registerResources(srv, deps)
|
||||
// Phase H: workspace / worktree / git、ACP、run profiles
|
||||
registerWorkspaceTools(srv, deps)
|
||||
registerACPTools(srv, deps)
|
||||
registerRunTools(srv, deps)
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
// registerChatTools 已在 tools_chat.go 中实现。
|
||||
// registerResources 已在 resources.go 中实现。
|
||||
// registerPMTools 已在 tools_pm.go 中实现。
|
||||
|
||||
Reference in New Issue
Block a user