docs: align cookie setup with env-only auth
This commit is contained in:
@@ -16,13 +16,17 @@ describe("MCP protocol cookie inputs", () => {
|
||||
});
|
||||
|
||||
test("search tools should not expose Facebook or eBay cookie inputs", () => {
|
||||
const searchFacebookTool = tools.find((tool) => tool.name === "search_facebook");
|
||||
const searchFacebookTool = tools.find(
|
||||
(tool) => tool.name === "search_facebook",
|
||||
);
|
||||
const searchEbayTool = tools.find((tool) => tool.name === "search_ebay");
|
||||
|
||||
expect(searchFacebookTool?.inputSchema.properties).not.toHaveProperty(
|
||||
"cookiesSource",
|
||||
);
|
||||
expect(searchEbayTool?.inputSchema.properties).not.toHaveProperty("cookies");
|
||||
expect(searchEbayTool?.inputSchema.properties).not.toHaveProperty(
|
||||
"cookies",
|
||||
);
|
||||
});
|
||||
|
||||
test("search_facebook should not forward cookies query parameters", async () => {
|
||||
@@ -44,7 +48,8 @@ describe("MCP protocol cookie inputs", () => {
|
||||
}),
|
||||
);
|
||||
|
||||
const calledUrl = (global.fetch as ReturnType<typeof mock>).mock.calls[0]?.[0];
|
||||
const calledUrl = (global.fetch as ReturnType<typeof mock>).mock
|
||||
.calls[0]?.[0];
|
||||
expect(String(calledUrl)).toContain("/facebook?q=laptop");
|
||||
expect(String(calledUrl)).not.toContain("cookies=");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user