Skip to content

feat: add mcp, landing page, and more - #59

Open
mhd-hi wants to merge 8 commits into
mainfrom
mcp-ai
Open

feat: add mcp, landing page, and more#59
mhd-hi wants to merge 8 commits into
mainfrom
mcp-ai

Conversation

@mhd-hi

@mhd-hi mhd-hi commented Sep 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

- Added support for static API keys in MCP authentication, allowing users to authenticate using hashed keys.
- Updated the MCP connections schema to include keyHash, keyPrefix, and keyLastUsedAt fields.
- Refactored the MCP authentication logic to handle API key authentication alongside OAuth JWT.
- Improved error handling for revoked and unknown API keys.
- Removed the development-only token minting endpoint for security reasons.
- Enhanced the Preferences UI to manage API keys and provide connection instructions.
- Updated tests to cover new API key functionality and ensure proper authentication flow.
Comment thread scripts/mcp-smoke.ts Fixed
Comment thread src/lib/auth/mcp.ts
}

export function sha256Hex(value: string): string {
return createHash('sha256').update(value).digest('hex');
Comment thread src/lib/utils/html-util.ts Fixed
Comment thread src/lib/utils/html-util.ts Fixed
Comment thread src/lib/utils/html-util.ts Fixed
Comment thread src/lib/utils/html-util.ts Fixed
Comment thread tests/unit/mcp-review-app.test.ts Fixed
Comment thread src/styles/landing.css
--landing-shadow:
0 1px 2px color-mix(in oklab, var(--foreground) 8%, transparent),
0 16px 40px -20px color-mix(in oklab, var(--foreground) 28%, transparent);
color: var(--foreground);
Comment thread src/styles/landing.css
background: color-mix(in oklab, var(--primary) 11%, transparent);
}

.landing-feature-icon svg {
Comment thread src/styles/landing.css
opacity: 0;
transform: translateY(12px);
}
to {
Comment thread src/styles/landing.css
opacity: 0;
transform: rotate(-1.4deg) translateY(12px);
}
to {
Comment thread src/styles/landing.css
opacity: 0;
transform: rotate(0.9deg) translateX(0.9rem) translateY(12px);
}
to {

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Csslint (reported by Codacy) found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@semgrep-code-mhd-hi

Copy link
Copy Markdown

Semgrep found 6 detect-object-injection findings:

Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype, leading to possible code execution.

Comment thread scripts/mcp-smoke.ts
}

const noAuth = await post();
console.log(`no-token: ${noAuth}`);
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.

2 participants