github

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package github implements an MCP tool source that exposes the official GitHub MCP server (github.com/github/github-mcp-server) as a first-class `type: github` source. Connect decodes the source's `connect:` map, builds the upstream GitHub MCP server in-process, bridges it onto an in-memory MCP transport, and re-registers the upstream's tools on the parent MCP server with forwarding handlers. The upstream code lives in Go's module cache and is not analyzed by this project's linter, tests, or coverage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(
	ctx context.Context,
	connect map[string]any,
	opts ...tool.Option,
) (tool.Response, error)

Connect decodes the source's `connect:` map, builds the upstream GitHub MCP server in-process, bridges it onto an in-memory MCP transport, and returns a tool.Response carrying one tool.Tool per upstream tool. The upstream *mcp.Tool (including Title and Annotations) is passed through unchanged so the registered tool advertises exactly the same hints as the upstream. Forwarding handlers call into the upstream through the in-memory client session, which lives for the lifetime of the parent server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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