picklemcp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQLAction added in v0.2.0

type GraphQLAction struct {
	Name string
}

GraphQLAction represents a controller action exposed as a GraphQL mutation.

type GraphQLModel

type GraphQLModel struct {
	Model      string
	Operations []string
}

GraphQLModel represents an exposed model with its operations.

type RBACState

type RBACState struct {
	Roles          []generator.DerivedRole
	Policies       []generator.StaticPolicyOps
	GraphQLModels  []GraphQLModel
	GraphQLActions []GraphQLAction
}

RBACState holds the derived RBAC state for MCP tools.

func DeriveRBACState

func DeriveRBACState(projectDir string) *RBACState

DeriveRBACState returns the current RBAC state by scanning policy files in the project directory using AST-based parsing.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server wraps the MCP server with Pickle project context.

func NewServer

func NewServer(projectDir string) (*Server, error)

NewServer creates a Pickle MCP server with all tools registered.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the MCP server on stdio transport.

func (*Server) RunHTTP

func (s *Server) RunHTTP(addr string) error

RunHTTP starts the MCP server as a Streamable HTTP server on the given address.

Jump to

Keyboard shortcuts

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