Skip to content
System One

abhishekashokvkumar/jev-mcp-dispatcher

Dispatches natural-language requests to MCP tools using only Jev, with no general-purpose LLM in the loop. It reads a server's tool signatures at runtime and uses Jev's Choice and Noul primitives to pick the right tool and pull its arguments out of the sentence.

abhishekashokvkumar/jev-mcp-dispatcher on GitHub

Stars
3
Forks
1
Language
Python
Last push
18 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

tracer.ask("has_word_numbers", state, WORD_NUMBERS_INSTRUCTIONS)
tracer.ask("num_commands", state, NUM_COMMANDS_INSTRUCTIONS, NUM_COMMANDS_OPTIONS)

response = ts_client.system_one(
    state=state,
    questions={
        "function": Choice(instructions=function_instructions, criteria=criteria),
        "has_word_numbers": Noul(instructions=WORD_NUMBERS_INSTRUCTIONS),
        "num_commands": Choice(
            instructions=NUM_COMMANDS_INSTRUCTIONS,
            criteria={n: None for n in NUM_COMMANDS_OPTIONS},
        ),
    },
)
function_answer = response.choices["function"]

View in jev_mcp_dispatcher.py

Open on GitHub

More like this

Use cases this is tagged with