Skip to main content

Automatation for the Model Context Protocol (MCP).

Project description

Jotsu MCP

General-purpose library for implementing the Model Context Protocol (MCP) and creating workflows that use MCP tools, resources and prompts.

Quickstart

Install the package, including the CLI.

pip install jotsu-mcp[cli]

Create an empty workflow.

jotsu-mcp workflow init

The initialization command creates a workflow 'workflow.json' in the current directory.

Run it:

jotsu-mcp workflow run ./workflow.json

The output is only the start and end messages since the workflow doesn't have any nodes.

Add the following server entry:

{
    "id": "hello",
    "name": "Hello World",
    "url": "https://hello.mcp.jotsu.com/mcp/"
}

NOTE: don't forget the path /mcp/ on the URL.

This server is a publicly available MCP server (with no authentication) that has a couple of resources and a tool. (The code is available here).

Next add nodes for the server resources.

[
    {"id":  "get_greeting", "type": "resource", "name": "resource://greeting", "server_id":  "hello", "edges": ["get_config"]},
    {"id":  "get_config", "type": "resource", "name": "data://config", "server_id":  "hello", "edges": ["greet"]},
    {"id":  "greet", "type":  "tool", "name": "greet", "server_id":  "hello"}
]

Finally, add some initial data that the 'greet' tool needs.

{"name": "World"}
Full Workflow
{
    "id": "quickstart",
    "name": "quickstart",
    "description": "Simple workflow to interact with the 'hello' MCP server",
    "event": {
        "name": "Manual",
        "type": "manual",
        "metadata": null
    },
    "nodes": [
        {"id":  "get_greeting", "type": "resource", "name": "resource://greeting", "server_id":  "hello", "edges": ["get_config"]},
        {"id":  "get_config", "type": "resource", "name": "data://config", "server_id":  "hello", "edges": ["greet"]},
        {"id":  "greet", "type":  "tool", "name": "greet", "server_id":  "hello"}
    ],
    "servers": [
        {
            "id": "hello",
            "name": "Hello World",
            "url": "https://hello.mcp.jotsu.com/mcp/"
        }
    ],
    "data": {"name":  "World"},
    "metadata": null
}

Running it again generates:

Development

uv venv
uv pip install .[dev,cli,anthropic]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jotsu_mcp-0.7.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jotsu_mcp-0.7.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file jotsu_mcp-0.7.0.tar.gz.

File metadata

  • Download URL: jotsu_mcp-0.7.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for jotsu_mcp-0.7.0.tar.gz
Algorithm Hash digest
SHA256 96ffa949f042d89dd552c54af727c92622e629839949b2c1d2aa63a29ac4bcd1
MD5 9b8c3d7888602d5db91c6d864956d583
BLAKE2b-256 026c6a9b51896ad1c0f9723381a842b1105d25addafcc975a66ce46ba2998ef3

See more details on using hashes here.

File details

Details for the file jotsu_mcp-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: jotsu_mcp-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for jotsu_mcp-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8f488c5bef54c6b6512394db6023f2c595403b33c8c338a91e7541e52e3e48
MD5 23e9893441a55323f0e882011ccd130c
BLAKE2b-256 5e1b822bae20701e8f8449979eaa1861135ba279025b2856104e0524f752565f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page