Documentation
¶
Index ¶
- func SanitizeContent(s string) string
- type Client
- func (c *Client) Close() error
- func (c *Client) GetCurrentUser(ctx context.Context) (string, error)
- func (c *Client) GetIssue(ctx context.Context, key string) (*Issue, error)
- func (c *Client) Init(ctx context.Context) error
- func (c *Client) SearchIssues(ctx context.Context, jql string) ([]Issue, error)
- type Comment
- type CommentPage
- type Issue
- type IssueFields
- type IssueType
- type ParentRef
- type SearchResult
- type Status
- type StatusCategory
- type TokenStore
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeContent ¶
SanitizeContent strips Atlassian-specific custom HTML elements from markdown content, replacing them with their plain-text inner content.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client calls JIRA tools via the Atlassian MCP server.
func (*Client) GetCurrentUser ¶
GetCurrentUser returns the account ID of the authenticated user.
type CommentPage ¶
type Issue ¶
type Issue struct {
Key string
Fields IssueFields
}
type IssueFields ¶
type SearchResult ¶
SearchResult represents the paginated response from JIRA search.
type Status ¶
type Status struct {
Name string
StatusCategory StatusCategory
}
type StatusCategory ¶
type StatusCategory struct {
Key string // "new", "indeterminate", "done"
}
type TokenStore ¶
type TokenStore struct {
// contains filtered or unexported fields
}
TokenStore manages OAuth2 tokens for a named JIRA connection, persisting them to ~/.config/karya/jira-tokens/<name>.json.
func NewTokenStore ¶
func NewTokenStore(name string) *TokenStore
NewTokenStore creates a token store for the given connection name.
func (*TokenStore) AccessToken ¶
func (ts *TokenStore) AccessToken() (string, error)
AccessToken returns a valid access token, refreshing if needed.
func (*TokenStore) Endpoint ¶
func (ts *TokenStore) Endpoint() string
Endpoint returns the MCP endpoint URL stored with the token.
func (*TokenStore) HasToken ¶
func (ts *TokenStore) HasToken() bool
HasToken returns true if a token is loaded.
func (*TokenStore) RunAuthFlow ¶
func (ts *TokenStore) RunAuthFlow(ctx context.Context, endpoint string) error
RunAuthFlow discovers OAuth metadata from the MCP endpoint, performs dynamic client registration, and runs the PKCE authorization code flow.