Repository navigation
Semantic Kernel Python: call a dotted MCP tool through a local alias #14868
bbrainfuckk
started this conversation in
Show and tell
Replies: 1 comment
|
Keeping the wire name while exposing a local alias looks useful for tracing too. Do you record both names when a call fails? That would let someone connect a kernel-side error to the MCP server's log without having to reconstruct the alias mapping first. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Disclosure. I maintain Qorx. Codex helped run this compatibility check and prepare the write-up.
I tested the AGPL Qorx CLI v1.0.7 with Semantic Kernel Python 1.47.0 and MCP Python SDK 1.30.0 on Windows.
MCPStdioPluginconnected, butkernel.add_plugin(plugin, plugin_name="qorx")failed while constructingKernelFunctionMetadata. The MCP connector kept the dot inqorx.context_inject, and the kernel function name validator accepted only letters, digits, underscores and hyphens. Registration stopped before any source lookup. That can matter for any stdio server with dotted tool names.I registered a single provider-independent kernel function under a plain name and kept the original name on the wire. This also let me choose which tool to expose.
qorx_exe,fixture, andenvbelow refer to the released CLI, an indexed fixture folder, and the same environment used to start its loopback daemon.For the fixture, I indexed the following file and invoked the same function three times. I set
QORX_HOMEto a fresh temporary directory and used the same private loopback address inQORX_BIND(host and port) andQORX_GATEWAY(HTTP URL) forqorx index,qorx daemon run, and the MCP process. No model or API key was involved.eligible_returnssupportedreturns.py:1–2eligible_returns holiday_extensionpartialreturns.py:1–2holiday_extensionnot_foundIn this Qorx release, the presence of answer text and a citation did not establish full coverage. I used
coverage == "supported"to decide when to show the text as an answer, and kept the partial citation available for inspection. All three tool responses arrived as Semantic KernelTextContentblocks with JSON in.text. This was a direct Python kernel invocation. I did not test how a model provider serializes the tools.Qorx AGPL v1.0.7 · Semantic Kernel Python MCP setup
All reactions