Skip to content

Commit f3b0d1b

Browse files
Remove server instructions for unauthenticated mode
- Remove custom Instructions text from unauthenticated server - Tool schema is sufficient - auth tool describes itself - Auth tool is conditionally present only when needed - Simplifies server initialization Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
1 parent 8a48cad commit f3b0d1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/ghmcp/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,7 @@ func NewUnauthenticatedMCPServer(cfg MCPServerConfig) (*UnauthenticatedServerRes
332332

333333
// Create the MCP server with capabilities advertised for dynamic tool registration
334334
serverOpts := &mcp.ServerOptions{
335-
Instructions: "GitHub MCP Server - Authentication Required\n\nYou are not currently authenticated with GitHub. Use the auth_login tool to complete authentication. This is a single, blocking call that will guide you through the entire device authorization flow and return once authentication has finished.",
336-
Logger: cfg.Logger,
335+
Logger: cfg.Logger,
337336
// Advertise capabilities since tools will be added after auth
338337
Capabilities: &mcp.ServerCapabilities{
339338
Tools: &mcp.ToolCapabilities{ListChanged: true},

0 commit comments

Comments
 (0)