Vibelogin Mcp

io.github.snrniranjan由 GitHub 账号 snrniranjan 发布v0.1.2更新于 Oct 24, 2026

Add authentication to your app without leaving your IDE.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

一个本地 MCP 服务器,让助手创建 VibeLogin 认证项目、配置登录方式,并把可用的登录流程脚手架写入你的代码库。

可以做什么
创建、列出并查询组织内的 VibeLogin 项目,包括密钥和环境信息。切换认证方式、设置重定向 URL 并配置 Google OAuth 凭据。向 Next.js 或 Vite + React 项目脚手架写入登录流程,以非破坏性方式生成文件并打印后续步骤。
适用场景
当你想在编辑器对话中让助手为 Next.js 或 Vite + React 应用添加托管认证,而不想手动配置认证时使用。对其他框架没有帮助,它会拒绝并给出指引。
运行要求
通过 bunx 在本地运行,因此机器上需要安装 Bun。无需环境变量。首次调用工具会打开浏览器进行一键授权,令牌缓存 30 天。需要 VibeLogin 账号和组织。
安装前请注意
首次调用会打开浏览器进行 OAuth 授权,并把令牌保存在磁盘上的凭据文件中。create_project 会返回仅显示一次的密钥,configure_auth 需要接收 Google OAuth 客户端密钥。传入 redirectUrls 时 configure_auth 会覆盖项目的重定向 URL 列表。add_auth_to_project 会向项目目录写入文件,但会跳过已存在的文件。项目与认证配置的更改发生在远程服务上。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Vibelogin Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@vibelogin/mcp

Add authentication to your app without leaving your IDE. MCP server for Cursor, Claude Code, Windsurf, and Cline.

Just say "add authentication to my app" — the agent creates your project, configures auth methods, wires up Google OAuth, and scaffolds a working sign-in flow into your codebase. All from your editor's chat.


Install

No global install needed. Wire it into your MCP client config once and it runs on demand via bunx.


Client configuration

One snippet works in every client. Paste this into your MCP settings and you're done.

json
{  "mcpServers": {    "vibelogin": {      "command": "bunx",      "args": ["@vibelogin/mcp"]    }  }}

The first tool call opens a browser for one-click consent. After that, tokens are cached under ~/.vibelogin/credentials.json — you won't be asked to log in again for 30 days.

Claude Desktop / Claude Code

~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "vibelogin": {      "command": "bunx",      "args": ["@vibelogin/mcp"]    }  }}

Cursor

~/.cursor/mcp.json (or per-project .cursor/mcp.json):

json
{  "mcpServers": {    "vibelogin": {      "command": "bunx",      "args": ["@vibelogin/mcp"]    }  }}

Windsurf / Cline / Zed

Same shape — every MCP client accepts a command + args block. The one-liner above works in all of them.

That's it — no environment variables needed. Defaults point to production automatically.


Authentication

On first use, a browser window opens for one-click consent. After that, you're authenticated for 30 days — no further prompts.


Tools

The agent picks the right tools automatically based on your conversation. Just say what you need.

create_project

Creates a new VibeLogin project in your org. Returns the project's id, slug, oauthSlug, environment, publishable key, and secret key (shown once).

ParamTypeRequiredDescription
namestringyesHuman-readable project name.
slugstringnoURL-safe slug; auto-generated from name if omitted.
environmentenumnoproduction | development | staging (default production).

list_projects

Lists every project in your org. Use this when the agent needs to discover what already exists before creating something new.

No parameters.

get_project

Look up a single project by id, slug, or oauthSlug.

ParamTypeRequiredDescription
idOrSlugstringyesProject id, slug, or oauthSlug.

configure_auth

Toggle auth methods, set redirect URLs, and/or wire up Google OAuth. Field-level updates — anything you don't set is left untouched.

ParamTypeRequiredDescription
projectIdstringyesThe project's id.
methods.emailPasswordbooleannoEnable email + password sign-in.
methods.magicLinkbooleannoEnable magic link emails.
methods.emailOtpbooleannoEnable 6-digit email OTP codes.
methods.passwordResetbooleannoEnable password reset emails.
methods.emailVerificationbooleannoRequire email verification on signup.
google.clientIdstringwith googleGoogle OAuth client ID (from Google Cloud Console).
google.clientSecretstringwith googleGoogle OAuth client secret.
google.enabledbooleannoDefault true.
redirectUrlsstring[]noOverwrites the project's allowed redirect URL list.

If you call this without google, the response includes the exact Google Cloud Console URL + redirect URI you need to set up the credentials.

add_auth_to_project

Scaffold a working sign-in flow into your codebase. Detects the framework from package.json and writes non-destructive files (existing files are skipped, never clobbered).

Supported frameworks today: Next.js (App Router), Vite + React. Refused with guidance: Remix, Astro, Express, unknown.

ParamTypeRequiredDescription
projectDirstringyesAbsolute path to the project root.
slugstringyesThe project's oauthSlug (from create_project).
publishableKeystringyesThe project's publishable key.
appUrlstringyesYour app's origin (e.g. https://myapp.com).
Files written for Next.js
middleware.ts                       # hostedAuthMiddlewareapp/auth/callback/route.ts          # createCallbackHandlerapp/login/page.tsx                  # <VibeLogin />.env.local.example                  # publishable key + secret placeholder

Next steps printed by the tool:

  1. pnpm add @vibelogin/nextjs
  2. Copy .env.local.example → .env.local, fill VIBELOGIN_SECRET_KEY
  3. pnpm dev → open /login
Files written for Vite + React
src/auth/VibeLoginProvider.tsx      # context + useVibeLogin() hooksrc/auth/Login.tsx                  # /login redirect to hosted UIsrc/auth/Callback.tsx               # /auth/callback handler.env.example                        # VITE_-prefixed publishable key

Next steps printed by the tool:

  1. pnpm add @vibelogin/react react-router-dom
  2. Wrap <App/> in <VibeLoginProvider/>
  3. Add routes /login and /auth/callback
  4. Copy .env.example → .env.local
  5. pnpm dev → open /login

Example conversations

You: "Add VibeLogin to this Next.js app. Email + password and Google sign-in."

Agent: (calls create_project { name: "myapp", environment: "production" }) Created myapp (pk_live_…). (calls configure_auth { projectId, methods: { emailPassword: true } }) Email + password enabled. To turn on Google, I need a Client ID and Secret from Google Cloud Console — here's the redirect URI to authorize: https://api.vibelogin.com/oauth/myapp-xyz/google/callback. (after you paste creds:) (calls configure_auth { google: { clientId, clientSecret } }) (calls add_auth_to_project { projectDir: ".", slug: "myapp-xyz", publishableKey: "pk_live_…", appUrl: "https://myapp.com" }) Scaffold complete (next). Wrote middleware.ts, app/auth/callback/route.ts, app/login/page.tsx, .env.local.example. Run pnpm add @vibelogin/nextjs && pnpm dev and open /login.

You: "What projects do I have already?"

Agent: (calls list_projects) You have 3: myapp (production), myapp-staging (staging), internal-tools (development).


Security

  • No secrets in the agent — authentication uses loopback OAuth + PKCE (RFC 8252)
  • Single-use authorization codes with 2-minute TTL
  • Rotated refresh tokens — every refresh invalidates the previous one
  • Credentials stored securely — chmod 600 on ~/.vibelogin/credentials.json

Supported frameworks

FrameworkStatus
Next.js (App Router)Fully supported
Vite + ReactFully supported
Remix, Astro, ExpressComing soon

License

Apache-2.0

来源:README.md,提交 521101c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。