Skip to content

Docs: MCP JSON-RPC examples for get_form_schema #5

Open

Description

@cavewebs

Why

app/(marketing)/docs/mcp/page.tsx lists all 6 tools and a client url snippet, but a new contributor still has to invent the JSON-RPC envelope. POST /api/mcp in this repo is JSON-RPC (initialize, tools/list, tools/call) — see lib/mcp-server.ts and app/api/mcp/route.ts.

Cloud is https://gudform.com/api/mcp. Examples should show that and a self-host URL. Auth is Authorization: Bearer ff_....

Where

app/(marketing)/docs/mcp/page.tsx — new subsection under MCP clients (or Endpoint).

Suggested work

Add three short, real examples (placeholder key ff_..., never a real key):

  1. Keep the existing client url config; note Cloud vs self-host.
  2. JSON-RPC tools/list against POST /api/mcp.
  3. JSON-RPC tools/call for get_form_schema with formId.

Optional fourth: submit_response with answers: [{ questionId, value }]. Do not invent extra tools.

Out of scope

Do not add new MCP tools. Do not point docs at the private SaaS copy.

Check

A reader can paste the get_form_schema example into curl and see questions without opening the dashboard (using their own ff_ key and form id).

Activity

  1. added
    documentation
    good first issue
    help wanted
    on Sep 20, 2026
  2. computerdude11111 commented on Sep 20, 2026

    @computerdude11111

    Could I take this docs issue if it is still available? I read CONTRIBUTING.md and can add tools/list and get_form_schema JSON-RPC examples, preserve the client config, and document Cloud and self-host URLs using placeholder credentials. I would check the payloads against the current route and tool schema. Please let me know if this is already covered in the private copy.

    Disclosure: this would be an autonomous-agent contribution through Averray, which offers a reward for this issue. No payment is requested from this repository; you are welcome to decline agent contributions. I also asked about GudDesk #7 and can handle these small documentation changes sequentially if both are wanted.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions