From bcd4d4e980c78fef1917e81583d696c854399a16 Mon Sep 17 00:00:00 2001 From: "Nolann B." <100787331+nolannbiron@users.noreply.github.com> Date: Wed, 15 Jul 2026 10:42:20 +0200 Subject: [PATCH] Remove MCP test that recorded real feedback in production (#4399) --- packages/gitbook/tests/mcp.test.ts | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/packages/gitbook/tests/mcp.test.ts b/packages/gitbook/tests/mcp.test.ts index 3f6cfcfa6..b233a60d3 100644 --- a/packages/gitbook/tests/mcp.test.ts +++ b/packages/gitbook/tests/mcp.test.ts @@ -55,35 +55,6 @@ it( { timeout: 10_000 } ); -it( - 'should record agent feedback through MCP', - async () => { - const client = new Client({ - name: 'test', - version: '1.0.0', - }); - - await client.connect( - new StreamableHTTPClientTransport( - new URL(getContentTestURL('https://gitbook.com/docs/~gitbook/mcp/auth')) - ) - ); - - const response = await client.callTool({ - name: 'sendFeedback', - arguments: { - category: 'content-gap', - content: 'The authentication section does not explain how to rotate API tokens.', - }, - }); - - expect(response.isError).toBeFalsy(); - // @ts-expect-error - response.content is of type unknown - expect(response.content[0]?.text).toContain('Feedback recorded'); - }, - { timeout: 10_000 } -); - it( 'should get a page from another site space through MCP', async () => {