mcp

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 8 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 mcp implements a Model Context Protocol server (2024-11-05 spec, stdio transport) that exposes the Sweef engine as agent tools. This is what an AI client (Claude Desktop, OpenClaw agents, custom LLM loops) talks to: `sweef mcp` speaks JSON-RPC 2.0 over stdin/stdout with MCP framing — no browser process, no Electron, ~8 MB RSS total.

Index

Constants

View Source
const (
	PROTOCOL_VERSION = "2025-06-18"
	SERVER_NAME      = "sweef-browser"
	SERVER_VERSION   = "0.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server runs the MCP loop over rwc (stdin/stdout in production).

func New

func New(e *engine.Engine, w io.Writer) *Server

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, r io.Reader) error

Serve reads newline-delimited JSON-RPC until EOF.

Jump to

Keyboard shortcuts

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