Skip to content

Add example: MCP tool integration (local Ollama) #4

@sunilp

Description

@sunilp

Summary

Add a 5th example to the jamjet-benchmarks examples directory that shows how to connect a JamJet workflow to an MCP tool server.

What to build

A self-contained example (05_mcp_tool_call/) that:

  • Starts (or connects to) a simple MCP server — e.g. a local file reader or calculator
  • Runs a JamJet workflow that calls the MCP tool as a step
  • Prints the result with the execution timeline (result.events)

The example should run locally with Ollama (no API key needed), following the same pattern as the existing examples:

  • main.py — the workflow
  • requirements.txtjamjet>=0.1.2, openai>=1.0, pydantic>=2.0
  • setup.sh — creates .venv, installs deps

Why this is useful

MCP integration is one of JamJet's core differentiators. A working example makes it tangible for developers evaluating the framework.

Resources

Good first issue?

Yes — this is a self-contained addition with no changes to the core SDK. If you're new to JamJet, the existing examples are the best starting point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions