-
Notifications
You must be signed in to change notification settings - Fork 23
Add mcp func #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add mcp func #494
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements OAuth 2.1 authentication for the Hazelcast Docs MCP (Model Context Protocol) server. The implementation adds GitHub-based authentication with PKCE security, token management, and protected resource endpoints compliant with MCP Authorization Specification and relevant RFCs (8414, 9728, 7636).
Key changes:
- OAuth 2.1 authorization server with GitHub as identity provider
- MCP server endpoint with bearer token authentication and Kapa.ai integration
- RFC-compliant discovery and metadata endpoints
Reviewed Changes
Copilot reviewed 10 out of 12 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Added MCP and OAuth dependencies, TypeScript tooling, and scripts for development |
| netlify/lib/auth-code-storage.ts | Defines authorization code storage interface and in-memory Map |
| netlify/edge-functions/oauth-token.ts | Token endpoint implementing authorization code and refresh token grants with PKCE verification |
| netlify/edge-functions/oauth-register.ts | Dynamic client registration endpoint for public MCP clients |
| netlify/edge-functions/oauth-protected-resource.ts | Protected resource metadata discovery endpoint |
| netlify/edge-functions/oauth-metadata.ts | Authorization server metadata discovery endpoint |
| netlify/edge-functions/oauth-callback.ts | GitHub OAuth callback handler with user authorization and code generation |
| netlify/edge-functions/oauth-authorize.ts | Authorization endpoint initiating OAuth flow with PKCE |
| netlify/edge-functions/mcp.ts | Protected MCP server endpoint with token verification and Hazelcast docs search tool |
| MCP_OAUTH_SETUP.md | Comprehensive setup and usage documentation |
| .gitignore | Added .env and .netlify to ignore list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 10 out of 12 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 13 out of 15 changed files in this pull request and generated 14 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 20 out of 22 changed files in this pull request and generated 16 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 20 out of 22 changed files in this pull request and generated 13 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
No description provided.