server

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarkResult

type BookmarkResult struct {
	ID          int      `json:"id"`
	URL         string   `json:"url"`
	Title       string   `json:"title"`
	Description string   `json:"description,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	Success     bool     `json:"success"`
	Message     string   `json:"message,omitempty"`
}

BookmarkResult defines the output structure for bookmark operations

type CreateBookmarkArgs

type CreateBookmarkArgs struct {
	URL         string   `json:"url" jsonschema:"description:URL to bookmark"`
	Title       string   `json:"title,omitempty" jsonschema:"description:Bookmark title"`
	Description string   `json:"description,omitempty" jsonschema:"description:Bookmark description"`
	Tags        []string `json:"tags,omitempty" jsonschema:"description:List of tags"`
}

CreateBookmarkArgs defines the input structure for create_bookmark tool

type GetTagsArgs

type GetTagsArgs struct {
	Limit int `json:"limit,omitempty" jsonschema:"description:Maximum number of tags to return,default:50"`
}

GetTagsArgs defines the input structure for get_tags tool

type MCPServer

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

MCPServer wraps the MCP SDK server

func NewMCP

func NewMCP(linkdingURL, apiToken string) *MCPServer

NewMCP creates a new MCP server using the official MCP Go SDK

func (*MCPServer) RunHTTP

func (s *MCPServer) RunHTTP(ctx context.Context, bindAddress string) error

func (*MCPServer) RunStdio

func (s *MCPServer) RunStdio(ctx context.Context) error

type SearchBookmarksArgs

type SearchBookmarksArgs struct {
	Query string `json:"query,omitempty" jsonschema:"description:Search query"`
	Limit int    `json:"limit,omitempty" jsonschema:"description:Maximum number of results,default:20"`
}

SearchBookmarksArgs defines the input structure for search_bookmarks tool

type TagResult

type TagResult struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

TagResult defines the output structure for tag operations

Jump to

Keyboard shortcuts

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