mcp

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mcp provides a stdio MCP server for ccpersona voice synthesis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(ctx context.Context, version string) error

RunServer starts the MCP server and blocks until ctx is cancelled.

Types

type Player

type Player interface {
	PlayAudioBlocking(audioPath string) error
}

Player plays an audio file, blocking until playback completes.

type SpeakRequest

type SpeakRequest struct {
	Text       string
	Provider   string
	Speaker    int
	ProjectDir string
}

SpeakRequest contains parameters for a speak call.

type SpeakService

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

SpeakService handles text-to-speech requests.

func NewSpeakService

func NewSpeakService(synthesizer Synthesizer, player Player) *SpeakService

NewSpeakService creates a new SpeakService with the given dependencies.

func (*SpeakService) Speak

func (s *SpeakService) Speak(ctx context.Context, req SpeakRequest) error

Speak synthesizes the text in req and plays it back.

type Synthesizer

type Synthesizer interface {
	Synthesize(ctx context.Context, text string, opts voice.VoiceOptions) (string, error)
}

Synthesizer synthesizes text into an audio file.

Directories

Path Synopsis
Package adapter wraps mark3labs/mcp-go, isolating direct library usage to this layer.
Package adapter wraps mark3labs/mcp-go, isolating direct library usage to this layer.

Jump to

Keyboard shortcuts

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