- A minimal library to let you focus on building LLM tools. It automatically enables the tools to be used by LLM calls, MCP clients, etc.
- A minimal CLI to install tools and run as MCP server.
Develop tools
import agtk
class MinimalFsToolkit(agtk.Toolkit):
@agtk.tool_def(
name="read_file",
description="Read content from a file"
)
def read_file(self, file_path: str):
return open(file_path).read()
@agtk.tool_def(
name="write_file",
description="Write content to a file"
)
def write_file(self, file_path: str, content: str):
with open(file_path, "w") as f:
f.write(content)
min_fs_toolkit = MinimalFsToolkit()Use for LLM calls
import litellm
from somewhere import min_fs_toolkit
response = litellm.completion(
model='openai/gpt-4o-mini',
messages=[
{ "role": "user", "content": "hi there, what tools do you have?"}
],
tools=min_fs_toolkit.as_params('openai')
)Use in MCP server
from mcp import FastMCP
from somewhere import min_fs_toolkit
# Use in mcp
mcp = FastMCP()
min_fs_toolkit.register(mcp)
mcp.run()Standalone as MCP server
uv tool install git+https://github.com/Joilence/agent-toolkits
# Check commands
agtk --help
# Install a tool (uses pip install under the hood)
agtk install <package_name_or_git_url>
# List installed tools
agtk list
# List installed tools with details (description and parameters)
agtk list --detail
# Start MCP server with installed tools
agtk mcpUse with simonw/llm (🚧WIP)
# install agtk
llm install llm-agtk
# install tools
agtk install <tool_name>
# use tools
llm --agtk "what tools do you have?"Feel free to submit issues and PRs.
Heavily inspired by simonw/llm