Back to Home
agentplexus icon

mcpkit

Verified Safe

by agentplexus

Overview

A toolkit for building MCP (Model Context Protocol) applications and servers in Go, supporting both direct in-process function calls (library mode) and standard MCP transports (server mode) with OAuth 2.1 authentication.

Installation

Run Command
go run main.go

Environment Variables

  • NGROK_AUTHTOKEN

Security Notes

The project implements OAuth 2.1 with PKCE, Dynamic Client Registration (DCR), and Protected Resource Metadata (RFC 9728, 8414, 7591, 7636). It utilizes cryptographically secure token generation (`crypto/rand`) and constant-time comparisons (`crypto/subtle`) for sensitive operations. A critical open URL redirect vulnerability (CWE-601) in the `isValidRedirectURI` function was identified and promptly fixed in v0.3.1, demonstrating a proactive approach to security. The `oauth2.Config` allows for basic authentication via a `Users` map, which requires careful management of credentials by the implementer, though a custom `Authenticator` can be provided for more robust solutions. `ngrok` integration requires a securely managed `NGROK_AUTHTOKEN`.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Stars0
Forks0
Last Update2026-01-19

Tags

GoMCPServerToolkitOAuth2