@civic/auth-mcp
🔐 Authentication for Model Context Protocol - Monorepo
This repository contains the Civic Auth MCP library and examples for adding secure authentication to MCP servers and clients.
Power your agent
पब्लिशर की अपनी कमांड। PlugMCP एंडपॉइंट नहीं।
Host a copy with our keys and logs.
npx -y @civic/[email protected]Claude Code में लोकल कमांड के लिए इंस्टॉल लिंक नहीं है। नीचे दी गई कमांड कॉपी करें और टर्मिनल में चलाएँ।
claude mcp add civic-auth-mcp -- npx -y @civic/auth-mcp@1.0.0टर्मिनल में चलाएँ।
{ "mcpServers": { "civic-auth-mcp": { "command": "npx", "args": [ "-y", "@civic/[email protected]" ] } }}claude_desktop_config.json
रिमोट URL या आपकी मशीन पर कमांड? दोनों इंस्टॉल में क्या अंतर है
PlugMCP पर चलाएँ
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
लॉन्च# Install the library
pnpm add @civic/auth-mcp
# Run examples
pnpm install
pnpm build
pnpm --filter example-server start
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Run linting
pnpm lint
This project uses audit-ci for dependency vulnerability scanning in CI/CD. To manage security vulnerabilities:
audit-ci.jsonc to add vulnerabilities to the allowlistpnpm run audit:ci (fails on moderate+ vulnerabilities not in allowlist)To allowlist a vulnerability, add its identifier to audit-ci.jsonc:
{
"allowlist": [
"GHSA-xxxx-xxxx-xxxx", // GitHub Security Advisory
"CVE-2024-xxxxx", // CVE identifier
"1234567" // NPM advisory ID
]
}
Full documentation and usage examples are available in the library/ package.
For backward compatibility, the auth() middleware automatically includes legacy OAuth endpoints that allow MCP servers to act as OAuth servers. This mode is enabled by default but is deprecated.
The following endpoints are automatically exposed:
/.well-known/oauth-authorization-server - OAuth server metadata/authorize - Authorization endpoint (proxies to Civic Auth)/token - Token endpoint (proxies to Civic Auth)/register - Registration endpoint (if supported)To disable legacy mode:
app.use(await auth({
enableLegacyOAuth: false // Disable legacy OAuth endpoints
}));
It is provided as-is, without warranty of any kind, express or implied. Civic makes no guarantees of fitness for a particular purpose or ongoing support. Use of this library is governed solely by the terms of the MIT License.
By using this software, you agree that Civic shall not be held liable for any damages arising from its use, performance, or integration.
Note: The @civic/auth-mcp library is released as an open-source project under the MIT License.
It is provided without warranty or support guarantees.
{ "mcpServers": { "civic-auth-mcp": { "command": "npx", "args": [ "-y", "@civic/[email protected]" ] } }}टूल
अभी टूल सूची नहीं है। रिमोट सर्वर को पहले हेल्थ चेक के बाद सूची मिलती है।
FAQ
इस पेज पर Cursor, Claude Desktop, Claude Code या VS Code के लिए stdio कॉन्फ़िग कॉपी करें। यह पब्लिशर का इंस्टॉल इस्तेमाल करता है, PlugMCP प्रॉक्सी नहीं।
इस रिकॉर्ड में कोई ज़रूरी एनवायरनमेंट वेरिएबल दर्ज नहीं है।
@civic/auth stdio पर लोकल चलता है।
पिछली जाँच 2026-11-16 को हुई। Civic Auth integration for MCP servers