server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package server contains Portosync server component

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v0.2.0

type Account struct {
	Username string
	Password string
}

type Balance

type Balance struct {
	SourceType    string  `` /* 139-byte string literal not displayed */
	SourceAccount string  `` /* 147-byte string literal not displayed */
	AssetSymbol   string  `json:"asset_symbol"   jsonschema:"description:Trading symbol or ticker of the asset (e.g., BBCA for Bank Central Asia stock)"`
	AssetName     string  `json:"asset_name"     jsonschema:"description:Full descriptive name of the asset"`
	AssetType     string  `json:"asset_type"     jsonschema:"description:Primary classification of the asset (e.g., Stock, Bond, Mutual Fund)"`
	AssetSubType  string  `` /* 136-byte string literal not displayed */
	UnitsAmount   float64 `json:"units_amount"   jsonschema:"description:Quantity of asset units held in the account"`
	UnitsValue    float64 `json:"units_value"    jsonschema:"description:Total monetary value of the asset holdings in the specified currency"`
	UnitsCurrency string  `` /* 133-byte string literal not displayed */
}

func (Balance) AssetTypeFull

func (b Balance) AssetTypeFull() string

func (Balance) Description

func (b Balance) Description() string

type GetPortfolioArgs

type GetPortfolioArgs struct {
	AccountNames []string `` /* 295-byte string literal not displayed */
}

type GetPortfolioResult

type GetPortfolioResult struct {
	Balances []Balance `` /* 183-byte string literal not displayed */
}

func (GetPortfolioResult) Description

func (r GetPortfolioResult) Description() string

Description returns a description of the GetPortfolioResult as MCP response text

type ListAccountNamesArgs added in v0.3.0

type ListAccountNamesArgs struct {
}

type ListAccountNamesResult added in v0.3.0

type ListAccountNamesResult struct {
	AccountNames []string `` /* 194-byte string literal not displayed */
}

func (ListAccountNamesResult) Description added in v0.3.0

func (r ListAccountNamesResult) Description() string

Description returns a description of the ListAccountNamesResult as MCP response text

type MCP

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

MCP wraps the MCP SDK server

func NewMCP

func NewMCP(accounts map[string]Account, plainPassword bool, authCacheDir string) *MCP

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

func (*MCP) RunHTTP

func (m *MCP) RunHTTP(ctx context.Context, bindAddress string) error

func (*MCP) RunStdio

func (m *MCP) RunStdio(ctx context.Context) error

Jump to

Keyboard shortcuts

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