dev-mcp-mock

command
v1.170.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 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

dev-mcp-mock is a development-only fixture that dev/start.sh launches alongside the platform so operators can exercise the MCP gateway feature end-to-end without setting up a real upstream. Two services run from a single process:

  • :9180 Mock OAuth 2.1 provider with authorization_code+PKCE, refresh_token, and client_credentials grants. Access tokens default to a 1-hour TTL (override with ACCESS_TTL_SECONDS=10 to exercise refresh quickly).
  • :9181 Mock MCP server (streamable HTTP) with three trivial tools: echo, add, now. Bearer-permissive by default; set STRICT_AUTH=1 to validate that the bearer token was issued by the OAuth server above.

dev/seed.sql pre-creates an mcp connection named "dev-mock" pointing at this server, so opening the admin portal immediately shows dev-mock__echo / dev-mock__add / dev-mock__now in the platform's tools/list.

Usage:

go run ./cmd/dev-mcp-mock
STRICT_AUTH=1 go run ./cmd/dev-mcp-mock
ACCESS_TTL_SECONDS=10 go run ./cmd/dev-mcp-mock

Health:

curl http://localhost:9180/.health
curl http://localhost:9181/.health

Jump to

Keyboard shortcuts

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