Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions internal/rpc/mcp_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ import (

"github.com/capiscio/capiscio-core/v2/pkg/badge"
"github.com/capiscio/capiscio-core/v2/pkg/mcp"
"github.com/capiscio/capiscio-core/v2/pkg/pip"
"github.com/capiscio/capiscio-core/v2/pkg/registry"
pb "github.com/capiscio/capiscio-core/v2/pkg/rpc/gen/capiscio/v1"
)

// MCPService implements the MCPServiceServer interface for RFC-006 and RFC-007.
// MCPService implements the MCPServiceServer interface for RFC-005, RFC-006, and RFC-007.
type MCPService struct {
pb.UnimplementedMCPServiceServer
service *mcp.Service
service *mcp.Service
decisionCache pip.DecisionCache
}

// MCPServiceConfig configures the MCP service
Expand Down Expand Up @@ -114,7 +116,8 @@ func NewMCPServiceWithConfig(cfg MCPServiceConfig) (*MCPService, error) {
}

return &MCPService{
service: mcp.NewService(deps),
service: mcp.NewService(deps),
decisionCache: pip.NewInMemoryCache(),
}, nil
}

Expand Down
Loading
Loading