Documentation
¶
Index ¶
- type MCPService
- type SelectiveGatewayAdapter
- func (s *SelectiveGatewayAdapter) GetConfig(ctx context.Context, req *pb.GetConfigRequest) (*pb.GetConfigResponse, error)
- func (s *SelectiveGatewayAdapter) GetRuleStatus(ctx context.Context, req *pb.GetRuleStatusRequest) (*pb.GetRuleStatusResponse, error)
- func (s *SelectiveGatewayAdapter) ListProjects(ctx context.Context, req *pb.ListProjectsRequest) (*pb.ListProjectsResponse, error)
- func (s *SelectiveGatewayAdapter) ListWatchedPaths(ctx context.Context, req *pb.ListWatchedPathsRequest) (*pb.ListWatchedPathsResponse, error)
- func (s *SelectiveGatewayAdapter) ReadFileContent(ctx context.Context, req *pb.ReadFileContentRequest) (*pb.ReadFileContentResponse, error)
- func (s *SelectiveGatewayAdapter) TriggerRuleClient(ctx context.Context, req *pb.TriggerRuleClientRequest) (*pb.TriggerRuleClientResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCPService ¶
type MCPService struct {
// contains filtered or unexported fields
}
MCPService manages the MCP server for devloop
func NewMCPService ¶
func NewMCPService(orchestrator gateway.Orchestrator, port int) *MCPService
NewMCPService creates a new MCP service instance
func (*MCPService) Start ¶
func (m *MCPService) Start() error
Start initializes and starts the MCP server
type SelectiveGatewayAdapter ¶
type SelectiveGatewayAdapter struct {
// contains filtered or unexported fields
}
SelectiveGatewayAdapter exposes only essential devloop operations as MCP tools
func (*SelectiveGatewayAdapter) GetConfig ¶
func (s *SelectiveGatewayAdapter) GetConfig(ctx context.Context, req *pb.GetConfigRequest) (*pb.GetConfigResponse, error)
GetConfig implements the MCP GetConfig tool
func (*SelectiveGatewayAdapter) GetRuleStatus ¶
func (s *SelectiveGatewayAdapter) GetRuleStatus(ctx context.Context, req *pb.GetRuleStatusRequest) (*pb.GetRuleStatusResponse, error)
GetRuleStatus implements the MCP GetRuleStatus tool
func (*SelectiveGatewayAdapter) ListProjects ¶
func (s *SelectiveGatewayAdapter) ListProjects(ctx context.Context, req *pb.ListProjectsRequest) (*pb.ListProjectsResponse, error)
ListProjects implements the MCP ListProjects tool
func (*SelectiveGatewayAdapter) ListWatchedPaths ¶
func (s *SelectiveGatewayAdapter) ListWatchedPaths(ctx context.Context, req *pb.ListWatchedPathsRequest) (*pb.ListWatchedPathsResponse, error)
ListWatchedPaths implements the MCP ListWatchedPaths tool
func (*SelectiveGatewayAdapter) ReadFileContent ¶
func (s *SelectiveGatewayAdapter) ReadFileContent(ctx context.Context, req *pb.ReadFileContentRequest) (*pb.ReadFileContentResponse, error)
ReadFileContent implements the MCP ReadFileContent tool
func (*SelectiveGatewayAdapter) TriggerRuleClient ¶
func (s *SelectiveGatewayAdapter) TriggerRuleClient(ctx context.Context, req *pb.TriggerRuleClientRequest) (*pb.TriggerRuleClientResponse, error)
TriggerRuleClient implements the MCP TriggerRule tool
Click to show internal directories.
Click to hide internal directories.