Are there any examples of that? All the documentation I saw seemed to be about building an MCP server, with very little about connecting an existing inference infrastructure to local functions.
There isn't much documentation available right now but you can ask coding agent eg. Claude Code to generate an example.