Overview
Configures a coding agent to search for current documentation when it encounters uncertainty about library APIs, package versions, or deprecated functions. Uses MCP to integrate search without modifying agent code.
Trigger
Automatic when the coding agent encounters API uncertainty
Schedule
On demand (triggered by agent uncertainty)
Workflow Steps
Add MCP server to agent config
Add Scavio's MCP server URL and API key to the coding agent's MCP configuration file.
Agent detects uncertainty
During code generation, the agent recognizes it is unsure about a library's current API, version, or method signature.
Agent invokes search tool
The agent calls the google_search MCP tool with a query like 'library_name current API docs 2026'.
Parse search results
The agent reads the search results, identifies the official documentation link, and extracts the relevant API information.
Generate code from current docs
Using the up-to-date API information, the agent generates correct code that works with the current library version.
Cite source in comments
Optionally, the agent adds a brief inline comment linking to the documentation source for future reference.
Python Implementation
# Add to coding agent MCP config (e.g. ~/.claude/mcp.json)
# {
# "mcpServers": {
# "scavio": {
# "url": "https://mcp.scavio.dev/mcp",
# "headers": {"x-api-key": "YOUR_API_KEY"}
# }
# }
# }
# Manual test: verify docs lookup works
import requests, os
H = {"x-api-key": os.environ["SCAVIO_API_KEY"]}
def lookup_docs(library, topic=""):
query = f"{library} documentation {topic} 2026".strip()
r = requests.post("https://api.scavio.dev/api/v1/search", headers=H,
json={"platform": "google", "query": query}, timeout=10).json()
for result in r.get("organic", [])[:3]:
print(f"{result.get('title')}")
print(f" {result.get('link')}")
print(f" {result.get('snippet', '')[:100]}")
print()
lookup_docs("langchain", "tool calling")JavaScript Implementation
// MCP config for Claude Code or similar agent
const mcpConfig = {
mcpServers: {
scavio: {
url: "https://mcp.scavio.dev/mcp",
headers: {"x-api-key": process.env.SCAVIO_API_KEY}
}
}
};
// Manual test
const r = await fetch("https://api.scavio.dev/api/v1/search", {
method: "POST",
headers: {"x-api-key": process.env.SCAVIO_API_KEY, "Content-Type": "application/json"},
body: JSON.stringify({platform: "google", query: "langchain tool calling docs 2026"})
}).then(r => r.json());
(r.organic || []).slice(0, 3).forEach(r =>
console.log(r.title + "\n " + r.link));Platforms Used
Web search with knowledge graph, PAA, and AI overviews
Community, posts & threaded comments from any subreddit