mcp

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRelationshipsArgs

type DeleteRelationshipsArgs struct {
	ResourceType    string `json:"resource_type,omitempty"`
	ResourceID      string `json:"resource_id,omitempty"`
	Relation        string `json:"relation,omitempty"`
	SubjectType     string `json:"subject_type,omitempty"`
	SubjectID       string `json:"subject_id,omitempty"`
	SubjectRelation string `json:"optional_subject_relation,omitempty"`
}

type RelationshipDef

type RelationshipDef struct {
	ResourceType    string         `json:"resource_type"`
	ResourceID      string         `json:"resource_id"`
	Relation        string         `json:"relation"`
	SubjectType     string         `json:"subject_type"`
	SubjectID       string         `json:"subject_id"`
	SubjectRelation string         `json:"optional_subject_relation,omitempty"`
	CaveatName      string         `json:"caveat_name,omitempty"`
	CaveatContext   map[string]any `json:"caveat_context,omitempty"`
	Expiration      *time.Time     `json:"expiration,omitempty"`
}

type SpiceDBMCPServer

type SpiceDBMCPServer = spiceDBMCPServer

SpiceDBMCPServer is the publicly exported type for the SpiceDB MCP server.

func NewSpiceDBMCPServer

func NewSpiceDBMCPServer() *SpiceDBMCPServer

NewSpiceDBMCPServer creates a new instance of the SpiceDB MCP server.

type UpdateRelationshipsArgs

type UpdateRelationshipsArgs struct {
	Create []RelationshipDef `json:"create,omitempty"`
	Touch  []RelationshipDef `json:"touch,omitempty"`
	Delete []RelationshipDef `json:"delete,omitempty"`
}

type ValidationFile

type ValidationFile struct {
	Schema        string   `yaml:"schema"`
	Relationships []string `yaml:"relationships"`
}

Jump to

Keyboard shortcuts

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