Skip to content

merge mintlify docs - #519

Merged
tonychang04 merged 2 commits into
mainfrom
docs/moveMintlify
Oct 24, 2025
Merged

tonychang04 merged 2 commits into
mainfrom
docs/moveMintlify

Conversation

@tonychang04

@tonychang04 tonychang04 commented Oct 24, 2025 •

Copy link
Copy Markdown
Member

Summary

  1. move docs repo content to oss repo
  2. removed api-reference, let it reference openapi yaml so no need to manual sync.

How did you test this change?

mint dev in the docs folder the local previous is exactly the same

Summary by CodeRabbit

  • Documentation

    • Added comprehensive architecture and SDK guides for Database, Authentication, Storage, AI, and Functions modules
    • Added quickstart guide for cloud and local deployment
    • Added MCP installation and integration documentation
    • Added partnership integration guide
    • Added introduction page and SDK installation instructions
  • Chores

    • Updated documentation configuration and gitignore settings

@coderabbitai

coderabbitai Bot commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

A comprehensive documentation suite for InsForge is added, including architecture and SDK guides for Database, Authentication, Storage, AI, and Functions modules, along with configuration files, quickstart guide, MCP installation instructions, partnership documentation, and introductory pages. No functional code changes are present.

Changes

Cohort / File(s) Change Summary
Configuration & Metadata
docs/.gitignore, docs/docs.json
New .gitignore rule to exclude .claude/ directory; new Mintlify documentation site configuration with navigation structure, theme settings, and external API reference links.
Installation & Setup
docs/README.md, docs/snippets/sdk-installation.mdx
Added README with project overview, development instructions (Mintlify CLI), deployment guidance, and troubleshooting tips; new SDK installation snippet with npm/yarn/pnpm commands and usage example.
Core Architecture Documentation
docs/core-concepts/ai/architecture.mdx, docs/core-concepts/authentication/architecture.mdx, docs/core-concepts/database/architecture.mdx, docs/core-concepts/functions/architecture.mdx, docs/core-concepts/storage/architecture.mdx
Five comprehensive architecture pages covering technology stacks, core components, request flows with sequence diagrams, security features, configuration schemas, optimization strategies, and best practices for each module.
SDK Documentation
docs/core-concepts/ai/sdk.mdx, docs/core-concepts/authentication/sdk.mdx, docs/core-concepts/database/sdk.mdx, docs/core-concepts/functions/sdk.mdx, docs/core-concepts/storage/sdk.mdx
Five SDK guide pages with code examples, API usage patterns, error handling, configuration options, and integration workflows for chat/image AI services, authentication flows, database queries, edge functions, and file operations.
Overview & Getting Started
docs/introduction.mdx, docs/quickstart.mdx, docs/mcp-installation.mdx
Introduction page highlighting InsForge features; quickstart guide with cloud and local deployment workflows; MCP installation guide with setup instructions and verification steps for multiple tools (Claude Desktop, Cline, Cursor).
Advanced Documentation
docs/partnership.mdx, docs/insforge-instructions-sdk.md
Partnership integration guide with co-branded and white-label models, API workflows, and example code; minor textual corrections to SDK instructions (typo fix and wording clarification).

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Client
    participant SDK
    participant Backend
    participant Storage as S3<br/>Storage
    
    rect rgb(200, 220, 255)
    Note over User,Storage: Authentication Flow
    User->>Client: Sign-up/Sign-in
    Client->>SDK: signUp() / signIn()
    SDK->>Backend: POST /auth (credentials)
    Backend->>Backend: Validate & create JWT
    Backend-->>SDK: JWT token
    SDK->>SDK: Store token locally
    SDK-->>Client: Auth success
    end
    
    rect rgb(220, 255, 220)
    Note over User,Storage: Data Access Flow
    User->>Client: Request data/upload file
    Client->>SDK: Database query / upload()
    SDK->>SDK: Attach JWT header
    SDK->>Backend: Request with token
    Backend->>Backend: Validate JWT
    alt File Upload
        Backend->>Storage: Store file
        Storage-->>Backend: URL
    else Database Query
        Backend->>Backend: Execute query
    end
    Backend-->>SDK: Response
    SDK-->>Client: Data/URL
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

The PR contains extensive documentation across 20+ files covering multiple architectural components and SDK guides. While the changes are primarily homogeneous (documentation patterns), verification requires checking consistency across modules, accuracy of architectural descriptions, code examples, configuration details, and alignment with actual system implementation.

Suggested reviewers

  • Fermionic-Lyu

Poem

🐰 Hops through the docs with glee and cheer,
Architecture clear, implementation near,
Auth, storage, database guides so bright,
Your InsForge journey shines with light!
With quickstart steps and SDK aid,
A foundation strong that's been laid! 🌟

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "merge mintlify docs" is related to the changeset, which consists primarily of adding and configuring comprehensive Mintlify documentation files and structure for the InsForge project. The title correctly identifies that the PR involves Mintlify and documentation, making it clear to a teammate scanning the history that this is about documentation configuration and setup. However, the term "merge" is somewhat ambiguous—it doesn't fully clarify whether the PR is adding new documentation, migrating documentation to Mintlify, or integrating Mintlify into the documentation structure. The title would be stronger if it specified the primary action (e.g., "add Mintlify documentation structure" or "integrate Mintlify docs setup").
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs/moveMintlify

Comment @coderabbitai help to get the list of available commands and usage tips.

@tonychang04
tonychang04 marked this pull request as ready for review October 24, 2025 18:36

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

🧹 Nitpick comments (1)
docs/core-concepts/database/sdk.mdx (1)

205-227: Fix compound adjective: floating-point should be hyphenated.

Line 213 in the data types table uses "Floating point numbers" as a compound adjective modifying the noun. This should be hyphenated as "Floating-point numbers" for grammatical correctness. Additionally, this section provides valuable guidance about date formatting (ISO strings, not JS Date objects) and empty string handling—well done highlighting these UX gotchas.

Apply this diff to fix the compound adjective:

- | number | DOUBLE PRECISION | Floating point numbers |
+ | number | DOUBLE PRECISION | Floating-point numbers |
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fda8178 and 09d0585.

⛔ Files ignored due to path filters (8)
  • docs/favicon.svg is excluded by !**/*.svg
  • docs/images/checks-passed.png is excluded by !**/*.png
  • docs/images/dashboard-connect-expanded.png is excluded by !**/*.png
  • docs/images/dashboard-connect.png is excluded by !**/*.png
  • docs/images/hero-dark.png is excluded by !**/*.png
  • docs/images/hero-light.png is excluded by !**/*.png
  • docs/logo/dark.svg is excluded by !**/*.svg
  • docs/logo/light.svg is excluded by !**/*.svg
📒 Files selected for processing (19)
  • docs/.gitignore (1 hunks)
  • docs/README.md (1 hunks)
  • docs/core-concepts/ai/architecture.mdx (1 hunks)
  • docs/core-concepts/ai/sdk.mdx (1 hunks)
  • docs/core-concepts/authentication/architecture.mdx (1 hunks)
  • docs/core-concepts/authentication/sdk.mdx (1 hunks)
  • docs/core-concepts/database/architecture.mdx (1 hunks)
  • docs/core-concepts/database/sdk.mdx (1 hunks)
  • docs/core-concepts/functions/architecture.mdx (1 hunks)
  • docs/core-concepts/functions/sdk.mdx (1 hunks)
  • docs/core-concepts/storage/architecture.mdx (1 hunks)
  • docs/core-concepts/storage/sdk.mdx (1 hunks)
  • docs/docs.json (1 hunks)
  • docs/insforge-instructions-sdk.md (2 hunks)
  • docs/introduction.mdx (1 hunks)
  • docs/mcp-installation.mdx (1 hunks)
  • docs/partnership.mdx (1 hunks)
  • docs/quickstart.mdx (1 hunks)
  • docs/snippets/sdk-installation.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/README.md

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/README.md: Maintain up-to-date README files
Provide clear setup instructions and examples for common use cases in README

Files:

  • docs/README.md
🪛 Gitleaks (8.28.0)
docs/quickstart.mdx

[high] 52-52: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

docs/mcp-installation.mdx

[high] 43-43: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

🪛 LanguageTool
docs/snippets/sdk-installation.mdx

[grammar] ~1-~1: Hier könnte ein Fehler sein.
Context: bash npm npm install @insforge/sdk bash yarn yarn add @insforge/sdk bash pnpm pnpm add @insforge/sdk javascript import { createClient } from '@insforge/sdk'; const insforge = createClient({ baseUrl: 'https://your-app.us-east.insforge.app' });

(QB_NEW_DE)

docs/core-concepts/ai/architecture.mdx

[style] ~8-~8: Try using a synonym here to strengthen your writing.
Context: ...ied AI capabilities through OpenRouter, giving you access to multiple LLM providers with a...

(GIVE_PROVIDE)

docs/core-concepts/database/sdk.mdx

[uncategorized] ~213-~213: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...483647) | | number | DOUBLE PRECISION | Floating point numbers | | boolean | BOOLEAN | true ...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

🪛 markdownlint-cli2 (0.18.1)
docs/README.md

19-19: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


25-25: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: E2E Tests
🔇 Additional comments (33)
docs/.gitignore (1)

1-1: LGTM! Clean gitignore addition to exclude AI-generated artifacts from version control.

docs/snippets/sdk-installation.mdx (1)

1-21: Installation snippet is well-structured. Provides consistent multi-package-manager options and a clear usage example. The static analysis hint from LanguageTool is a false positive.

docs/partnership.mdx (1)

1-541: Partnership documentation is comprehensive and well-structured. Clear separation of co-branded and white-label models, practical integration examples with error handling, and complete API reference. The mermaid sequence diagrams and TypeScript examples are helpful for integration.

docs/introduction.mdx (1)

1-39: Introduction page is clear and effective. Strong value proposition, well-organized feature cards, and appropriate for landing/onboarding context.

docs/core-concepts/functions/architecture.mdx (1)

1-104: Architecture documentation is thorough and well-illustrated. Clear technology stack diagram, comprehensive component table, authentication flow sequence, and practical performance guidelines. Mermaid diagrams are well-color-coded and easy to follow.

docs/core-concepts/database/architecture.mdx (1)

1-256: Comprehensive database architecture documentation.

The documentation provides thorough coverage of InsForge's PostgreSQL-based database system with PostgREST. Information is accurate, well-organized, and includes practical examples. Clear sections on technology stack, query syntax, performance optimizations, and best practices will help developers understand and use the system effectively.

docs/core-concepts/storage/sdk.mdx (2)

12-289: Well-structured storage SDK documentation with comprehensive examples.

The documentation provides clear, practical examples covering upload, download, deletion, progress tracking, React integration, and error handling. Code examples are consistent and demonstrate both basic and advanced patterns. Best practices and error handling guidance will help developers implement storage features correctly.


1-10: The imported snippet file exists in the repository. No issues found.

docs/core-concepts/functions/sdk.mdx (1)

1-533: Comprehensive Functions SDK documentation with practical examples.

Excellent coverage of InsForge Functions with detailed examples for protected endpoints, webhooks, file uploads, and API gateway patterns. The documentation clearly explains JWT authentication, environment variable access, request/response handling, CORS, and error handling. Code examples are complete, consistent, and demonstrate best practices. The progression from Quick Start to Complete Example to Performance Tips provides good guidance for developers at all levels.

docs/core-concepts/storage/architecture.mdx (1)

1-242: Well-structured storage architecture documentation.

Comprehensive documentation of InsForge's AWS S3-based storage system. Clear sections on upload strategies (direct and presigned URLs), security features, metadata management, and performance optimizations. Mermaid diagrams effectively illustrate the technology stack and workflows. Configuration guidance and best practices provide practical implementation guidance. Documentation is accurate and complete.

docs/core-concepts/authentication/architecture.mdx (1)

1-276: Comprehensive authentication architecture documentation (pending algorithm clarification).

The documentation provides thorough coverage of JWT-based authentication, OAuth provider integration, token structure, validation flows, and security best practices. Mermaid diagrams and tables effectively communicate the authentication architecture. Environment variable configuration is clearly documented. However, resolve the HS256 vs RS256 inconsistency before merging.

docs/core-concepts/ai/architecture.mdx (1)

1-372: Comprehensive AI integration architecture documentation.

Excellent documentation of InsForge's OpenRouter-based AI system covering chat completions, image generation, configuration management, and usage tracking. Clear sections on available models, streaming implementation, security features, error handling with retry strategies, and performance optimizations. Database schema documentation for configuration and usage tracking is helpful. The comparison with direct provider integration effectively communicates the value of the unified API approach. Documentation is complete, well-organized, and technically accurate.

docs/docs.json (2)

27-76: Documentation file paths are valid—no action required.

All page references in docs.json have been verified to match existing .mdx files in the repository. The documentation navigation structure is consistent and correct.


79-121: OpenAPI URLs verified—all accessible.

Verification confirms all 10 OpenAPI YAML files referenced in docs/docs.json are currently accessible and return HTTP 200 status codes. The URLs follow the expected consistent pattern and are properly configured.

docs/core-concepts/authentication/sdk.mdx (5)

1-55: LGTM!

Authentication overview and basic auth flows (sign-up, sign-in, sign-out) are well-documented with clear examples and appropriate use of CodeGroup for variants.


57-95: LGTM!

OAuth section clearly documents both automatic redirect handling and manual URL retrieval patterns, with proper environment variable requirements noted.


97-146: LGTM!

Session management and user profiles sections clearly distinguish between authenticated user queries and local storage retrieval, with helpful profile separation explained.


148-208: LGTM!

React hook example demonstrates solid patterns: proper state management, session checking on mount, and clean separation of auth methods. Good educational example for developers implementing auth flows.


210-272: LGTM!

Protected API calls, error handling, token storage, and security sections are well-organized. Token storage cards appropriately differentiate platform concerns, and security features are industry-standard.

docs/core-concepts/database/sdk.mdx (7)

1-40: LGTM!

Basic operations section with querying examples is clear and comprehensive. CodeGroup usage for different query patterns (all records, specific columns, with filters) helps readers find relevant examples.


42-85: LGTM!

Insert, update, and delete operations are well-demonstrated with both single and batch patterns, and the .select() recommendation for getting affected records is valuable practice guidance.


87-123: LGTM!

Advanced filtering with PostgREST operators and complex query examples clearly demonstrate operator chaining and logical query composition patterns.


125-158: LGTM!

Relationships and joins section with basic, specific columns, and aliased join patterns provides clear progressions for joining related data.


160-183: LGTM!

Counting and pagination examples properly distinguish between data+count and count-only patterns, with practical range-based pagination usage.


185-203: LGTM!

Error handling demonstrates the structured error object pattern consistently with the authentication SDK, providing developers with expected fields.


229-267: LGTM!

System tables section appropriately documents read-only access patterns and directs users to auth methods for modifications. Best practices cards clearly prioritize error handling, selective selects, and batch operations.

docs/core-concepts/ai/sdk.mdx (7)

12-48: Clarify chat completions API signature consistency.

The chat completions examples show three different calling patterns without explanation of when to use each:

  1. Lines 17-24: message parameter (simple string)
  2. Lines 26-33: message + systemPrompt parameters
  3. Lines 35-46: messages array (full message history)

It's unclear whether all three are supported, or if message and messages are different patterns. Developers may wonder which is the preferred/canonical pattern, or whether they're mixing compatible vs. deprecated APIs. Please clarify:

  • Are all three patterns simultaneously supported?
  • Is one preferred over the others (e.g., messages as the canonical API)?
  • Should message be documented as a convenience shorthand for single-message queries?

This will help readers confidently choose the right pattern for their use case.


50-118: LGTM!

Streaming section with for await pattern and React integration example is well-implemented. The React component clearly shows state updates during streaming and loading state management—good reference for developers integrating AI responses into UI.


120-168: LGTM!

Image generation examples with single and batch patterns are clear, and the parameters table comprehensively documents all available options. Good coverage of different generation modes.


169-177: LGTM!

Available models list provides realistic options across Anthropic, OpenAI, and Google with specific model identifiers.


179-258: LGTM!

ChatApp class example comprehensively demonstrates conversation history management with both regular and streaming message handling. The pattern of appending to this.messages for each turn is clear and educational.


260-302: LGTM!

Image gallery example demonstrates practical integration with storage API: fetching blobs and uploading generated images. Shows realistic end-to-end workflow combining AI generation with persistence.


304-386: LGTM!

Error handling, token usage monitoring, best practices, and configuration sections provide comprehensive guidance. Token usage example is valuable for cost-conscious developers, and best practices cover important considerations from model selection to error handling.


| Component | Technology | Purpose |
|-----------|------------|---------|
| **Token Format** | JWT with HS256 | Stateless authentication tokens |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Inconsistency between signing algorithm claims.

Line 50 states the signing algorithm is "HMAC-SHA256 (HS256)" with symmetric key signing, but the token validation example at lines 206 and 218 references RSA public key and RS256 algorithm. This inconsistency could confuse developers about whether the system uses symmetric (HS256) or asymmetric (RS256) signing.

Verify the actual signing algorithm implementation and update documentation accordingly to be consistent.

Also applies to: 206-206, 218-218

🤖 Prompt for AI Agents
In docs/core-concepts/authentication/architecture.mdx around lines 50, 206 and
218, the documentation inconsistently states the token signing algorithm as
HS256 at line 50 but uses an RS256 (RSA public key) validation example at lines
206 and 218; verify the actual implementation (whether tokens are signed with
HMAC-SHA256 using a symmetric secret or RSA-SHA256 using an asymmetric keypair)
and then make the docs consistent: if implementation uses HS256, change the
token format line to HS256 and replace the RSA public-key validation example
with a symmetric-secret validation example (and remove RSA key references); if
implementation uses RS256, change the token format line to RS256 and update any
text to describe asymmetric signing and key rotation, ensuring the validation
example uses the RSA public key. Ensure all three referenced lines and any
related examples reflect the same algorithm and key usage.

- Backend metadata (`get-backend-metadata`)
- Storage bucket creation (`create-bucket`, `list-buckets`, `delete-bucket`)
- Edge Functions Creation and Upload (`create-function`, `get-function`, `update-function`, `delete-function`)
- Edge Functions Creation and Upload (`create-function`, `get-function`, a`update-function`, `delete-function`)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix malformed text in MCP tools list. Line 28 contains formatting artifact: aupdate-function`` should be update-function.

Apply this fix:

-    - Edge Functions Creation and Upload (`create-function`, `get-function`, a`update-function`, `delete-function`)
+    - Edge Functions Creation and Upload (`create-function`, `get-function`, `update-function`, `delete-function`)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Edge Functions Creation and Upload (`create-function`, `get-function`, a`update-function`, `delete-function`)
- Edge Functions Creation and Upload (`create-function`, `get-function`, `update-function`, `delete-function`)
🤖 Prompt for AI Agents
In docs/insforge-instructions-sdk.md around line 28, correct the malformed list
item that currently reads "Edge Functions Creation and Upload
(`create-function`, `get-function`, a`update-function`, `delete-function`)";
remove the stray backtick and leading "a" so the entry reads "Edge Functions
Creation and Upload (`create-function`, `get-function`, `update-function`,
`delete-function`)" to fix the formatting artifact.

Comment thread docs/mcp-installation.mdx
Comment on lines +40 to +52
The command includes your API key and base URL automatically:
```bash
npx @insforge/install --client cursor \
--env API_KEY=ik_d02a35cfd8056c18e9e59b34bf8bf773 \
--env API_BASE_URL=https://trqnn5z3.us-east.insforge.app
```
</Step>
</Steps>

<Note>
The Copy button provides a ready-to-run command with your API key and base URL already configured for your specific project
</Note>
</Tab>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

⚠️ Potential API key exposure in documentation. Line 43 and the example URL contain what appears to be a real or realistic API key: ik_d02a35cfd8056c18e9e59b34bf8bf773. Gitleaks flagged this as a security risk.

If this is a real key, it must be revoked immediately before merging. If this is a placeholder/example key, make this explicitly clear with descriptive text like "EXAMPLE_KEY" or mark the entire block as a template with instructions to replace values.


🌐 Web query:

What are best practices for including API credentials in documentation examples?

💡 Result:

Short best-practices checklist for documentation examples (do this, not that):

  • Never publish real credentials — use clearly labeled placeholders or fake example values (e.g., API_KEY=your_api_key_here). [1][2]
  • Show only minimal auth format and header/location (e.g., Authorization: Bearer ) — avoid full real request/response bodies that contain secrets. [3]
  • Prefer describing how to obtain and inject credentials (environment variables, config files, secret manager) and include code that reads from env vars, not literals. [1][4]
  • In examples that must include a token-like string, use obviously fake tokens (short, non-working) and a caption that they are examples only. [2]
  • Recommend and demonstrate secret management: environment variables, vaults (HashiCorp Vault / cloud secrets managers), per‑environment keys, scoped tokens, and short-lived credentials. [1][4]
  • Document required scopes/permissions and least privilege for any credential shown. [4]
  • Advise rotation and revocation procedures; state what to do if a credential is exposed. [1][3]
  • Use automated checks: pre-commit hooks, secret-scanning in CI, and push protection to prevent accidental commits of secrets. [1][2]
  • If a secret was accidentally committed, instruct immediate revocation/rotation and link to repository-removal guidance (rewrite history / git-filter-repo) — and note side effects. [2]
  • Provide example environment (.env.example) and sample config files that contain placeholders only; add the real files to .gitignore. [2][5]

Sources:
[1] OWASP CI/CD & DevSecOps guidance (secrets management, avoid hardcoding).
[2] GitHub docs: removing sensitive data, preventing secret commits (git-filter-repo, pre-commit, push protection).
[3] OWASP secure-coding / auth best practices (show auth formats, use HTTPS).
[4] Google Cloud / major providers: demonstrate using API keys/tokens with restrictions and recommend scoped/revocable keys.
[5] Common docs practice: provide .env.example and placeholders.

If you want, I can draft a short template snippet (placeholder-based) for your docs and a matching .gitignore/.env.example.



---

🏁 Script executed:

```shell
#!/bin/bash
# Inspect the actual file content around the flagged lines
echo "=== File content lines 40-55 ==="
sed -n '40,55p' docs/mcp-installation.mdx

echo ""
echo "=== Search for similar 'ik_' prefixed keys in docs ==="
rg 'ik_[a-f0-9]+' docs/ -n

echo ""
echo "=== Check for .env.example or environment setup guidance ==="
fd '.env' . --type f
fd 'env.example' . --type f

echo ""
echo "=== Search for placeholder or example key indicators in docs ==="
rg -i 'example.?key|your.?api.?key|placeholder|replace' docs/mcp-installation.mdx -n -C2

Length of output: 2873


Update Cloud Backend example with clear placeholder labeling. Line 43 in docs/mcp-installation.mdx (and line 52 in docs/quickstart.mdx) hardcodes ik_d02a35cfd8056c18e9e59b34bf8bf773 without marking it as an example or placeholder. This inconsistent with all other examples in the same file, which correctly use your-api-key placeholder.

Per security best practices, static documentation examples should use clearly labeled placeholders (e.g., your-api-key or EXAMPLE_API_KEY) rather than literal realistic-looking values. Even if this is a fake/revoked key, the lack of labeling misleads users about what constitutes a template vs. an actual credential.

Recommended fix:

  • Replace literal key with your-api-key placeholder in both files
  • Add inline comment or note: "Replace your-api-key with the API key from your dashboard"
  • Align Cloud Backend and Local Backend tab examples for consistency
🧰 Tools
🪛 Gitleaks (8.28.0)

[high] 43-43: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

🤖 Prompt for AI Agents
In docs/mcp-installation.mdx around lines 40–52 (and mirror the change in
docs/quickstart.mdx around line 52), replace the hardcoded API key value with a
clear placeholder like your-api-key (e.g., --env API_KEY=your-api-key), add a
short inline note "Replace your-api-key with the API key from your dashboard"
directly after the command, and ensure the Cloud Backend and Local Backend tab
examples use the same placeholder style so both examples are consistent.

Comment thread docs/quickstart.mdx
Comment on lines +48 to +54
3. Copy the installation command - it includes your API key and URL automatically:

```bash
npx @insforge/install --client cursor \
--env API_KEY=ik_d02a35cfd8056c18e9e59b34bf8bf773 \
--env API_BASE_URL=https://your-app.us-east.insforge.app
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

⚠️ API key exposure in quickstart example (duplicate issue). The same API key appears here as in mcp-installation.mdx: ik_d02a35cfd8056c18e9e59b34bf8bf773. This must be addressed before merge—revoke immediately if real, or clearly mark as "EXAMPLE_KEY" placeholder if intentional.

Verify this is the same key exposure as flagged in mcp-installation.mdx and coordinate remediation.


🏁 Script executed:

#!/bin/bash
# Find and examine the API key exposure in docs/quickstart.mdx
echo "=== Checking docs/quickstart.mdx lines 48-54 ==="
if [ -f "docs/quickstart.mdx" ]; then
  sed -n '48,54p' docs/quickstart.mdx
else
  echo "File not found, searching for quickstart files..."
  fd quickstart
fi

Length of output: 325


🏁 Script executed:

#!/bin/bash
# Search for the API key across the entire codebase
echo "=== Searching for API key ik_d02a35cfd8056c18e9e59b34bf8bf773 ==="
rg "ik_d02a35cfd8056c18e9e59b34bf8bf773" -n --type-list | grep -q mdx && echo "rg supports mdx" || echo "checking with general search"
rg "ik_d02a35cfd8056c18e9e59b34bf8bf773" -n

Length of output: 656


🏁 Script executed:

#!/bin/bash
# Find and examine mcp-installation.mdx for the same key
echo "=== Checking mcp-installation.mdx for same API key ==="
fd "mcp-installation" --type f
if [ -f "docs/mcp-installation.mdx" ]; then
  rg "ik_d02a35cfd8056c18e9e59b34bf8bf773" docs/mcp-installation.mdx -n -B2 -A2
fi

Length of output: 300


🏁 Script executed:

#!/bin/bash
# Check API key format to determine if it's likely real or example
echo "=== Analyzing API key pattern ==="
key="ik_d02a35cfd8056c18e9e59b34bf8bf773"
echo "Key: $key"
echo "Prefix: ${key:0:3}"
echo "Length: ${#key}"
echo ""
echo "Checking for similar patterns in docs (potential example keys):"
rg "ik_[a-f0-9]{32}" docs/ --type mdx -n

Length of output: 190


🏁 Script executed:

#!/bin/bash
# Search for context around the API key - check for comments or markers
echo "=== Checking context around API key in quickstart.mdx ==="
sed -n '40,60p' docs/quickstart.mdx

echo ""
echo "=== Checking context around API key in mcp-installation.mdx ==="
sed -n '35,50p' docs/mcp-installation.mdx

Length of output: 1573


🏁 Script executed:

#!/bin/bash
# Search for other example/placeholder indicators
echo "=== Searching for example/placeholder indicators in docs ==="
rg -i "example|placeholder|demo|test.*key|YOUR_API_KEY|EXAMPLE_KEY" docs/ -n -B1 -A1

echo ""
echo "=== Searching for any warnings or security notes in docs ==="
rg -i "warning|caution|security|secret|expose|revok" docs/ -n -C2

Length of output: 38391


🏁 Script executed:

#!/bin/bash
# Check if the key appears in any test, example, or fixture files
echo "=== Searching for key in test or example directories ==="
find . -type d \( -name test -o -name tests -o -name example -o -name examples -o -name __fixtures__ -o -name fixtures \) 2>/dev/null

echo ""
echo "=== Checking if key is mentioned in any git history or comments ==="
rg "d02a35cfd8056c18e9e59b34bf8bf773" -n --type=mdx --type=js --type=ts 2>/dev/null

Length of output: 152


🏁 Script executed:

#!/bin/bash
# Check the full installation command sections to see the complete context
echo "=== Full installation command context in quickstart.mdx ==="
sed -n '45,60p' docs/quickstart.mdx

echo ""
echo "=== Checking if docs have any section labeled 'Example' or 'Sample' ==="
rg -i "^#+.*example|^#+.*sample" docs/quickstart.mdx -n -A3

Length of output: 883


Replace hardcoded API key with clearly marked placeholder across both files. The key ik_d02a35cfd8056c18e9e59b34bf8bf773 appears in both docs/quickstart.mdx (line 52) and docs/mcp-installation.mdx (line 43). Both files describe the command as including "your API key and URL automatically," which contradicts a hardcoded example. Replace with a marked placeholder like EXAMPLE_API_KEY_d02a35cfd8056c18e9e59b34bf8bf773 or add a security warning that users must substitute their own credentials.

🧰 Tools
🪛 Gitleaks (8.28.0)

[high] 52-52: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

🤖 Prompt for AI Agents
In docs/quickstart.mdx around lines 48–54 (and also update
docs/mcp-installation.mdx at line 43), the example command contains a hardcoded
API key which contradicts the description and poses a security risk; replace the
literal key with a clearly marked placeholder (for example
EXAMPLE_API_KEY_d02a35cfd8056c18e9e59b34bf8bf773 or <YOUR_API_KEY_HERE>) and
update the surrounding text to instruct users to substitute their own
credentials (optionally add a short security warning to not commit real keys).

Comment thread docs/README.md
Comment on lines +19 to +21
```
npm i -g mint
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add language specifier to fenced code block.

Code blocks should have an explicit language identifier for proper syntax highlighting.

Apply this diff:

-```
+```bash
 npm i -g mint
-```
+```
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

19-19: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
In docs/README.md around lines 19 to 21, the fenced code block lacks a language
specifier; replace the opening triple backticks on line 19 with "```bash" so the
block becomes a bash code block (leave the closing triple backticks intact) to
enable proper syntax highlighting.

Comment thread docs/README.md
Comment on lines +25 to +27
```
mint dev
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add language specifier to fenced code block.

Code blocks should have an explicit language identifier for proper syntax highlighting.

Apply this diff:

-```
+```bash
 mint dev
-```
+```
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

25-25: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
In docs/README.md around lines 25 to 27 the fenced code block lacks a language
specifier; update the opening fence to include "bash" so it reads ```bash and
leave the code and closing fence unchanged, ensuring proper syntax highlighting
for the snippet.

@tonychang04
tonychang04 requested a review from Leo-rq-yu October 24, 2025 20:33

@Leo-rq-yu Leo-rq-yu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants