feat: add exact_match parameter to tavily_search tool

- Add exact_match boolean parameter to search tool inputSchema
- Pass exact_match through search call handler
- Include exact_match in API request payload (omitted when undefined)
- Bump version to 0.2.18
- Update README with usage example

Ref: TAV-5096
This commit is contained in:
Cursor Agent
2026-02-25 21:22:06 +00:00
parent e63fc273ed
commit a3c511fcd0
3 changed files with 17 additions and 3 deletions
+8
View File
@@ -180,6 +180,14 @@ Before you begin, ensure you have:
npx -y tavily-mcp@latest
```
## Exact Match Search
Use the `exact_match` parameter to restrict results to those containing the exact quoted phrase(s) in your query:
```json
{ "query": "\"John Smith\" CEO Acme Corp", "exact_match": true }
```
## Default Parameters Configuration ⚙️
You can set default parameter values for the `tavily-search` tool using the `DEFAULT_PARAMETERS` environment variable. This allows you to configure default search behavior without specifying these parameters in every request.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tavily-mcp",
"version": "0.2.17",
"version": "0.2.18",
"mcpName": "io.github.tavily-ai/tavily-mcp",
"description": "MCP server for advanced web search using Tavily",
"repository": {
+8 -2
View File
@@ -73,7 +73,7 @@ class TavilyClient {
this.server = new Server(
{
name: "tavily-mcp",
version: "0.2.10",
version: "0.2.18",
},
{
capabilities: {
@@ -226,6 +226,10 @@ class TavilyClient {
type: "boolean",
description: "Whether to include the favicon URL for each result",
default: false
},
exact_match: {
type: "boolean",
description: "If true, only return results containing the exact quoted phrase(s) in the query"
}
},
required: ["query"]
@@ -453,7 +457,8 @@ class TavilyClient {
country: args.country,
include_favicon: args.include_favicon,
start_date: args.start_date,
end_date: args.end_date
end_date: args.end_date,
exact_match: args.exact_match
});
break;
@@ -577,6 +582,7 @@ class TavilyClient {
include_favicon: params.include_favicon,
start_date: params.start_date,
end_date: params.end_date,
exact_match: params.exact_match,
api_key: API_KEY,
};