Skip to content

feat: add authorization middleware to protect endpoints #6

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

manekinekko
Copy link
Collaborator

image
mcp-container-ts-clear-token
mcp-container-ts-enter-token
mcp-inspector

@manekinekko manekinekko requested a review from Copilot April 30, 2025 13:44
Copy link

@Copilot Copilot AI left a 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 introduces an authorization middleware to protect endpoints by requiring a specific token for access.

  • Added a requireAuth middleware in src/index.ts that validates the authorization header.
  • Updated the README.md with new instructions and configurations for token-based authentication.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/index.ts Added FAKE_TOKEN and a requireAuth middleware used in routes.
README.md Revised documentation to include token prompts and updated connection instructions.
Files not reviewed (1)
  • .vscode/mcp.json: Language not supported

manekinekko and others added 2 commits April 30, 2025 15:57
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant