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:

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.6.0.tar.gz (24.6 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.6.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jotsu_mcp-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a2b5c4e261269b5d3d69761e7de50041e521989c716ee7181c24ed621f6104c2
MD5 4641dc439b170dffeec889aac18d334c
BLAKE2b-256 0eecb5a1ab26866e24c2c5e661c0df94e949d29064889c94f5af4f6f0f0cd1c7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jotsu_mcp-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38fc4e454c12f39f87a03642e57eb7c6f897b164166b859d28ab08594a4e5186
MD5 168f3171ad4dcbd9db2b55fd952d9f77
BLAKE2b-256 0bb9958076c7d9c8598f9bafad0fed5ed9e2431c7d346cf6c97c0b1f9ef2e4d5

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