Skip to content

feat(docs): fill documentation gaps across platform features#4110

Open
waleedlatif1 wants to merge 9 commits intostagingfrom
waleedlatif1/docs-gap-audit
Open

feat(docs): fill documentation gaps across platform features#4110
waleedlatif1 wants to merge 9 commits intostagingfrom
waleedlatif1/docs-gap-audit

Conversation

@waleedlatif1
Copy link
Copy Markdown
Collaborator

Summary

  • New pages: chat deployment, API deployment, custom tools, variables
  • Expanded: function block Python support, KB connectors (API key connectors, OCR), KB tags (slots, operators), deployment version history, MCP server config, MCP deploy-workflows (all client configs), credit purchases
  • Verified all claims against codebase implementation

Type of Change

  • New feature

Testing

Tested MDX compilation with bunx fumadocs-mdx

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 16, 2026 2:58am

Request Review

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 11, 2026

PR Summary

Low Risk
Documentation-only changes (MDX/content and nav metadata) with no runtime or API behavior changes; main risk is broken links/MDX rendering if a page path or import is incorrect.

Overview
Adds several new docs pages to cover API deployment, chat deployment, custom tools, and a new variables section (including meta.json navigation updates).

Expands existing docs with Python support for the Function block (examples + E2B sandbox notes), richer deployment version history guidance, clearer MCP server/client configuration (including client-specific snippets), and knowledge base updates (API-key connectors details, PDF OCR setup, and more explicit tag slots/operators). Also updates execution costs docs to document purchasing additional credits.

Reviewed by Cursor Bugbot for commit 99a1ac0. Bugbot is set up for automated code reviews on this repo. Configure here.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 11, 2026

Greptile Summary

This PR fills documentation gaps across multiple platform features: new pages for chat deployment, API deployment, custom tools, and variables; plus expanded content for the function block (Python support), KB connectors (API key auth, OCR), KB tags (slots/operators), deployment version history, MCP server configuration, and credit purchases. All documented claims were verified against the codebase — env variable names, resolver priority order, API response shapes, and status codes are accurate. Remaining findings are all P2 (non-blocking).

Confidence Score: 5/5

Safe to merge — all findings are P2 style/documentation-quality suggestions with no correctness impact.

All documented claims were verified against the codebase: env var names, resolver priority order, API response shapes, job status mapping, and transport type are accurate. The three findings (misplaced import, incomplete status table, missing unit annotation) are non-blocking quality suggestions.

apps/docs/content/docs/en/execution/api-deployment.mdx (incomplete status table, missing estimatedDuration unit); apps/docs/content/docs/en/execution/costs.mdx (misplaced FAQ import).

Important Files Changed

Filename Overview
apps/docs/content/docs/en/execution/api-deployment.mdx New file documenting sync/streaming/async API deployment modes; API shape is accurate but the job-status table omits running/waiting/admitting/admitted statuses from the workspace-dispatch path, and estimatedDuration lacks a unit annotation.
apps/docs/content/docs/en/execution/costs.mdx New comprehensive costs file; import { FAQ } is placed after content at line 485 rather than with the other imports at the top — MDX hoists it so it compiles, but it is inconsistent with the rest of the file.
apps/docs/content/docs/en/execution/chat.mdx New chat deployment doc; OTP cookie-jar example is correct, API shape verified.
apps/docs/content/docs/en/blocks/function.mdx Adds Python support section with E2B sandbox details and JS vs Python comparison table; all claims verified against the executor.
apps/docs/content/docs/en/knowledgebase/connectors.mdx Adds API-key connector table (Evernote/Obsidian/Fireflies) and OCR setup section; all env var names (OCR_AZURE_ENDPOINT, OCR_AZURE_API_KEY, OCR_AZURE_MODEL_NAME) match document-processor.ts.
apps/docs/content/docs/en/knowledgebase/tags.mdx New tags and filtering doc with correct slot counts (17 total: 7 text, 5 number, 2 date, 3 boolean) and supported operators.
apps/docs/content/docs/en/mcp/deploy-workflows.mdx New MCP deploy-workflows doc; env-var expansion caveat callout added for Claude Desktop/VS Code configs; all client snippets verified.
apps/docs/content/docs/en/mcp/index.mdx Adds env-var substitution, test/validation, and domain allowlisting sections; streamable-http transport confirmed in lib/mcp/types.ts.
apps/docs/content/docs/en/tools/custom-tools.mdx New custom-tools doc; schema format, code environment constraints, and permissions are accurate.
apps/docs/content/docs/en/variables/index.mdx New variables overview; resolver priority order (loop → parallel → workflow → env → block) and workspace-over-personal precedence verified against executor/variables/resolver.ts and lib/environment/utils.ts.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Workflow] --> B{Deploy}
    B --> C[API Deployment\n/execution/api-deployment]
    B --> D[Chat Deployment\n/execution/chat]
    B --> E[MCP Deployment\n/mcp/deploy-workflows]
    C --> F[Sync]
    C --> G[Streaming]
    C --> H[Async\nPoll /api/jobs/jobId]
    H --> I{Status}
    I --> J[queued / waiting\nadmitting / admitted]
    I --> K[processing / running]
    I --> L[completed]
    I --> M[failed]
    D --> N[Public / Password\nEmail OTP / SSO]
    E --> O[Cursor / Claude Code\nClaude Desktop / VS Code]
Loading

Reviews (2): Last reviewed commit: "fix(docs): replace smart quotes with str..." | Re-trigger Greptile

Comment thread apps/docs/content/docs/en/execution/chat.mdx
Comment thread apps/docs/content/docs/en/mcp/deploy-workflows.mdx
@waleedlatif1
Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1
Copy link
Copy Markdown
Collaborator Author

@cursor review

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 6f3d1ad. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 99a1ac0. Configure here.

|--------|-------------------|
| Create or update custom tools | **Write** or **Admin** |
| Delete custom tools | **Admin** |
| Use custom tools in agents | **Read**, **Write**, or **Admin** |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Duplicate custom tools pages with inconsistent content

Low Severity

Two new pages both titled "Custom Tools" were added — custom-tools/index.mdx (under Features) and tools/custom-tools.mdx (under Tools). They cover the same topic with overlapping content but diverge on details: the overview says "three parts" (Schema, Code, Scope) while the reference says "two parts" (Schema, Code), and their permission tables conflict. Consolidating into one page with a redirect from the other would prevent future drift.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 99a1ac0. Configure here.

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