chore: repo cleanup + hosted MCP sign-in documentation#7
Merged
Conversation
- Remove empty STATUS.md stub and the duplicate PR template under .github/PULL_REQUEST_TEMPLATE/ (GitHub only loads the top-level .github/pull_request_template.md). - Fix the CI "OpenAPI 3.1 examples format" grep in .github/workflows/validate-openapi.yml: the previous regex matched `example:` as a prefix of the valid 3.1 `examples:`, so the check would fail on any conforming spec. Replace with a bounded regex that flags only the deprecated singular form. - Bump CI Node.js from EOL 18 to 22 across all three workflow jobs. - Dedupe and regroup .gitignore; keep env/key/secret patterns and drop dead third-party sections that never applied here. - Trim stale content from CHANGELOG.md: remove the legacy unversioned credit-cost table (superseded by README `/v1/...` routes) and the "snake_case throughout" line already retracted in [Unreleased]. - Normalize trailing whitespace in the PR template. - Track package-lock.json for reproducible CI installs.
Pull the canonical sign-in details from the public discovery endpoints (https://mcp.leadmagic.io/mcp, /clients, and the two .well-known/ OAuth metadata URLs) and cross-wire them into every doc surface so humans, AI tools, and security reviewers land on the same facts. README.md - New "Hosted MCP sign-in" section with: * Auth-mode table: OAuth + Dynamic Client Registration (recommended), OAuth with the published static public client (4b9eLjoGVCJ1Dvnc, PKCE, no secret), x-leadmagic-key API-key header, and Authorization: Bearer fallback. * OAuth metadata URLs, scopes (openid profile email offline_access), and issuer (https://clerk.leadmagic.io). * Cursor guidance — plugin-first, plus URL-only .cursor/mcp.json and API-key-via-env variants for locked-down environments. * Client coverage table for Claude, ChatGPT, VS Code/Copilot, Windsurf, Zed, Cline, Roo Code, OpenCode, Continue, Amp, Augment, JetBrains, Gemini CLI, Amazon Q, Copilot Coding Agent. * Vercel AI SDK snippet using @ai-sdk/mcp createMCPClient, reading the key from process.env.LEADMAGIC_API_KEY. SECURITY.md - Extend the official allow-list with the OAuth authorization server metadata URL, protected resource metadata URL, DCR registration endpoint, and the static public OAuth client ID. Flag the client ID explicitly as public-by-design so nobody mistakes it for a credential or a leak. - Reconcile tool count with the README (10 hosted MCP tools, not 16). llms.txt / llms-full.txt - Add a "Hosted MCP Sign-In" section mirroring the README content in an LLM-friendly, link-first format. - Align the MCP surface description to the enumerated 10 tools in the README.
6 tasks
jesseoue
added a commit
that referenced
this pull request
Apr 19, 2026
chore: repo cleanup + hosted MCP sign-in documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two-commit cleanup pass that (1) removes rot and fixes latent CI bugs, and (2) documents the hosted MCP sign-in flow so every surface (humans, AI tools, security reviewers) reads from the same public source of truth.
chore: delete emptySTATUS.md, delete the duplicate PR template under.github/PULL_REQUEST_TEMPLATE/, fix the OpenAPI 3.1examplesgrep that was matchingexamples:as a prefix of itself, bump CI Node 18 → 22, dedupe.gitignore, trim stale credit tables fromCHANGELOG.md, and trackpackage-lock.json.docs: add a comprehensive Hosted MCP sign-in section toREADME.md, extend theSECURITY.mdallow-list with the OAuth metadata / DCR / static-client entries, and mirror the same facts intollms.txt/llms-full.txt.All content was pulled from the public discovery endpoints:
https://mcp.leadmagic.io/mcphttps://mcp.leadmagic.io/clientshttps://mcp.leadmagic.io/.well-known/oauth-authorization-serverhttps://mcp.leadmagic.io/.well-known/oauth-protected-resource/mcpWhat changed
CI and repo hygiene (
3275284).github/workflows/validate-openapi.ymlexample:grep (was matchingexamples:by prefix — workflow would have failed on any valid 3.1 spec). Bump Node to 22 across all three jobs..github/pull_request_template.md.github/PULL_REQUEST_TEMPLATE/pull_request_template.md.gitignore.env,.npm,node_modules/,.node_repl_historywere each listed twice). Drop third-party sections that never applied here (Gatsby, Storybook, Nuxt, etc.).CHANGELOG.md/v1/...routes) and thesnake_case throughoutbullet already retracted in[Unreleased].STATUS.mdpackage-lock.jsonHosted MCP sign-in docs (
6261fb1)README.mdmcp.json, API-key-via-env), client coverage table (Claude, ChatGPT, VS Code/Copilot, Windsurf, Zed, Cline, Roo Code, OpenCode, Continue, Amp, Augment, JetBrains, Gemini CLI, Amazon Q, Copilot Coding Agent), and a Vercel AI SDK snippet.SECURITY.md4b9eLjoGVCJ1Dvnc). Explicitly flagged as public by design (PKCE, no secret) so it is not mistaken for a credential or a leak.llms.txt/llms-full.txtSecret scan
Scanned the whole tree for Stripe / Slack / GitHub / AWS / Google / private-key patterns and literal
LEADMAGIC_API_KEY=...assignments — zero matches. The only key-looking string ispk_38xEiBSnX3Ci24Jl0gn3Qincontext7.json, under the explicitpublic_keyfield (that is Context7's public library identifier, expected to be committed).Test plan
npm run typecheck— cleannpm run lint:openapi(Spectral) —No results with a severity of "error" found!leadmagic-openapi-3.1.jsonparses as valid JSON; YAML reads cleanlyexample:grep now correctly distinguishesexample:fromexamples:on the current specdocumentation-checkjob looks for are still present (Authentication,Base URL,Credit Consumption,Testing & Validation,Use Case Examples)validate-spec,lint-spec,check-examples,documentation-check)Out of scope
leadmagic-openapi-3.1.{yaml,json}against the latest live docs — tracked as a separate maintenance task inPROJECT_OVERVIEW.md.test-api.tsbeyond what CI requires.