tools

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FunctionAnomaliesSummary     = 0
	FunctionListAnomalies        = 1
	FunctionListIgnoredAnomalies = 2
)
View Source
const (
	CCMCommitmentCoverageEventType    = "commitment_coverage_sorted"
	CCMCommitmentEC2AnalysisEventType = "commitment_ec2_analysis"

	FollowUpGroupCommitmentCoverageByRegionsPrompt = "Help me group commitment coverage by regions"
	FollowUpGroupCommitmentCoverageBySavingsPrompt = "Help me estimate savings opportunities"
)
View Source
const (
	CCMCostCategoryCostTargetsEventType = "cost_category_cost_targets"

	// CCM Cost Category Key Values Event Tool
	CCMReportCostCategoryKeyValuesToolID = "ccm_report_cost_category_key_values_event"

	// Event name used in event.NewCustomEvent() for UI compatibility
	CCMCostCategoryKeyValuesEventName = "ccm_cost_category_key_values_event"

	// Event name constants for ccm_cost_category_key_values_event
	CCMEventNamePresentCheckbox = "present_checkbox"
	CCMEventNameDropDownList    = "drop_down_list"
)
View Source
const (
	CCMPerspectiveRulesToolID                  = "validate_ccm_perspective_rules"
	CCMPerspectiveRuleEventType                = "perspective_rules_updated"
	FollowUpCreatePerspectivePrompt            = "Proceed to save perspective"
	CCMPerspectivetCreateOrUpdateRuleEventType = "perspective_created_or_updated_event"
)
View Source
const (
	ToolEC2        int = 1
	ToolAzureVm    int = 2
	ToolECSService     = 3
	ToolNodePool       = 4
	ToolWorkload       = 5
)
View Source
const (
	SecretTypeSecretFile       = "SecretFile"
	SecretTypeSecretText       = "SecretText"
	SecretTypeSSHKey           = "SSHKey"
	SecretTypeWinRmCredentials = "WinRmCredentials"
)

Secret types supported by the Harness secrets API

View Source
const (
	SortByName       = "name"
	SortByIdentifier = "identifier"
	SortByCreated    = "created"
	SortByUpdated    = "updated"
)

Sort fields for secrets

View Source
const (
	FilterTypeRecommendation = "CCMRecommendation"
)

Variables

This section is empty.

Functions

func ArtifactListV2Tool

func ArtifactListV2Tool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

ArtifactListV2Tool returns a tool for listing artifacts from a source.

func BuildArtifactComponentViewBody

func BuildArtifactComponentViewBody(request mcp.CallToolRequest) (generated.ArtifactComponentViewRequestBody, error)

BuildArtifactComponentViewBody builds the request body for artifact component view using bindParam and the builder pattern.

func BuildArtifactListingBody

func BuildArtifactListingBody(request mcp.CallToolRequest) (generated.ArtifactListingRequestBody, error)

BuildArtifactListingBody builds the request body for listing artifact sources using bindParam and the builder pattern.

func BuildComplianceResultByArtifactFilter

func BuildComplianceResultByArtifactFilter(request mcp.CallToolRequest) (generated.ComplianceResultByArtifactFilter, error)

BuildComplianceResultByArtifactFilter builds the request body for compliance results by artifact using bindParam and the builder pattern.

func CcmListLabelsV2KeysTool

func CcmListLabelsV2KeysTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CcmMetadataTool

func CcmMetadataTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CcmPerspectiveBudgetTool

func CcmPerspectiveBudgetTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CcmPerspectiveFilterValuesTool

func CcmPerspectiveFilterValuesTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CcmPerspectiveFilterValuesToolEvent

func CcmPerspectiveFilterValuesToolEvent(config *config.McpServerConfig) (tool mcp.Tool, handler server.ToolHandlerFunc)

ValidatePerspectiveFilterValuesTool creates a tool for validating filter values for specific field types

func CcmPerspectiveGridTool

func CcmPerspectiveGridTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CcmPerspectiveRecommendationsTool

func CcmPerspectiveRecommendationsTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CcmPerspectiveSummaryWithBudgetTool

func CcmPerspectiveSummaryWithBudgetTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CcmPerspectiveTimeSeriesTool

func CcmPerspectiveTimeSeriesTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateCcmJiraTicketTool

func CreateCcmJiraTicketTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateCcmPerspectiveTool

func CreateCcmPerspectiveTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

Create perspective

func CreateCcmServiceNowTicketTool

func CreateCcmServiceNowTicketTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateCostCategoriesCostTargetsEventTool

func CreateCostCategoriesCostTargetsEventTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateDelegateTokenTool

func CreateDelegateTokenTool(config *config.McpServerConfig, client *client.DelegateTokenClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

CreateDelegateTokenTool creates a tool for creating a new delegate token

func CreateExperimentFromTemplateTool

func CreateExperimentFromTemplateTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

CreateExperimentFromTemplateTool creates a tool to create the experiment from template

func CreateOPAPolicyTool

func CreateOPAPolicyTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

CreateOPAPolicyTool returns a tool for creating OPA policies based on a list of licenses to deny

func CreatePullRequestTool

func CreatePullRequestTool(config *config.McpServerConfig, client *client.PullRequestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

CreatePullRequestTool creates a tool for creating a new pull request

func CreateResourceGroupTool

func CreateResourceGroupTool(config *config.McpServerConfig, resourceGroupClient *client.ResourceGroupService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateRoleAssignmentTool

func CreateRoleAssignmentTool(config *config.McpServerConfig, roleAssignmentsClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateRoleTool

func CreateRoleTool(config *config.McpServerConfig, rolesClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateSampleLoadTestTool

func CreateSampleLoadTestTool(config *config.McpServerConfig, client *client.LoadTestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

CreateSampleLoadTestTool creates a tool for creating a sample load test

func CreateServiceAccountTool

func CreateServiceAccountTool(config *config.McpServerConfig, serviceAccountClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func CreateUserGroupTool

func CreateUserGroupTool(config *config.McpServerConfig, userGroupClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DeleteCcmPerspectiveTool

func DeleteCcmPerspectiveTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DeleteDelegateTokenTool

func DeleteDelegateTokenTool(config *config.McpServerConfig, client *client.DelegateTokenClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

DeleteDelegateTokenTool creates a tool for deleting revoked delegate tokens

func DeleteLoadTestTool

func DeleteLoadTestTool(config *config.McpServerConfig, client *client.LoadTestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

DeleteLoadTestTool creates a tool for deleting a load test

func DeleteResourceGroupTool

func DeleteResourceGroupTool(config *config.McpServerConfig, resourceGroupClient *client.ResourceGroupService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DeleteRoleAssignmentTool

func DeleteRoleAssignmentTool(config *config.McpServerConfig, roleAssignmentClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DeleteRoleTool

func DeleteRoleTool(config *config.McpServerConfig, roleClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DeleteServiceAccountTool

func DeleteServiceAccountTool(config *config.McpServerConfig, serviceAccountClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DeleteUserGroupTool

func DeleteUserGroupTool(config *config.McpServerConfig, userGroupClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DownloadExecutionLogsTool

func DownloadExecutionLogsTool(config *config.McpServerConfig, client LogServiceProvider) (tool mcp.Tool, handler server.ToolHandlerFunc)

func DownloadSbomTool

func DownloadSbomTool(cfg *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

DownloadSbomTool returns a tool that provides the download URL for an SBOM.

func ExecuteWorkflowTool

func ExecuteWorkflowTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ExemptionsApproveExemptionTool

func ExemptionsApproveExemptionTool(config *config.McpServerConfig, client *generated.ClientWithResponses, principalClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ExemptionsApproveExemptionTool approves or rejects an exemption request.

func ExemptionsPromoteExemptionTool

func ExemptionsPromoteExemptionTool(config *config.McpServerConfig, client *generated.ClientWithResponses, principalClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ExemptionsPromoteExemptionTool promotes a pending exemption to approval/rejection.

func ExtractParam

func ExtractParam[T any](r mcp.CallToolRequest, key string) (T, error)

func FetchCommitmentCoverageTool

func FetchCommitmentCoverageTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func FetchCommitmentSavingsTool

func FetchCommitmentSavingsTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func FetchCommitmentSpendsTool

func FetchCommitmentSpendsTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func FetchCommitmentUtilisationTool

func FetchCommitmentUtilisationTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func FetchComplianceResultsByArtifactTool

func FetchComplianceResultsByArtifactTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

FetchComplianceResultsByArtifactTool returns a tool for fetching compliance results by artifact from Harness SCS.

func FetchEC2AnalysisTool

func FetchEC2AnalysisTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func FetchEstimatedSavingsTool

func FetchEstimatedSavingsTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func FetchExecutionURLTool

func FetchExecutionURLTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func FetchPagination

func FetchPagination(request mcp.CallToolRequest) (page, size int, err error)

FetchPagination fetches pagination parameters from the MCP request.

func GetAIAdoptionsBreakdownTool

func GetAIAdoptionsBreakdownTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIAdoptionsBreakdownTool creates a tool for getting AI adoption breakdown by teams

func GetAIAdoptionsSummaryTool

func GetAIAdoptionsSummaryTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIAdoptionsSummaryTool creates a tool for getting AI adoption summary with period comparison

func GetAIAdoptionsTool

func GetAIAdoptionsTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIAdoptionsTool creates a tool for getting AI coding assistant adoption metrics

func GetAIImpactTool

func GetAIImpactTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIImpactTool creates a tool for getting AI impact metrics (PR velocity or rework comparison)

func GetAIRawMetricsTool

func GetAIRawMetricsTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIRawMetricsTool creates a tool for getting paginated raw AI metrics with detailed per-developer data

func GetAITopLanguagesTool

func GetAITopLanguagesTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAITopLanguagesTool creates a tool for getting top programming languages used with AI assistants

func GetAIUsageBreakdownTool

func GetAIUsageBreakdownTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIUsageBreakdownTool creates a tool for getting AI coding assistant team breakdown metrics

func GetAIUsageMetricsTool

func GetAIUsageMetricsTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIUsageMetricsTool creates a tool for getting AI coding assistant feature metrics

func GetAIUsageSummaryTool

func GetAIUsageSummaryTool(cfg *config.McpServerConfig, aiClient *client.AIInsightsService) (mcp.Tool, server.ToolHandlerFunc)

GetAIUsageSummaryTool creates a tool for getting AI coding assistant usage summary

func GetAgentTool

func GetAgentTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetAllUsersTool

func GetAllUsersTool(config *config.McpServerConfig, usersClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetApplicationResourceTreeTool

func GetApplicationResourceTreeTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetApplicationSetTool

func GetApplicationSetTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetApplicationTool

func GetApplicationTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetArtifactChainOfCustodyV2Tool

func GetArtifactChainOfCustodyV2Tool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetArtifactChainOfCustodyV2Tool returns a tool for getting chain of custody for an artifact.

func GetArtifactComponentRemediationByPurlTool

func GetArtifactComponentRemediationByPurlTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetArtifactComponentRemediationByPurlTool returns a tool for getting remediation info for a component by its PURL.

func GetArtifactDetailComponentViewTool

func GetArtifactDetailComponentViewTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetArtifactDetailComponentViewTool returns a tool for getting detailed component view of an artifact.

func GetArtifactV2OverviewTool

func GetArtifactV2OverviewTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetArtifactV2OverviewTool returns a tool for getting artifact overview from a source.

func GetAuditYamlTool

func GetAuditYamlTool(config *config.McpServerConfig, auditClient *client.AuditService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetAuditYamlTool creates a tool for retrieving YAML diff for a specific audit event.

func GetAzureVmRecommendationDetailTool

func GetAzureVmRecommendationDetailTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetBAAllProfilesTool

func GetBAAllProfilesTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetBAAllProfilesTool creates a tool for getting all BA profiles

func GetBADrilldownDataTool

func GetBADrilldownDataTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetBADrilldownDataTool creates a tool for getting BA drilldown data

func GetBAInsightMetricsTool

func GetBAInsightMetricsTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetBAInsightMetricsTool creates a tool for getting BA insight metrics

func GetBAInsightSummaryTool

func GetBAInsightSummaryTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetBAInsightSummaryTool creates a tool for getting BA insight summary

func GetCcmAnomaliesForPerspectiveTool

func GetCcmAnomaliesForPerspectiveTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetCcmAnomaliesSummaryTool

func GetCcmAnomaliesSummaryTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetCcmCostCategoryTool

func GetCcmCostCategoryTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetCcmOverviewTool

func GetCcmOverviewTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetCcmOverview creates a tool for getting a ccm overview from an account

func GetCcmPerspectiveRulesTool

func GetCcmPerspectiveRulesTool(config *config.McpServerConfig) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetCcmPerspectiveRulesTool creates a tool for validating perspective rules JSON format

func GetCcmPerspectiveTool

func GetCcmPerspectiveTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetCcmRecommendationsStatsTool

func GetCcmRecommendationsStatsTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetChangeFailureRateDrilldownTool

func GetChangeFailureRateDrilldownTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetChangeFailureRateDrilldownTool creates a tool for getting change failure rate drilldown data

func GetChangeFailureRateTool

func GetChangeFailureRateTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetChangeFailureRateTool creates a tool for getting change failure rate metrics

func GetCheckStatsTool

func GetCheckStatsTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetCheckTool

func GetCheckTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetClusterTool

func GetClusterTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetCodeRepositoryOverviewTool

func GetCodeRepositoryOverviewTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetCodeRepositoryOverviewTool returns a tool for getting an overview of a code repository from Harness SCS.

func GetConnectorDetailsTool

func GetConnectorDetailsTool(config *config.McpServerConfig, connectorService *client.ConnectorService) (mcp.Tool, server.ToolHandlerFunc)

GetConnectorDetailsTool creates a tool for getting details of a specific connector https://apidocs.harness.io/tag/Connectors#operation/getConnector

func GetDashboardDataTool

func GetDashboardDataTool(config *config.McpServerConfig, client *client.DashboardService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetDashboardDataTool creates a tool for retrieving data from a specific dashboard

func GetDashboardOverviewTool

func GetDashboardOverviewTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetDelegateByTokenTool

func GetDelegateByTokenTool(config *config.McpServerConfig, client *client.DelegateTokenClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetDelegateByTokenTool creates a tool for getting delegate token by name

func GetDelegateTokenTool

func GetDelegateTokenTool(config *config.McpServerConfig, client *client.DelegateTokenClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetDelegateTokenTool creates a tool for getting a delegate token by name

func GetDeploymentFrequencyDrilldownTool

func GetDeploymentFrequencyDrilldownTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetDeploymentFrequencyDrilldownTool creates a tool for getting deployment frequency drilldown data

func GetDeploymentFrequencyTool

func GetDeploymentFrequencyTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetDeploymentFrequencyTool creates a tool for getting deployment frequency metrics

func GetEc2RecommendationDetailTool

func GetEc2RecommendationDetailTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetEcsServiceRecommendationDetailTool

func GetEcsServiceRecommendationDetailTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetEfficiencyLeadTimeTool

func GetEfficiencyLeadTimeTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetEfficiencyLeadTimeTool creates a tool for getting lead time

func GetEntityTool

func GetEntityTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetEnvironmentTool

func GetEnvironmentTool(config *config.McpServerConfig, client *client.EnvironmentClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetEnvironmentTool creates a tool for getting details of a specific environment https://apidocs.harness.io/tag/Environments#operation/getEnvironmentV2

func GetExecutionTool

func GetExecutionTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetExperimentRunsTool

func GetExperimentRunsTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetExperimentRunsTool creates a tool to get the experiment run details

func GetExperimentsTool

func GetExperimentsTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetExperimentsTool creates a tool to get the experiment details

func GetFMEFeatureFlagDefinitionTool

func GetFMEFeatureFlagDefinitionTool(config *config.McpServerConfig, fmeService *client.FMEService) (mcp.Tool, server.ToolHandlerFunc)

GetFMEFeatureFlagDefinitionTool creates a tool for getting a specific FME feature flag definition

func GetInputSetTool

func GetInputSetTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetLastPeriodCostCcmPerspectiveTool

func GetLastPeriodCostCcmPerspectiveTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetLastTwelveMonthsCostCcmPerspectiveTool

func GetLastTwelveMonthsCostCcmPerspectiveTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetLoadTestTool

func GetLoadTestTool(config *config.McpServerConfig, client *client.LoadTestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetLoadTestTool creates a tool for getting details of a specific load test

func GetManagedResourcesTool

func GetManagedResourcesTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetMttrTool

func GetMttrTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetMttrTool creates a tool for getting Mean Time to Restore metrics

func GetNodePoolRecommendationDetailTool

func GetNodePoolRecommendationDetailTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetOperatorsDescription

func GetOperatorsDescription() string

func GetOrgTreeBusinessAlignmentProfileTool

func GetOrgTreeBusinessAlignmentProfileTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetOrgTreeBusinessAlignmentProfileTool creates a tool for getting business alignment profile reference ID

func GetOrgTreeByIdTool

func GetOrgTreeByIdTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetOrgTreeByIdTool creates a tool for getting a specific organization tree by ID

func GetOrgTreeEfficiencyProfileTool

func GetOrgTreeEfficiencyProfileTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetOrgTreeEfficiencyProfileTool creates a tool for getting efficiency profile reference ID

func GetOrgTreeIntegrationsTool

func GetOrgTreeIntegrationsTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetOrgTreeIntegrationsTool creates a tool for getting integrations associated with an organization tree

func GetOrgTreeProductivityProfileTool

func GetOrgTreeProductivityProfileTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetOrgTreeProductivityProfileTool creates a tool for getting productivity profile reference ID

func GetOrgTreeTeamsTool

func GetOrgTreeTeamsTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetOrgTreeTeamsTool creates a tool for getting team hierarchy for an organization tree

func GetOrgTreesTool

func GetOrgTreesTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetOrgTreesTool creates a tool for getting organization trees

func GetPipelineSummaryTool

func GetPipelineSummaryTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetPipelineTool

func GetPipelineTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetPodLogsTool

func GetPodLogsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetProbeTool

func GetProbeTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetProbeTool creates a tool to get the probe details

func GetProductivityFeatureMetricsTool

func GetProductivityFeatureMetricsTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetProductivityFeatureMetricsTool creates a tool for getting productivity feature metrics

func GetPromptTool

func GetPromptTool(config *config.McpServerConfig) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetPromptTool creates a tool for retrieving a single prompt from the MCP server

func GetPullRequestActivitiesTool

func GetPullRequestActivitiesTool(config *config.McpServerConfig, client *client.PullRequestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetPullRequestActivitiesTool creates a tool for getting activities (including comments) for a specific pull request

func GetPullRequestChecksTool

func GetPullRequestChecksTool(config *config.McpServerConfig, client *client.PullRequestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetPullRequestChecksTool creates a tool for getting pull request status checks

func GetPullRequestTool

func GetPullRequestTool(config *config.McpServerConfig, client *client.PullRequestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetPullRequestTool creates a tool for getting a specific pull request

func GetRegistryTool

func GetRegistryTool(config *config.McpServerConfig, client *ar.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetRegistryTool creates a tool for getting a specific registry

func GetRepoCredentialsTool

func GetRepoCredentialsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetRepositoryTool

func GetRepositoryTool(config *config.McpServerConfig, client *client.RepositoryService) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetRepositoryTool creates a tool for getting a specific repository

func GetRoleInfoTool

func GetRoleInfoTool(config *config.McpServerConfig, roleInfoClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetScoreSummaryTool

func GetScoreSummaryTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetScorecardStatsTool

func GetScorecardStatsTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetScorecardTool

func GetScorecardTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetScoresTool

func GetScoresTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetSecretTool

func GetSecretTool(config *config.McpServerConfig, client *client.SecretsClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetSecretTool creates a tool for retrieving a secret from Harness

func GetServiceAccountTool

func GetServiceAccountTool(config *config.McpServerConfig, serviceAccountClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetServiceTool

func GetServiceTool(config *config.McpServerConfig, client *client.ServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

GetServiceTool creates a tool for getting details of a specific service https://apidocs.harness.io/tag/Services#operation/getServiceV2

func GetTeamDevelopersTool

func GetTeamDevelopersTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetTeamDevelopersTool creates a tool for getting team developers

func GetTeamIntegrationFiltersTool

func GetTeamIntegrationFiltersTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetTeamIntegrationFiltersTool creates a tool for getting team integration filters

func GetTeamIntegrationsTool

func GetTeamIntegrationsTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetTeamIntegrationsTool creates a tool for getting team integrations

func GetTeamTool

func GetTeamTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetTeamTool creates a tool for getting team information

func GetTeamsListTool

func GetTeamsListTool(config *config.McpServerConfig, client *client.SEIService) (mcp.Tool, server.ToolHandlerFunc)

GetTeamsListTool creates a tool for getting list of teams

func GetUserGroupInfoTool

func GetUserGroupInfoTool(config *config.McpServerConfig, userGroupInfoClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetUserInfoTool

func GetUserInfoTool(config *config.McpServerConfig, userInfoClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GetWorkloadRecommendationDetailTool

func GetWorkloadRecommendationDetailTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GitOpsGetRepositoryTool

func GitOpsGetRepositoryTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func GitOpsListRepositoriesTool

func GitOpsListRepositoriesTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func InviteUsersTool

func InviteUsersTool(config *config.McpServerConfig, usersClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListAgentsTool

func ListAgentsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListAllCcmAnomaliesTool

func ListAllCcmAnomaliesTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListApplicationEventsTool

func ListApplicationEventsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListApplicationSetsTool

func ListApplicationSetsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListApplicationsTool

func ListApplicationsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListArtifactFilesTool

func ListArtifactFilesTool(config *config.McpServerConfig, client *ar.ClientWithResponses) (
	tool mcp.Tool,
	handler server.ToolHandlerFunc,
)

ListArtifactFilesTool creates a tool for listing files for a specific artifact version in a registry

func ListArtifactSourcesTool

func ListArtifactSourcesTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListArtifactSourcesTool returns a tool for listing artifact sources.

func ListArtifactVersionsTool

func ListArtifactVersionsTool(config *config.McpServerConfig, client *ar.ClientWithResponses) (
	tool mcp.Tool,
	handler server.ToolHandlerFunc,
)

ListArtifactVersionsTool creates a tool for listing artifact versions in a registry

func ListArtifactsTool

func ListArtifactsTool(config *config.McpServerConfig, client *ar.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListArtifactsTool creates a tool for listing artifacts in a registry

func ListAvailablePermissions

func ListAvailablePermissions(config *config.McpServerConfig, permissionsClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListAvailableRolesTool

func ListAvailableRolesTool(config *config.McpServerConfig, rolesClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListCcmAnomaliesTool

func ListCcmAnomaliesTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListCcmCostCategoriesDetailTool

func ListCcmCostCategoriesDetailTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListCcmCostCategoriesTool

func ListCcmCostCategoriesTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListCcmIgnoredAnomaliesTool

func ListCcmIgnoredAnomaliesTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListCcmPerspectivesDetailTool

func ListCcmPerspectivesDetailTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListCcmRecommendationsByResourceTypeTool

func ListCcmRecommendationsByResourceTypeTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListCcmRecommendationsTool

func ListCcmRecommendationsTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListChecksTool

func ListChecksTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListClustersTool

func ListClustersTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListConnectorCatalogueTool

func ListConnectorCatalogueTool(harnessConfig *config.McpServerConfig, connectorService *client.ConnectorService) (mcp.Tool, server.ToolHandlerFunc)

func ListConnectorsTool

func ListConnectorsTool(config *config.McpServerConfig, connectorService *client.ConnectorService) (mcp.Tool, server.ToolHandlerFunc)

ListConnectorsTool creates a tool for listing connectors with filtering options https://apidocs.harness.io/tag/Connectors#operation/getConnectorListV2

func ListDashboardsTool

func ListDashboardsTool(config *config.McpServerConfig, client *client.DashboardService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListDashboardsTool creates a tool for listing all dashboards in Harness

func ListDelegateTokensTool

func ListDelegateTokensTool(config *config.McpServerConfig, client *client.DelegateTokenClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListDelegateTokensTool creates a tool for listing delegate tokens

func ListDelegatesTool

func ListDelegatesTool(config *config.McpServerConfig, client *client.DelegateClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListDelegatesTool creates a tool for listing delegates

func ListEntitiesTool

func ListEntitiesTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListEnvironmentsTool

func ListEnvironmentsTool(config *config.McpServerConfig, client *client.EnvironmentClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListEnvironmentsTool creates a tool for listing environments https://apidocs.harness.io/tag/Environments#operation/getEnvironmentList

func ListExecutionsTool

func ListExecutionsTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListExperimentTemplatesTool

func ListExperimentTemplatesTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListExperimentTemplatesTool creates a tool for listing the experiment templates

func ListExperimentVariablesTool

func ListExperimentVariablesTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListExperimentVariablesTool creates a tool for listing the experiment variables

func ListExperimentsTool

func ListExperimentsTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListExperimentsTool creates a tool for listing the experiments

func ListFMEEnvironmentsTool

func ListFMEEnvironmentsTool(config *config.McpServerConfig, fmeService *client.FMEService) (mcp.Tool, server.ToolHandlerFunc)

ListFMEEnvironmentsTool creates a tool for listing FME environments for a specific workspace

func ListFMEFeatureFlagsTool

func ListFMEFeatureFlagsTool(config *config.McpServerConfig, fmeService *client.FMEService) (mcp.Tool, server.ToolHandlerFunc)

ListFMEFeatureFlagsTool creates a tool for listing FME feature flags for a specific workspace

func ListFMEWorkspacesTool

func ListFMEWorkspacesTool(config *config.McpServerConfig, fmeService *client.FMEService) (mcp.Tool, server.ToolHandlerFunc)

ListFMEWorkspacesTool creates a tool for listing FME workspaces

func ListFilterValuesCcmAnomaliesTool

func ListFilterValuesCcmAnomaliesTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListInfrastructuresTool

func ListInfrastructuresTool(config *config.McpServerConfig, client *client.InfrastructureClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListInfrastructuresTool creates a tool for listing infrastructures https://apidocs.harness.io/tag/Infrastructures#operation/getInfrastructureList

func ListInputSetsTool

func ListInputSetsTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListJiraIssueTypesTool

func ListJiraIssueTypesTool(
	config *config.McpServerConfig,
	client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListJiraProjectsTool

func ListJiraProjectsTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListLinuxInfrastructuresTool

func ListLinuxInfrastructuresTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListLinuxInfrastructuresTool creates a tool for listing Linux infrastructure (load runners)

func ListLoadTestsTool

func ListLoadTestsTool(config *config.McpServerConfig, client *client.LoadTestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListLoadTestsTool creates a tool for listing load tests

func ListPipelinesTool

func ListPipelinesTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListProbesTool

func ListProbesTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListProbesTool creates a tool for listing the probes

func ListPromptsTool

func ListPromptsTool(config *config.McpServerConfig) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListPromptsTool creates a tool for listing prompts from the MCP server

func ListPullRequestsTool

func ListPullRequestsTool(config *config.McpServerConfig, client *client.PullRequestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListPullRequestsTool creates a tool for listing pull requests TODO: more options can be added (sort, order, timestamps, etc)

func ListRegistriesTool

func ListRegistriesTool(config *config.McpServerConfig, client *ar.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListRegistriesTool creates a tool for listing registries

func ListRepoCredentialsTool

func ListRepoCredentialsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListRepositoriesTool

func ListRepositoriesTool(config *config.McpServerConfig, client *client.RepositoryService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListRepositoriesTool creates a tool for listing repositories

func ListResourceActionsTool

func ListResourceActionsTool(config *config.McpServerConfig, client *client.GitOpsService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListRoleAssignmentsTool

func ListRoleAssignmentsTool(config *config.McpServerConfig, roleAssignmentsClient *client.ACLService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListSCSCodeReposTool

func ListSCSCodeReposTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListSCSCodeReposTool returns a tool for listing code repositories from Harness SCS.

func ListScorecardsTool

func ListScorecardsTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListSecretsTool

func ListSecretsTool(config *config.McpServerConfig, client *client.SecretsClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListSecretsTool creates a tool for listing secrets from Harness

func ListServicesTool

func ListServicesTool(config *config.McpServerConfig, client *client.ServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListServicesTool creates a tool for listing services https://apidocs.harness.io/tag/Services#operation/getServiceList

func ListSettingsTool

func ListSettingsTool(config *config.McpServerConfig, client *client.SettingsClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListSettingsTool creates a tool for listing settings in Harness

func ListTemplates

func ListTemplates(config *config.McpServerConfig, client *client.TemplateService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListTemplates creates a tool that allows querying templates at all scopes (account, org, project) depending on the input parameters.

func ListTriggersTool

func ListTriggersTool(config *config.McpServerConfig, client *client.PipelineService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ListUserAuditTrailTool

func ListUserAuditTrailTool(config *config.McpServerConfig, auditClient *client.AuditService) (tool mcp.Tool, handler server.ToolHandlerFunc)

ListAuditsOfUser creates a tool for listing the audit trail.

func MoveEnvironmentConfigsTool

func MoveEnvironmentConfigsTool(config *config.McpServerConfig, client *client.EnvironmentClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

MoveEnvironmentConfigsTool creates a tool for moving environment YAML from inline to remote https://apidocs.harness.io/tag/Environments#operation/moveEnvironmentConfigs

func MoveInfrastructureConfigsTool

func MoveInfrastructureConfigsTool(config *config.McpServerConfig, client *client.InfrastructureClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

MoveInfrastructureConfigsTool creates a tool for moving configurations between infrastructures https://apidocs.harness.io/tag/Infrastructures#operation/moveInfraConfigs

func OptionalAnyArrayParam

func OptionalAnyArrayParam(r mcp.CallToolRequest, p string) ([]any, error)

func OptionalIntParam

func OptionalIntParam(r mcp.CallToolRequest, p string) (int, error)

OptionalIntParam is a helper function that can be used to fetch a requested parameter from the request. It does the following checks: 1. Checks if the parameter is present in the request, if not, it returns its zero-value 2. If it is present, it checks if the parameter is of the expected type and returns it

func OptionalIntParamWithDefault

func OptionalIntParamWithDefault(r mcp.CallToolRequest, p string, d int) (int, error)

OptionalIntParamWithDefault is a helper function that can be used to fetch a requested parameter from the request similar to optionalIntParam, but it also takes a default value.

func OptionalParam

func OptionalParam[T any](r mcp.CallToolRequest, p string) (T, error)

OptionalParam is a helper function that can be used to fetch an optional parameter from the request.

func OptionalParamOK

func OptionalParamOK[T any](r mcp.CallToolRequest, p string) (value T, ok bool, err error)

OptionalParamOK is a helper function that can be used to fetch a requested parameter from the request. It returns the value, a boolean indicating if the parameter was present, and an error if the type is wrong.

func OptionalParamWithDefault

func OptionalParamWithDefault[T any](request mcp.CallToolRequest, paramName string, defaultValue T) (T, error)

Helper function for optional parameters with defaults

func OptionalStringArrayParam

func OptionalStringArrayParam(r mcp.CallToolRequest, p string) ([]string, error)

OptionalStringArrayParam is a helper function that can be used to fetch an optional string array parameter.

func OverrideCcmRecommendationSavingsTool

func OverrideCcmRecommendationSavingsTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ParseArtifactListParams

func ParseArtifactListParams(request mcp.CallToolRequest) (order string, sort string, page int, size int, sortVal interface{})

ParseArtifactListParams extracts and normalizes order, sort, page, size, and returns a sortVal interface{} for use in ListArtifactSourcesParams.

func ReportCcmAnomalyFeedbackTool

func ReportCcmAnomalyFeedbackTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func ReportCostCategoryKeyValuesEventTool

func ReportCostCategoryKeyValuesEventTool(config *config.McpServerConfig) (tool mcp.Tool, handler server.ToolHandlerFunc)

func RequiredParam

func RequiredParam[T comparable](r mcp.CallToolRequest, p string) (T, error)

RequiredParam is a helper function that can be used to fetch a required parameter from the request.

func RequiredParamOK

func RequiredParamOK[T comparable](r mcp.CallToolRequest, p string) (T, error)

RequiredParamOK is a helper function to make RequiredParam public without removing it to avoid conflicts.

func RevokeDelegateTokenTool

func RevokeDelegateTokenTool(config *config.McpServerConfig, client *client.DelegateTokenClient) (tool mcp.Tool, handler server.ToolHandlerFunc)

RevokeDelegateTokenTool creates a tool for revoking delegate tokens

func RunExperimentTool

func RunExperimentTool(config *config.McpServerConfig, client *client.ChaosService) (tool mcp.Tool, handler server.ToolHandlerFunc)

RunExperimentTool creates a tool to run the experiment

func RunLoadTestTool

func RunLoadTestTool(config *config.McpServerConfig, client *client.LoadTestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

RunLoadTestTool creates a tool for running a load test

func SearchTechDocsTool

func SearchTechDocsTool(config *config.McpServerConfig, client *client.IDPService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func StoAllIssuesListTool

func StoAllIssuesListTool(config *config.McpServerConfig, client *generated.ClientWithResponses) (tool mcp.Tool, handler server.ToolHandlerFunc)

StoAllIssuesListTool returns a tool for listing all issues from the STO Frontend.

func StoGlobalExemptionsTool

func StoGlobalExemptionsTool(config *config.McpServerConfig, client *generated.ClientWithResponses, principalClient *client.PrincipalService) (tool mcp.Tool, handler server.ToolHandlerFunc)

func StopLoadTestTool

func StopLoadTestTool(config *config.McpServerConfig, client *client.LoadTestService) (tool mcp.Tool, handler server.ToolHandlerFunc)

StopLoadTestTool creates a tool for stopping a running load test

func UpdateCcmPerspectiveTool

func UpdateCcmPerspectiveTool(config *config.McpServerConfig, client *client.CloudCostManagementService) (tool mcp.Tool, handler server.ToolHandlerFunc)

Update perspective

func UpdateCcmRecommendationStateTool

func UpdateCcmRecommendationStateTool(config *config.McpServerConfig, client *client.CloudCostManagementService,
) (tool mcp.Tool, handler server.ToolHandlerFunc)

func WithDashboardPagination

func WithDashboardPagination() mcp.ToolOption

WithDashboardPagination adds page and size parameters with dashboard-specific defaults

func WithPagination

func WithPagination() mcp.ToolOption

WithPagination adds page and size as optional parameters for pagination.

Types

type ActionData

type ActionData struct {
	Actions []struct {
		Text   string `json:"text"`
		Action string `json:"action"`
		Data   struct {
			PageName string            `json:"pageName"`
			Metadata map[string]string `json:"metadata"`
		} `json:"data"`
	} `json:"actions"`
}

type ArtifactSourcesListResponse

type ArtifactSourcesListResponse struct {
	Pagination PaginationInfo                        `json:"pagination"`
	Artifacts  []generated.ArtifactV2ListingResponse `json:"artifacts"`
}

ArtifactSourcesListResponse wraps the artifact sources list with pagination info

type CheckboxItem

type CheckboxItem struct {
	Key       string  `json:"key"`
	TotalCost float64 `json:"total_cost"`
}

CheckboxItem represents a single item in the present_checkbox event data

type ClientFunctionAnomaliesListInterface

type ClientFunctionAnomaliesListInterface func(ctx context.Context, accountId string, params map[string]any) (*map[string]any, error)

type ClientFunctionRecommendationsInterface

type ClientFunctionRecommendationsInterface func(ctx context.Context, accountId string, params map[string]any) (*map[string]any, error)

type CodeReposListResponse

type CodeReposListResponse struct {
	Pagination   PaginationInfo                               `json:"pagination"`
	Repositories *generated.CodeRepositoryListingResponseBody `json:"repositories"`
}

CodeReposListResponse wraps the code repositories list with pagination info

type CreateTicketForRecommendation

type CreateTicketForRecommendation func(ctx context.Context, accountId string, ticketDetails dto.CCMTicketDetails) (*map[string]any, error)

type DownloadLogsConfig

type DownloadLogsConfig struct {
	MaxLogLines    int                                                                                               // Enforce max lines (0 = use request parameter)
	GetDownloadURL func(ctx context.Context, scope dto.Scope, planExecutionID string, logKey string) (string, error) // Custom URL fetching logic
	HTTPClient     *http.Client                                                                                      // HTTP client for downloading logs (inherits TLS/proxy config)
}
type DropdownGroup struct {
	CostCategoryName string          `json:"cost_category_name"`
	ValueList        []DropdownValue `json:"value_list"`
}

DropdownGroup represents a grouped cost category with its values

type DropdownValue struct {
	Value     string  `json:"value"`
	TotalCost float64 `json:"total_cost"`
}

DropdownValue represents a value within a cost category dropdown

type ExtendedLogService

type ExtendedLogService struct {
	*client.LogService
}

func NewExtendedLogService

func NewExtendedLogService(logService *client.LogService) *ExtendedLogService

NewExtendedLogService creates a new ExtendedLogService wrapper

func (*ExtendedLogService) DefaultDownloadLogsConfig

func (l *ExtendedLogService) DefaultDownloadLogsConfig() *DownloadLogsConfig

DefaultDownloadLogsConfig returns the default configuration for downloading logs

type GetRecommendationDetail

type GetRecommendationDetail func(ctx context.Context, options dto.CCMRecommendationDetailOptions) (*map[string]any, error)

type LogFileInfo

type LogFileInfo struct {
	Name      string
	Timestamp time.Time
	Content   []byte
}

DownloadExecutionLogsTool creates a tool for downloading logs for a pipeline execution TODO: to make this easy to use, we ask to pass in an output path and do the complete download of the logs. This is less work for the user, but we may want to only return the download instruction instead in the future. LogFileInfo stores information about a log file

type LogServiceProvider

type LogServiceProvider interface {
	// DefaultDownloadLogsConfig returns the configuration for downloading logs
	DefaultDownloadLogsConfig() *DownloadLogsConfig
	// GetDownloadLogsURL returns the URL for downloading logs
	GetDownloadLogsURL(ctx context.Context, scope dto.Scope, planExecutionID string, logKey string, headers map[string]string) (string, error)
}

LogServiceProvider is an interface that defines the contract for log service implementations This allows different implementations (e.g., with custom authentication) to override the behavior

type OPAContent

type OPAContent struct {
	Policy struct {
		Name    string `json:"name"`
		Content string `json:"content"`
	} `json:"policy"`
	Metadata struct {
		DeniedLicenses []string `json:"denied_licenses"`
	} `json:"metadata"`
}

OPAContent represents the structure for OPA policy content

type PaginationInfo

type PaginationInfo struct {
	PageNumber    int `json:"page_number"`
	PageSize      int `json:"page_size"`
	TotalElements int `json:"total_elements"`
}

PaginationInfo represents pagination metadata from response headers

type SbomDownloadResponse

type SbomDownloadResponse struct {
	OrchestrationID string `json:"orchestration_id"`
	DownloadURL     string `json:"download_url"`
	Message         string `json:"message"`
}

SbomDownloadResponse represents the response containing SBOM download URL

type URLContent

type URLContent struct {
	URL     string `json:"url"`
	Label   string `json:"label,omitempty"`
	Message string `json:"message,omitempty"`
}

URLContent represents the content for a URL event

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL