GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — feat(mcp): MCP server (search + publish) & fix empty English search index by Crokily · Pull Request #365 · InvolutionHell/involutionhell Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: f0c9156e8a
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
收到,我看看 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
source.getPages() without a locale argument only returns default-locale
(zh) pages, so the static /search.en.json index has been empty since the
i18n split. Enumerate pages with getPages("en") and classify English
pages by the .en.md(x) file suffix in addition to lang frontmatter, so
translations missing lang: en are indexed and excluded from the zh shard.
Expose /api/mcp (Streamable HTTP, stateless) with two tools: - search: server-side Orama query over the existing zh/en Fumadocs index pipeline, public with Upstash rate limiting - publish: forwards to the backend POST /api/posts with the caller's satoken (Authorization: Bearer), returning the public post URL Credential verification is isolated in lib/mcp/auth.ts and only runs for publish calls; invalid tokens get a 401 challenge, auth-service outages a 503, and both backend fetches carry 10s timeouts. The route validates body size (1 MB), JSON syntax, and rejects JSON-RPC batches before the transport. /.well-known/oauth-protected-resource prepares the OAuth resource-server metadata; the authorization-server rollout plan for the backend team is documented in dev_docs/mcp_auth_upgrade.md.
f0c9156 to
7812941
Compare
/mcp (SSG, zh/en) lets users pick their MCP client and copy install commands with their satoken auto-filled client-side after login. Covers Claude Code, Codex CLI, OpenCode, Gemini CLI, Cursor, VS Code, the two web clients (search-only until OAuth), and Pi (via the companion skill/CLI since Pi has no MCP support). Command syntax per client was verified against current official docs. The token is read from localStorage only after mount and never appears in prerendered HTML. Also documents the sa-token sliding-renewal option for the backend as a near-term way to reduce 30-day token churn before OAuth.
Browser-hosted MCP clients preflight OPTIONS and need Access-Control-Allow-Origin on responses. Add an OPTIONS handler and a centralized CORS wrapper over GET/POST (streaming-safe), exposing WWW-Authenticate so browser clients can read the auth challenge. Wildcard origin is safe here: auth is bearer-header based, not cookies. Co-authored-by: chatgpt-codex-connector[bot] <chatgpt-codex-connector[bot]@users.noreply.github.com>
The /mcp page now builds install commands against the current origin after mount, so local dev and Vercel previews produce directly usable /api/mcp URLs while prerendered HTML keeps the production default.
There was an error while loading. Please reload this page.
|
该 PR 合并后,维护者需要进行一下 Registry 的登记,把我们的 MCP server( https://involutionhell.com/api/mcp )收录进官方 MCP Registry,收录后会自动同步到 GitHub MCP Registry,用户在各类 AI 客户端里搜 "involutionhell" 就能直接找到并接入。大概的做法就是:安装官方工具 mcp-publisher,进入 involutionhell-agent-tools 仓库的 docs/registry/ 目录(已备好 server.json 模板和详细 runbook),依次跑 mcp-publisher init、mcp-publisher login github(跳浏览器,用有 InvolutionHell org 身份的 GitHub 账号授权一次)、mcp-publisher publish,最后去 registry.modelcontextprotocol.io 搜 involutionhell 确认条目存在即可,全程不改代码、约十分钟。 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
这一步我会,我其他项目就登记过了,Gallama和其他awsome-project我都去注册一下,到时候把链接发Discord群里,大家去表态一下就可以增加成功率 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
9f6aaac8
Deployed
9f6aaac8
Deployed
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.