mock-mcp-server

command
v1.0.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Mock MCP Server for testing external HTTP/SSE MCP server support. This simple server responds to MCP protocol requests with dummy data.

Usage:

go run main.go                   # HTTP mode on :8080
go run main.go -port 9000        # Custom port
go run main.go -sse              # Enable SSE response format

Supports:

  • initialize - MCP handshake
  • tools/list - Returns sample tools
  • tools/call - Echo tool that returns arguments

OAuth 2.1 mode for the mock MCP server. Enabled with -oauth, it turns the server into a self-contained protected resource + authorization server implementing exactly what gridctl's broker drives: RFC 9728 protected resource metadata, RFC 8414 AS metadata, RFC 7591 dynamic client registration (refusable with -oauth-no-dcr), an auto-approving authorization endpoint (no human in the loop, so integration tests can play the browser with a plain HTTP client), a token endpoint with PKCE S256 verification, RFC 8707 resource checks, rotating refresh tokens, and RFC 7009 revocation.

Jump to

Keyboard shortcuts

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