imagemcp

package
v0.1.4921 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package imagemcp is `magpie mcp image`: a stdio MCP server an agent is given, when it is picked for it in the Library, to make images with the model the Settings' Image generation names, and videos with the first video model the gateway has (gateway.AutoVideomaker), or with the model a call names, among those the gateway lists for it. It asks the gateway, which knows the providers, and saves what comes back in the project.

Index

Constants

View Source
const (
	Folder      = "generated-images"
	VideoFolder = "generated-videos"
)

Folder is where images go in the project when no path is given, and VideoFolder where videos do.

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

Run serves MCP on stdin/stdout until stdin closes.

func Target added in v0.1.1596

func Target(dir, path, prompt, ext string, i, n int) (string, error)

Target is where the i-th of n files made from prompt, of extension ext, goes under dir: path as a file (numbered when n > 1) or a folder, else a name from the prompt in dir's generated-images/ (generated-videos/); never a file that is there. `magpie tool` saves what it is given by it.

func ToolTimeout added in v0.1.544

func ToolTimeout() time.Duration

ToolTimeout is how long a job of this server may run: generate_video waits up to videoWait for its video, and a minute more. A call answers within answerWithin all the same; the agents whose config takes it (Codex, Goose) are still given it, as a call's ceiling.

Types

This section is empty.

Jump to

Keyboard shortcuts

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