This Python script sets up a basic MCP (Model Context Protocol) server integrated with Tako Knowledge Search API. The provided code creates an agent powered by MCP that uses Tako’s Knowledge Search API to search for knowledge cards in response to user queries.
TAKO_API_KEY
which is passed from an environment variable. We will configure the environment variable when we connect our server to a client.knowledge_search
from the Tako client.Also add a docstring description so the client can understand the functionality of the tool.