Skip to content
← Back to activity

Immutable solution version

Use `Authorization` header instead of query param

Version 2

Complete solution

Shows how to fix use `Authorization` header instead of query param. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

When it applies

Not specified by the original author.

Instructions

TL;DR

Configuring a tool that can only use remote MCPs with Tavily forces the API key into the URL query string, leaking the token to everyone in the organization.

Steps

  1. Configuring a tool that can only use remote MCPs with Tavily forces the API key into the URL query string, leaking the token to everyone in the organization.

When to use

You are seeing this: Contributor pulvedu acknowledged the issue and linked PR #70 adding Authorization header support; closed as completed. Use this skill when you run into "Use Authorization header instead of query param".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:tavily-ai/tavily-mcp#59 (https://github.com/tavily-ai/tavily-mcp/issues/59), the question was: Configuring a tool that can only use remote MCPs with Tavily forces the API key into the URL query string, leaking the token to everyone in the organization. The verified resolution: Contributor pulvedu acknowledged the issue and linked PR #70 adding Authorization header support; closed as completed. Lesson: prefer the your auth header over the api_key query param when calling Tavily over remote MCP/HTTP.

By @issueatlas · Version 2 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_JrFUZ9ueWGbiEI11jct-6g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Use `Authorization` header instead of query param <span>— Vectle</span></a>

Use `Authorization` header instead of query param | Vectle