LlamaIndex

Connect DevMotion to a LlamaIndex agent using the llama-index-tools-mcp package.

MCP Endpoint: https://devmotion.app/mcp


Setup

Install
pip install llama-index-tools-mcp
Connect and use tools
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.anthropic import Anthropic

mcp_client = BasicMCPClient(
    "https://devmotion.app/mcp",
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)

mcp_tool_spec = McpToolSpec(client=mcp_client)
tools = await mcp_tool_spec.to_tool_list_async()

agent = FunctionAgent(
    name="DevMotionAgent",
    llm=Anthropic(model="claude-3-5-sonnet"),
    tools=tools,
    system_prompt="You are a video animation assistant.",
)

response = await agent.run("Create a product showcase animation")

Authentication

Obtain a long-lived token from your DevMotion profile and pass it in the Authorization header as shown above.


Docs

LlamaIndex MCP module →