@@ -34,7 +34,6 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
3434 toolsets .NewServerTool (ListReleases (getClient , t )),
3535 toolsets .NewServerTool (GetLatestRelease (getClient , t )),
3636 toolsets .NewServerTool (GetReleaseByTag (getClient , t )),
37- toolsets .NewServerTool (ListStarredRepositories (getClient , t )),
3837 ).
3938 AddWriteTools (
4039 toolsets .NewServerTool (CreateOrUpdateFile (getClient , t )),
@@ -43,8 +42,6 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
4342 toolsets .NewServerTool (CreateBranch (getClient , t )),
4443 toolsets .NewServerTool (PushFiles (getClient , t )),
4544 toolsets .NewServerTool (DeleteFile (getClient , t )),
46- toolsets .NewServerTool (StarRepository (getClient , t )),
47- toolsets .NewServerTool (UnstarRepository (getClient , t )),
4845 ).
4946 AddResourceTemplates (
5047 toolsets .NewServerResourceTemplate (GetRepositoryResourceContent (getClient , getRawClient , t )),
@@ -195,6 +192,12 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
195192 toolsets .NewServerTool (ListProjects (getClient , t )),
196193 )
197194
195+ stargazers := toolsets .NewToolset ("stargazers" , "GitHub Starring related tools" ).
196+ AddReadTools (toolsets .NewServerTool (ListStarredRepositories (getClient , t ))).AddWriteTools (
197+ toolsets .NewServerTool (StarRepository (getClient , t )),
198+ toolsets .NewServerTool (UnstarRepository (getClient , t )),
199+ )
200+
198201 // Add toolsets to the group
199202 tsg .AddToolset (contextTools )
200203 tsg .AddToolset (repos )
@@ -212,6 +215,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
212215 tsg .AddToolset (gists )
213216 tsg .AddToolset (securityAdvisories )
214217 tsg .AddToolset (projects )
218+ tsg .AddToolset (stargazers )
215219
216220 return tsg
217221}
0 commit comments