Movatterモバイル変換


[0]ホーム

URL:


mcp

package
v2.28.4Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License:AGPL-3.0Imports:13Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (// MCPServerName is the name used for the MCP server.MCPServerName = "Coder"// MCPServerInstructions is the instructions text for the MCP server.MCPServerInstructions = "Coder MCP Server providing workspace and template management tools"// Used in tests and aibridge.MCPEndpoint = "/api/experimental/mcp/http")

Variables

This section is empty.

Functions

This section is empty.

Types

typeServer

type Server struct {Loggerslog.Logger// contains filtered or unexported fields}

Server represents an MCP HTTP server instance

funcNewServer

func NewServer(loggerslog.Logger) (*Server,error)

NewServer creates a new MCP HTTP server

func (*Server)RegisterChatGPTToolsadded inv2.26.0

func (s *Server) RegisterChatGPTTools(client *codersdk.Client)error

ChatGPT tools are the search and fetch tools as defined inhttps://platform.openai.com/docs/mcp.We do not expose any extra ones because ChatGPT has an undocumented "Safety Scan" feature.In my experiments, if I included extra tools in the MCP server, ChatGPT would often - but not always -refuse to add Coder as a connector.

func (*Server)RegisterTools

func (s *Server) RegisterTools(client *codersdk.Client)error

Register all available MCP tools with the server excluding:- ReportTask - which requires dependencies not available in the remote MCP context- ChatGPT search and fetch tools, which are redundant with the standard tools.

func (*Server)ServeHTTP

func (s *Server) ServeHTTP(whttp.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler interface

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp