{"modulePath":"github.com/gitopia/gitopia-mcp-server","version":"v0.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package session\n\n## Types\n\n```go\ntype ContextManager struct {\n\t// contains filtered or unexported fields\n}\n```\nContextManager manages user context for MCP sessions\n\n```go\nfunc NewContextManager(client *gitopia.Client) *ContextManager\n```\nNewContextManager creates a new context manager\n\n```go\nfunc (cm *ContextManager) GetContext() *UserContext\n```\nGetContext returns the current user context\n\n```go\nfunc (cm *ContextManager) GetContextSummary() string\n```\nGetContextSummary returns a human-readable summary of the current context\n\n```go\nfunc (cm *ContextManager) GetOwnerID() string\n```\nGetOwnerID returns the appropriate owner ID for operations If activeDAO is set, returns DAO ID, otherwise returns username\n\n```go\nfunc (cm *ContextManager) GetUsername() string\n```\nGetUsername returns the current username\n\n```go\nfunc (cm *ContextManager) InitializeFromWallet(walletAddress string) error\n```\nInitializeFromWallet initializes user context from wallet address\n\n```go\nfunc (cm *ContextManager) IsInitialized() bool\n```\nIsInitialized returns true if context is initialized\n\n```go\nfunc (cm *ContextManager) RefreshContext() error\n```\nRefreshContext refreshes the user context from Gitopia\n\n```go\nfunc (cm *ContextManager) SetActiveDAO(daoName string) error\n```\nSetActiveDAO sets the active DAO for operations\n\n```go\nfunc (cm *ContextManager) SetContext(ctx *UserContext)\n```\nSetContext sets the user context\n\n```go\ntype DAO struct {\n\tName        string   `json:\"name\"`\n\tID          string   `json:\"id\"`\n\tAddress     string   `json:\"address\"`\n\tIsOwner     bool     `json:\"is_owner\"`\n\tPermissions []string `json:\"permissions,omitempty\"`\n}\n```\nDAO represents a DAO that the user is a member of\n\n```go\ntype UserContext struct {\n\tUsername    string    `json:\"username\"`\n\tAddress     string    `json:\"address\"`\n\tUserID      string    `json:\"user_id\"`\n\tDAOs        []DAO     `json:\"daos,omitempty\"`\n\tActiveDAO   *DAO      `json:\"active_dao,omitempty\"`\n\tLastUpdated time.Time `json:\"last_updated\"`\n}\n```\nUserContext holds the current user session information\n\n","path":"github.com/gitopia/gitopia-mcp-server/internal/session","name":"session","synopsis":"","isRedistributable":true}
