JavaScript Auth Server
БесплатноНе проверенDemonstrates MCP remote authentication boundary with OAuth 2.0, Keycloak token introspection, audience and scope validation, and protected tools.
Описание
Demonstrates MCP remote authentication boundary with OAuth 2.0, Keycloak token introspection, audience and scope validation, and protected tools.
README
This package shows the remote MCP auth boundary in JavaScript:
- Express HTTP server
- MCP Streamable HTTP transport at
/mcp - Protected Resource Metadata
- Bearer token middleware
- Keycloak token introspection
- audience validation
mcp:toolsscope enforcement- protected
add_numbersandserver_statustools
Run
pnpm mcp-auth-server-js install
cp .env.example .env
pnpm mcp-auth-server-js demo:keycloak
pnpm mcp-auth-server-js start
For the demo, configure Keycloak with:
- client scope:
mcp:tools - MCP server confidential client:
mcp-server - demo client/user for obtaining an access token
- token audience:
http://localhost:3000/mcp
Demo Scripts
pnpm mcp-auth-server-js demo:no-token
pnpm mcp-auth-server-js demo:metadata
pnpm mcp-auth-server-js demo:get-token
pnpm mcp-auth-server-js demo:call-tool
pnpm mcp-auth-server-js demo:bad-scope
The important point is the failure order:
- no token returns
401withWWW-Authenticate - metadata tells the client where auth lives
- token introspection rejects inactive tokens
- audience validation rejects tokens for another API
- scope validation rejects tokens without
mcp:tools
Установка JavaScript Auth Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/kabirrajsingh/mcp-server-auth-jsFAQ
JavaScript Auth Server MCP бесплатный?
Да, JavaScript Auth Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для JavaScript Auth Server?
Нет, JavaScript Auth Server работает без API-ключей и переменных окружения.
JavaScript Auth Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить JavaScript Auth Server в Claude Desktop, Claude Code или Cursor?
Открой JavaScript Auth Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare JavaScript Auth Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
