add mcp label

This commit is contained in:
2026-09-06 02:07:36 +07:00
parent 97ad956a6b
commit ef86674fce
9 changed files with 333 additions and 216 deletions
+8 -3
View File
@@ -1098,7 +1098,7 @@ func (s *server) GiveTeamApplications(ctx context.Context, req *proto.GiveTeamAp
}
func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (*proto.GetTeamStoryRsp, error) {
story, game, err := s.gameService.GetTeamActions(
story, game, actions, err := s.gameService.GetTeamActions(
ctx,
int(req.Id),
req.Password,
@@ -1108,10 +1108,15 @@ func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (
Error: err.Error(),
}, nil
}
protoActions := make([]*proto.TeamAction, 0, len(actions))
for _, action := range actions {
protoActions = append(protoActions, &proto.TeamAction{Code: action.Code, Mcp: action.ViaMCP})
}
return &proto.GetTeamStoryRsp{
Story: mapStory(story),
Game: mapGame(game),
Story: mapStory(story),
Game: mapGame(game),
Actions: protoActions,
}, nil
}