Customisation#

One of the key benefits of self-hosting the OneTick MCP server is the ability to tailor what it knows and exposes to your environment:

  • Documentation search — add your own documentation as a new search_* tool, either config only (point at a directory of Markdown files — no code) or with a Python class (for non-Markdown sources or custom retrieval). See Custom Search Tools.

  • Custom tools — add your own tool: a small Python function that returns a table (from a CSV, a OneTick query, or a computation) and appears as its own MCP tool. See Custom Tools.

  • Reference data — use your own files instead of the published OneTick Cloud coverage files to reflect the databases and schemas available in your deployment. See Custom Reference Data.

Note

Documentation search vs. custom tools — these are different, despite the similar CUSTOM_COLLECTIONS / CUSTOM_TOOLS names. Use documentation search (CUSTOM_COLLECTIONS) to make a folder of Markdown searchable — it embeds the docs and answers natural-language query lookups (search_<name>), and needs an index build. Use a custom tool (CUSTOM_TOOLS) to expose a function that returns a data table — it runs live at call time (a CSV read, a OneTick query, a computation), takes your own typed parameters, and needs no index. In short: search my documents vs. run my query and return data.