hap-oauth-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hap-oauth-mcprefresh my Mingdao login credentials"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hap-oauth-mcp
公开可安装的 skill 仓库,用于给 Codex、Claude Code 等支持 SKILL.md 的 AI 工具提供”明道云网页登录认证刷新”能力。
它内置一个 Playwright 登录刷新器,可以通过账号密码登录明道云,抓取:
AUTHORIZATION = “md_pss_id ...”ACCOUNT_IDCOOKIE
这些值可直接用于个人 MCP、自动化脚本或本地认证配置。
快速安装(作为 AI Skill)
Claude Code
claude skill add --name hap-oauth-mcp https://github.com/garfield-bb/hap-oauth-mcp安装后,在 Claude Code 中提到”刷新明道云登录”、”生成 md_pss_id”等关键词时会自动触发该 skill。
Codex / 其他支持 SKILL.md 的工具
将本仓库克隆到你的 skill 目录即可:
git clone https://github.com/garfield-bb/hap-oauth-mcp.git核心入口见 SKILL.md。
适用场景
生成个人 HAP/Mingdao MCP 所需网页登录凭据
重新刷新失效的
md_pss_id回写
auth_config.py之类的本地认证文件
安装运行环境
bash scripts/install.sh直接执行刷新
.venv/bin/python scripts/refresh_mdpassid.py \
--account "your-account@example.com" \
--password "your-password" \
--output "config/auth_config.py"可选参数:
--headless--login-url
输出格式
ACCOUNT_ID = "xxx"
AUTHORIZATION = "md_pss_id xxx"
COOKIE = (
"cookie_a=1; cookie_b=2"
)注意
如果登录页出现滑块、拼图或其他安全验证,无头模式可能无法直接完成登录。这种情况下应切换到有头模式,让用户手动完成验证后再继续抓取认证信息。
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/garfield-bb/hap-oauth-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server