mcpserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 8 Imported by: ? 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 mcpserver offers the agent tools of package agenttools as an MCP server, over stdio for the efc CLI and over stateless Streamable HTTP at /mcp of the cloud server.

Index

Constants

View Source
const Path = "/mcp"

Path is where the cloud server serves remote MCP.

View Source
const ServerName = "efc"

ServerName is the name the MCP server reports to clients.

Variables

This section is empty.

Functions

func NewHTTPHandler

func NewHTTPHandler(rpcHandler http.Handler) http.Handler

NewHTTPHandler serves remote MCP over stateless Streamable HTTP. Every request must carry "Authorization: Bearer <EFC API token>". Cookies are never read, so a browser on another site cannot act with the session of a signed in user. Tool calls go in process to rpcHandler, the CloudService handler with its auth interceptor, so the token is checked exactly like on a direct API call.

func NewServer

func NewServer(tools *agenttools.Tools) *mcp.Server

NewServer returns an MCP server with the agent tools. It offers no tool that creates enrollment tokens, manages members, deletes anything other than the enabled state of a repository, or links installations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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