listmonk-api 2.3.3__tar.gz → 2.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. {listmonk_api-2.3.3/listmonk_api.egg-info → listmonk_api-2.3.5}/PKG-INFO +3 -9
  2. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/README.md +0 -2
  3. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/__init__.py +16 -1
  4. listmonk_api-2.3.5/listmonk_api/__main__.py +4 -0
  5. listmonk_api-2.3.5/listmonk_api/connector_sources.py +97 -0
  6. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/mcp_server.py +4 -101
  7. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/ontology/certification.json +6 -9
  8. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/ontology/listmonk.ttl +5 -2
  9. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/ontology/mappings/source.yaml +1 -1
  10. {listmonk_api-2.3.3 → listmonk_api-2.3.5/listmonk_api.egg-info}/PKG-INFO +3 -9
  11. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api.egg-info/SOURCES.txt +1 -7
  12. listmonk_api-2.3.5/listmonk_api.egg-info/entry_points.txt +5 -0
  13. listmonk_api-2.3.5/listmonk_api.egg-info/requires.txt +8 -0
  14. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/pyproject.toml +12 -16
  15. listmonk_api-2.3.5/requirements.txt +1 -0
  16. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_fleet_name.py +3 -14
  17. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_kg_ingest.py +1 -1
  18. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_mcp_server.py +1 -173
  19. listmonk_api-2.3.3/listmonk_api/__main__.py +0 -6
  20. listmonk_api-2.3.3/listmonk_api/connectors/__init__.py +0 -0
  21. listmonk_api-2.3.3/listmonk_api/connectors/mcp_source_presets.json +0 -18
  22. listmonk_api-2.3.3/listmonk_api/connectors/tool_schema_fingerprints.json +0 -8
  23. listmonk_api-2.3.3/listmonk_api/prompts/__init__.py +0 -0
  24. listmonk_api-2.3.3/listmonk_api/skills/__init__.py +0 -0
  25. listmonk_api-2.3.3/listmonk_api.egg-info/entry_points.txt +0 -14
  26. listmonk_api-2.3.3/listmonk_api.egg-info/requires.txt +0 -14
  27. listmonk_api-2.3.3/requirements.txt +0 -1
  28. listmonk_api-2.3.3/scripts/security_sanitizer.py +0 -318
  29. listmonk_api-2.3.3/tests/test_default_content_surfaces.py +0 -43
  30. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/LICENSE +0 -0
  31. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/MANIFEST.in +0 -0
  32. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/__init__.py +0 -0
  33. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_base.py +0 -0
  34. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_campaigns.py +0 -0
  35. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_import_api.py +0 -0
  36. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_lists.py +0 -0
  37. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_media.py +0 -0
  38. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_subscribers.py +0 -0
  39. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_templates.py +0 -0
  40. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api/api_client_transactional.py +0 -0
  41. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/api_client.py +0 -0
  42. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/auth.py +0 -0
  43. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/kg_ingest.py +0 -0
  44. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/mcp_config.json +0 -0
  45. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/models.py +0 -0
  46. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/ontology/__init__.py +0 -0
  47. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/ontology/fixtures/records.json +0 -0
  48. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/ontology/migrations/manifest.json +0 -0
  49. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/ontology/shapes/connector.shacl.ttl +0 -0
  50. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-api-operations/SKILL.md +0 -0
  51. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-api-operations/agents/openai.yaml +0 -0
  52. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-api-operations/references/catalog.md +0 -0
  53. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-campaign-management/SKILL.md +0 -0
  54. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-campaign-management/WORKFLOW.md +0 -0
  55. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-subscriber-lists/SKILL.md +0 -0
  56. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-subscriber-lists/WORKFLOW.md +0 -0
  57. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-transactional-messaging/SKILL.md +0 -0
  58. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api/skills/listmonk-transactional-messaging/WORKFLOW.md +0 -0
  59. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api.egg-info/dependency_links.txt +0 -0
  60. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/listmonk_api.egg-info/top_level.txt +0 -0
  61. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/setup.cfg +0 -0
  62. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/conftest.py +0 -0
  63. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_action_discovery.py +0 -0
  64. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_api_clients.py +0 -0
  65. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_auth_and_server.py +0 -0
  66. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_init.py +0 -0
  67. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_init_dynamics.py +0 -0
  68. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_startup.py +0 -0
  69. {listmonk_api-2.3.3 → listmonk_api-2.3.5}/tests/test_token_auth.py +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listmonk-api
3
- Version: 2.3.3
3
+ Version: 2.3.5
4
4
  Summary: Agent package for Listmonk
5
- Author-email: Project Maintainers <maintainers@users.noreply.github.com>
5
+ Author-email: Repository Maintainers <maintainers@knuckles.team>
6
6
  License: MIT
7
7
  Classifier: Development Status :: 4 - Beta
8
8
  Classifier: License :: OSI Approved :: MIT License
@@ -12,12 +12,8 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18
15
+ Requires-Dist: agent-connector-sdk[mcp]<0.6.0,>=0.5.4
16
16
  Requires-Dist: requests>=2.34.2
17
- Provides-Extra: mcp
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18; extra == "mcp"
19
- Provides-Extra: all
20
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18; extra == "all"
21
17
  Provides-Extra: test
22
18
  Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
19
  Requires-Dist: pytest>=9.1.1; extra == "test"
@@ -47,8 +43,6 @@ Dynamic: license-file
47
43
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/listmonk-api)
48
44
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/listmonk-api)
49
45
 
50
- *Version: 2.3.3*
51
-
52
46
  > **Documentation** — Installation, deployment, usage across the API, CLI, MCP, and
53
47
  > agent interfaces, and guidance for provisioning the Listmonk platform are maintained
54
48
  > in the [official documentation](https://knuckles-team.github.io/listmonk-api/).
@@ -20,8 +20,6 @@
20
20
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/listmonk-api)
21
21
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/listmonk-api)
22
22
 
23
- *Version: 2.3.3*
24
-
25
23
  > **Documentation** — Installation, deployment, usage across the API, CLI, MCP, and
26
24
  > agent interfaces, and guidance for provisioning the Listmonk platform are maintained
27
25
  > in the [official documentation](https://knuckles-team.github.io/listmonk-api/).
@@ -2,8 +2,8 @@
2
2
 
3
3
  import importlib
4
4
  import inspect
5
- from typing import Any
6
5
  import warnings
6
+ from typing import Any
7
7
 
8
8
  # Suppress RequestsDependencyWarning due to chardet 6.x / requests 2.32.x mismatch
9
9
  # Centralized here to ensure it runs before any sub-package imports
@@ -92,3 +92,18 @@ def __getattr__(name: str) -> Any:
92
92
 
93
93
  def __dir__() -> list[str]:
94
94
  return sorted(list(globals().keys()) + __all__)
95
+
96
+
97
+ from agent_connector_sdk.connector import Connector
98
+
99
+ from listmonk_api.api_client import ListmonkAPI
100
+ from listmonk_api.auth import get_client
101
+ from listmonk_api.mcp_server import register_prompts
102
+
103
+ connector = Connector(
104
+ api=ListmonkAPI,
105
+ get_client=get_client,
106
+ tools="listmonk_api.mcp_server",
107
+ instructions="Listmonk MCP Server — Manage subscribers, lists, campaigns, templates, media, imports, and transactional messages.",
108
+ extra_registrations=(register_prompts,),
109
+ )
@@ -0,0 +1,4 @@
1
+ from agent_connector_sdk import run
2
+
3
+ if __name__ == "__main__":
4
+ run()
@@ -0,0 +1,97 @@
1
+ """Data sources of this connector, declared by tool name (generated by connector-ontology-map migrate).
2
+
3
+ Served live as ``connector://resources``. Regenerate by editing the declarations, not the tools.
4
+ """
5
+
6
+ # ruff: noqa: E501
7
+ from __future__ import annotations
8
+
9
+ from agent_connector_sdk.ingest.live_declaration import source_meta
10
+
11
+ SOURCES = (
12
+ source_meta(
13
+ tool="listmonk_get_campaigns",
14
+ source_id="listmonk-campaigns",
15
+ record_type="Campaign",
16
+ id_field="id",
17
+ cursor_field="updated_at",
18
+ page_param="page",
19
+ page_size_param="per_page",
20
+ pagination="page",
21
+ preset={
22
+ "doc_type": "campaign",
23
+ "page_kind": "number",
24
+ "params_style": "args",
25
+ },
26
+ records_path="results",
27
+ server="listmonk-mcp",
28
+ text_field="body",
29
+ title_field="name",
30
+ ),
31
+ )
32
+
33
+ SCHEMA_VERSION = 2
34
+
35
+ FIELD_SETS = {
36
+ "fields_1": {
37
+ "campaignStatus": "xsd:string",
38
+ "email": "xsd:string",
39
+ "fromEmail": "xsd:string",
40
+ "listType": "xsd:string",
41
+ "optinType": "xsd:string",
42
+ "sendAt": "xsd:string",
43
+ "subject": "xsd:string",
44
+ "subscriberStatus": "xsd:string",
45
+ },
46
+ }
47
+
48
+ SCHEMA_MAPPINGS = {
49
+ "Campaign": {
50
+ "field_sets": ["fields_1"],
51
+ "ontology_class": None,
52
+ },
53
+ "EmailTemplate": {
54
+ "field_sets": ["fields_1"],
55
+ "ontology_class": None,
56
+ },
57
+ "Subscriber": {
58
+ "field_sets": ["fields_1"],
59
+ "ontology_class": "Person",
60
+ },
61
+ "SubscriptionList": {
62
+ "field_sets": ["fields_1"],
63
+ "ontology_class": None,
64
+ },
65
+ "TransactionalMessage": {
66
+ "field_sets": ["fields_1"],
67
+ "ontology_class": None,
68
+ },
69
+ }
70
+
71
+ RESOURCES = (
72
+ {
73
+ "id_prefix": "campaign",
74
+ "label": "Campaign",
75
+ "name": "Campaign",
76
+ },
77
+ {
78
+ "id_prefix": "emailtemplate",
79
+ "label": "Email Template",
80
+ "name": "EmailTemplate",
81
+ },
82
+ {
83
+ "id_prefix": "subscriber",
84
+ "label": "Subscriber",
85
+ "name": "Subscriber",
86
+ },
87
+ {
88
+ "id_prefix": "subscriptionlist",
89
+ "label": "Subscription List",
90
+ "name": "SubscriptionList",
91
+ },
92
+ {
93
+ "id_prefix": "transactionalmessage",
94
+ "label": "Transactional Message",
95
+ "name": "TransactionalMessage",
96
+ },
97
+ )
@@ -23,23 +23,18 @@ with warnings.catch_warnings():
23
23
  pass
24
24
  warnings.filterwarnings("ignore", message=".*urllib3.*or chardet.*")
25
25
  warnings.filterwarnings("ignore", message=".*urllib3.*or charset_normalizer.*")
26
- import asyncio
27
26
  import json
28
27
  import logging
29
28
  import sys
30
29
  from threading import local
31
30
  from typing import Any
32
31
 
33
- import httpx
34
- from agent_connector_sdk.config import load_config, setting
32
+ from agent_connector_sdk.config import setting
33
+ from agent_connector_sdk.connector_hooks import RegistrationContext
35
34
  from agent_connector_sdk.mcp.action_dispatch import resolve_action
36
- from agent_connector_sdk.mcp.server import create_mcp_server
37
- from agent_connector_sdk.mcp.tool_surface import register_tool_surface
38
35
 
39
- from listmonk_api.api_client import ListmonkAPI
40
36
  from listmonk_api.auth import get_client
41
37
 
42
- __version__ = "2.3.3"
43
38
  logger = get_logger(name="ListmonkMCP")
44
39
  logger.setLevel(logging.DEBUG)
45
40
 
@@ -462,8 +457,9 @@ def register_listmonk_ingest_tools(mcp: FastMCP):
462
457
  return {"entity": entity, "listed": listed, "ingested": result}
463
458
 
464
459
 
465
- def register_prompts(mcp: FastMCP):
460
+ def register_prompts(context: RegistrationContext):
466
461
  """Register MCP prompts."""
462
+ mcp = context.server
467
463
 
468
464
  @mcp.prompt
469
465
  def create_campaign_prompt(
@@ -516,96 +512,3 @@ def _validate_openapi_credentials(args: Any) -> None:
516
512
  _validate_openapi_token_credential()
517
513
  return
518
514
  _validate_openapi_password_or_client_credentials(args)
519
-
520
-
521
- def get_mcp_instance() -> tuple[Any, Any, Any, Any, Any]:
522
- """Initialize and return the MCP instance, args, and middlewares."""
523
- load_config()
524
- args, mcp, middlewares = create_mcp_server(
525
- name="Listmonk",
526
- version=__version__,
527
- instructions="Listmonk MCP Server — Manage subscribers, lists, campaigns, templates, media, imports, and transactional messages.",
528
- )
529
- imported_tools = []
530
- imported_resources = []
531
- # agent_connector_sdk's parser/create_mcp_server does not define the
532
- # AU-only --openapi-file/--enable-delegation flags (delegation, Eunomia,
533
- # and OpenAPI import are explicitly AU-internal features, not part of the
534
- # SDK's scope per agent_connector_sdk.mcp.parser's own docstring), so this
535
- # branch degrades to permanently inert rather than crashing on a missing
536
- # attribute.
537
- if getattr(args, "openapi_file", None):
538
- if getattr(args, "enable_delegation", False):
539
- raise ValueError("OpenAPI import not supported with delegation enabled")
540
- try:
541
- with open(args.openapi_file) as f:
542
- spec = json.load(f)
543
-
544
- async def _load_openapi_tools():
545
- _validate_openapi_credentials(args)
546
- api = get_client()
547
- base_url = args.openapi_base_url or api.base_url
548
- async with httpx.AsyncClient(base_url=base_url) as client:
549
- openapi_mcp = FastMCP.from_openapi(
550
- openapi_spec=spec, client=client, name="OpenAPI Tools"
551
- )
552
- tools = await openapi_mcp.get_tools()
553
- resources = await openapi_mcp.get_resources()
554
- return (tools, resources)
555
-
556
- print("Importing OpenAPI tools...", file=sys.stderr)
557
- imported_tools, imported_resources = asyncio.run(_load_openapi_tools())
558
- print(
559
- f"Imported {len(imported_tools)} tools, {len(imported_resources)} resources",
560
- file=sys.stderr,
561
- )
562
- for tool in imported_tools:
563
- mcp.add_tool(tool)
564
- for resource in imported_resources:
565
- mcp.add_resource(resource)
566
- except Exception as exc:
567
- print(f"Operation failed: {type(exc).__name__}", file=sys.stderr)
568
- logger.error("OpenAPI import failed", extra={"error": "Operation failed"})
569
- sys.exit(1)
570
-
571
- registered_tags = register_tool_surface(
572
- mcp,
573
- client_cls=ListmonkAPI,
574
- get_client=get_client,
575
- service="listmonk-api",
576
- tools_module=sys.modules[__name__],
577
- )
578
- register_prompts(mcp)
579
- for tool in imported_tools:
580
- mcp.add_tool(tool)
581
- for resource in imported_resources:
582
- mcp.add_resource(resource)
583
- for mw in middlewares:
584
- mcp.add_middleware(mw)
585
- return (mcp, args, middlewares, registered_tags, imported_tools)
586
-
587
-
588
- def mcp_server() -> None:
589
- mcp, args, middlewares, registered_tags, imported_tools = get_mcp_instance()
590
- print("\nStarting Listmonk MCP Server", file=sys.stderr)
591
- print(f" Transport: {args.transport.upper()}", file=sys.stderr)
592
- print(f" Auth: {args.auth_type}", file=sys.stderr)
593
- print(
594
- f" Delegation: {('ON' if getattr(args, 'enable_delegation', False) else 'OFF')}",
595
- file=sys.stderr,
596
- )
597
- print(f" Eunomia: {getattr(args, 'eunomia_type', 'disabled')}", file=sys.stderr)
598
- print(f" Imported OpenAPI Tools: {len(imported_tools)} total", file=sys.stderr)
599
- if args.transport == "stdio":
600
- mcp.run(transport="stdio")
601
- elif args.transport == "streamable-http":
602
- mcp.run(transport="streamable-http", host=args.host, port=args.port)
603
- elif args.transport == "sse":
604
- mcp.run(transport="sse", host=args.host, port=args.port)
605
- else:
606
- logger.error("Invalid transport", extra={"transport": args.transport})
607
- sys.exit(1)
608
-
609
-
610
- if __name__ == "__main__":
611
- mcp_server()
@@ -1,12 +1,9 @@
1
1
  {
2
- "api_version": "arbora.io/v1",
2
+ "api_version": "graphos.io/v1",
3
3
  "artifacts": {
4
- "connector_manifest.yml": "892c422fbc73fa8ac6de69937adfa1f4f2eba79862627e8ac42663584e9873ad",
5
- "listmonk_api/connectors/mcp_source_presets.json": "5680d8490d54fa3bf08da1b052a6f3cdbc9d90730d077a5b058a7c6e6549e94f",
6
- "listmonk_api/connectors/tool_schema_fingerprints.json": "07cea0e0754b1f23c71e76be6bc0ec06413ba87a4b960cd098a0683bbbfa06d2",
7
4
  "listmonk_api/ontology/fixtures/records.json": "3bfc9ad808b89d144406d45d220b63c8c40e969068f525844780c02a91e88b3a",
8
- "listmonk_api/ontology/listmonk.ttl": "f9cfacedeb69e22939b8c81980a2abcbaaef8689bd6682268dd54abfaf2d0733",
9
- "listmonk_api/ontology/mappings/source.yaml": "75b70ed3dfe508eb63b9a5ddd0b0ea9addf8b71d86645741651724f31c75216d",
5
+ "listmonk_api/ontology/listmonk.ttl": "48af73e127239be298130cfebc6c874ef6e669c863ff297ec05e81249e376a3b",
6
+ "listmonk_api/ontology/mappings/source.yaml": "30a210462b94e96490ad68d8e3958b9018486a84e48a3338995c69fa0103fa12",
10
7
  "listmonk_api/ontology/migrations/manifest.json": "dcc939c0c761d526c8ec9fd65b0738c519bdc71f7b5d50156b3930057c77ff66",
11
8
  "listmonk_api/ontology/shapes/connector.shacl.ttl": "154123bcff104aa4716d3ff7a6f1187ed00a5fe0efad8ced25d002d7aa376472"
12
9
  },
@@ -18,11 +15,11 @@
18
15
  "synthetic_fixture_contract": "passed"
19
16
  },
20
17
  "compatibility": {
21
- "agent_connector_sdk": ">=2.5.0,<3",
18
+ "agent_utilities": ">=2.5.0,<3",
22
19
  "bundle_schema": "2",
23
20
  "epistemic_graph": ">=2.27.0,<3"
24
21
  },
25
- "connector": "listmonk-mcp",
22
+ "connector": "listmonk-api",
26
23
  "kind": "ConnectorSourceAttestation",
27
24
  "live_certified": false,
28
25
  "mode": "offline-source",
@@ -32,5 +29,5 @@
32
29
  "signer": "UNSIGNED-PREVIEW",
33
30
  "signing_public_key": "",
34
31
  "status": "source-validated",
35
- "validated_at": "2026-08-26T13:42:55Z"
32
+ "validated_at": "2026-10-24T13:19:21Z"
36
33
  }
@@ -117,5 +117,8 @@
117
117
  rdfs:comment """Listmonk newsletter and mailing-list model — campaigns, subscription
118
118
  lists, subscribers, email templates and transactional messages, with their targeting,
119
119
  subscription and templating relationships — federated into the agent-connector-sdk
120
- knowledge-graph hub. Reuses the shared :Person and :Document classes.""" ;
121
- owl:imports <http://knuckles.team/kg> .
120
+ knowledge-graph hub. Reuses the shared :Person and :Document classes.""" .
121
+
122
+ # ontology-codemod R3
123
+ <http://knuckles.team/kg#EmailTemplate> rdfs:subClassOf <http://knuckles.team/kg#Template> .
124
+ <http://knuckles.team/kg#TransactionalMessage> rdfs:subClassOf <http://knuckles.team/kg#Message> .
@@ -1,5 +1,5 @@
1
1
  schema_version: '1'
2
- connector: listmonk-api
2
+ connector: listmonk-mcp
3
3
  ontology_source: listmonk
4
4
  sync:
5
5
  - preset: listmonk-campaigns
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listmonk-api
3
- Version: 2.3.3
3
+ Version: 2.3.5
4
4
  Summary: Agent package for Listmonk
5
- Author-email: Project Maintainers <maintainers@users.noreply.github.com>
5
+ Author-email: Repository Maintainers <maintainers@knuckles.team>
6
6
  License: MIT
7
7
  Classifier: Development Status :: 4 - Beta
8
8
  Classifier: License :: OSI Approved :: MIT License
@@ -12,12 +12,8 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18
15
+ Requires-Dist: agent-connector-sdk[mcp]<0.6.0,>=0.5.4
16
16
  Requires-Dist: requests>=2.34.2
17
- Provides-Extra: mcp
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18; extra == "mcp"
19
- Provides-Extra: all
20
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18; extra == "all"
21
17
  Provides-Extra: test
22
18
  Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
19
  Requires-Dist: pytest>=9.1.1; extra == "test"
@@ -47,8 +43,6 @@ Dynamic: license-file
47
43
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/listmonk-api)
48
44
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/listmonk-api)
49
45
 
50
- *Version: 2.3.3*
51
-
52
46
  > **Documentation** — Installation, deployment, usage across the API, CLI, MCP, and
53
47
  > agent interfaces, and guidance for provisioning the Listmonk platform are maintained
54
48
  > in the [official documentation](https://knuckles-team.github.io/listmonk-api/).
@@ -7,6 +7,7 @@ listmonk_api/__init__.py
7
7
  listmonk_api/__main__.py
8
8
  listmonk_api/api_client.py
9
9
  listmonk_api/auth.py
10
+ listmonk_api/connector_sources.py
10
11
  listmonk_api/kg_ingest.py
11
12
  listmonk_api/mcp_config.json
12
13
  listmonk_api/mcp_server.py
@@ -26,9 +27,6 @@ listmonk_api/api/api_client_media.py
26
27
  listmonk_api/api/api_client_subscribers.py
27
28
  listmonk_api/api/api_client_templates.py
28
29
  listmonk_api/api/api_client_transactional.py
29
- listmonk_api/connectors/__init__.py
30
- listmonk_api/connectors/mcp_source_presets.json
31
- listmonk_api/connectors/tool_schema_fingerprints.json
32
30
  listmonk_api/ontology/__init__.py
33
31
  listmonk_api/ontology/certification.json
34
32
  listmonk_api/ontology/listmonk.ttl
@@ -36,8 +34,6 @@ listmonk_api/ontology/fixtures/records.json
36
34
  listmonk_api/ontology/mappings/source.yaml
37
35
  listmonk_api/ontology/migrations/manifest.json
38
36
  listmonk_api/ontology/shapes/connector.shacl.ttl
39
- listmonk_api/prompts/__init__.py
40
- listmonk_api/skills/__init__.py
41
37
  listmonk_api/skills/listmonk-api-operations/SKILL.md
42
38
  listmonk_api/skills/listmonk-api-operations/agents/openai.yaml
43
39
  listmonk_api/skills/listmonk-api-operations/references/catalog.md
@@ -47,12 +43,10 @@ listmonk_api/skills/listmonk-subscriber-lists/SKILL.md
47
43
  listmonk_api/skills/listmonk-subscriber-lists/WORKFLOW.md
48
44
  listmonk_api/skills/listmonk-transactional-messaging/SKILL.md
49
45
  listmonk_api/skills/listmonk-transactional-messaging/WORKFLOW.md
50
- scripts/security_sanitizer.py
51
46
  tests/conftest.py
52
47
  tests/test_action_discovery.py
53
48
  tests/test_api_clients.py
54
49
  tests/test_auth_and_server.py
55
- tests/test_default_content_surfaces.py
56
50
  tests/test_fleet_name.py
57
51
  tests/test_init.py
58
52
  tests/test_init_dynamics.py
@@ -0,0 +1,5 @@
1
+ [agent_connector_sdk.connector]
2
+ listmonk-mcp = listmonk_api:connector
3
+
4
+ [console_scripts]
5
+ listmonk-mcp = agent_connector_sdk.cli:serve
@@ -0,0 +1,8 @@
1
+ agent-connector-sdk[mcp]<0.6.0,>=0.5.4
2
+ requests>=2.34.2
3
+
4
+ [test]
5
+ pytest-xdist>=3.8.0
6
+ pytest>=9.1.1
7
+ pytest-asyncio>=1.4.0
8
+ pytest-cov>=7.1.0
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "listmonk-api"
7
- version = "2.3.3"
7
+ version = "2.3.5"
8
8
  description = "Agent package for Listmonk"
9
9
  readme = "README.md"
10
- authors = [{ name = "Project Maintainers", email = "maintainers@users.noreply.github.com" }]
10
+ authors = [{ name = "Repository Maintainers", email = "maintainers@knuckles.team" }]
11
11
  license = { text = "MIT" }
12
12
  classifiers = [
13
13
  "Development Status :: 4 - Beta",
@@ -17,34 +17,23 @@ classifiers = [
17
17
  "Programming Language :: Python :: 3"]
18
18
  requires-python = ">=3.12"
19
19
  dependencies = [
20
- "agent-connector-sdk[mcp]>=0.3.18,<1.0.0",
20
+ "agent-connector-sdk[mcp]>=0.5.4,<0.6.0",
21
21
  "requests>=2.34.2",
22
22
  ]
23
23
 
24
24
  [project.optional-dependencies]
25
- mcp = [ "agent-connector-sdk[mcp]>=0.3.18,<1.0.0",]
26
- all = [ "agent-connector-sdk[mcp]>=0.3.18,<1.0.0",]
27
25
  test = [ "pytest-xdist>=3.8.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0",]
28
26
 
29
27
  [project.scripts]
30
- listmonk-mcp = "listmonk_api.mcp_server:mcp_server"
28
+ listmonk-mcp = "agent_connector_sdk.cli:serve"
31
29
 
32
30
  # The one declared connector identity: the fleet name (SDK-CONNECTOR-CONTROL-R071).
33
31
  [project.entry-points."agent_connector_sdk.connector"]
34
- listmonk-mcp = "listmonk_api"
32
+ listmonk-mcp = "listmonk_api:connector"
35
33
 
36
34
  [tool.setuptools.packages.find]
37
35
  where = ["."]
38
36
 
39
- [project.entry-points."agent_connector_sdk.skill_providers"]
40
- listmonk-api = "listmonk_api.skills"
41
-
42
- [project.entry-points."agent_connector_sdk.ontology_providers"]
43
- listmonk-api = "listmonk_api.ontology"
44
-
45
- [project.entry-points."agent_connector_sdk.source_connector_providers"]
46
- listmonk-api = "listmonk_api.connectors"
47
-
48
37
  [tool.uv.workspace]
49
38
  members = ["."]
50
39
 
@@ -74,3 +63,10 @@ exempt = ["specs/*", "specs/**/*"]
74
63
  [tool.ruff.lint]
75
64
  select = [ "E", "F", "I", "UP", "B",]
76
65
  ignore = [ "E402", "E501", "B008",]
66
+
67
+ [tool.pipelines.container]
68
+ port = 8004
69
+ debug_apt = ["default-jre", "ripgrep", "tree", "fd-find", "curl", "nano", "build-essential", "cmake", "libssl-dev", "libcurl4-openssl-dev", "pkg-config", "cargo", "rustc"]
70
+
71
+ [tool.ruff]
72
+ extend-exclude = ["tests", "scripts"]
@@ -0,0 +1 @@
1
+ agent-connector-sdk[mcp]>=0.4.1,<1.0.0
@@ -2,9 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from agent_connector_sdk.connector_identity import connector_name
5
6
  import ast
6
- import json
7
- import re
8
7
  import tomllib
9
8
  from pathlib import Path
10
9
 
@@ -36,18 +35,8 @@ def _call_connectors(path: Path) -> list[str]:
36
35
  def test_connector_name_is_the_fleet_name() -> None:
37
36
  pyproject = tomllib.loads((ROOT / "pyproject.toml").read_text(encoding="utf-8"))
38
37
  assert pyproject["project"]["entry-points"]["agent_connector_sdk.connector"] == {
39
- FLEET: "listmonk_api"
38
+ FLEET: "listmonk_api:connector"
40
39
  }
41
- manifest_path = PACKAGE / "connector_manifest.yml"
42
- if not manifest_path.is_file():
43
- manifest_path = ROOT / "connector_manifest.yml"
44
- manifest = manifest_path.read_text(encoding="utf-8")
45
- match = re.search(r'^\s*"?connector"?\s*:\s*"?([^"\s,]+)', manifest, re.MULTILINE)
46
- assert match is not None and match.group(1) == FLEET
47
- fingerprints = PACKAGE / "connectors" / "tool_schema_fingerprints.json"
48
- if fingerprints.is_file():
49
- assert (
50
- json.loads(fingerprints.read_text(encoding="utf-8"))["connector"] == FLEET
51
- )
40
+ assert connector_name("listmonk_api") == FLEET
52
41
  for module in sorted(PACKAGE.glob("*.py")):
53
42
  assert all(name == FLEET for name in _call_connectors(module)), module.name
@@ -72,7 +72,7 @@ async def test_ingest_entities_writes_nodes_and_edges(ingest):
72
72
  a_record = next(r for r in request.records if r.record_id == "a")
73
73
  assert a_record.payload["name"] == "c"
74
74
  assert request.relationships[0].relation_reference.endswith(
75
- "resources/Campaign/relations/targetsList"
75
+ "relations/Campaign/targetsList"
76
76
  )
77
77
 
78
78