listmonk-api 2.3.2__tar.gz → 2.3.4__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 (67) hide show
  1. {listmonk_api-2.3.2/listmonk_api.egg-info → listmonk_api-2.3.4}/PKG-INFO +5 -5
  2. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/README.md +1 -1
  3. listmonk_api-2.3.4/listmonk_api/connector_sources.py +147 -0
  4. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/mcp_server.py +1 -1
  5. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/ontology/certification.json +0 -3
  6. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/ontology/listmonk.ttl +5 -2
  7. {listmonk_api-2.3.2 → listmonk_api-2.3.4/listmonk_api.egg-info}/PKG-INFO +5 -5
  8. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api.egg-info/SOURCES.txt +2 -2
  9. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api.egg-info/entry_points.txt +0 -3
  10. listmonk_api-2.3.4/listmonk_api.egg-info/requires.txt +14 -0
  11. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/pyproject.toml +4 -7
  12. listmonk_api-2.3.4/requirements.txt +1 -0
  13. listmonk_api-2.3.4/tests/test_default_content_surfaces.py +43 -0
  14. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_fleet_name.py +2 -13
  15. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_kg_ingest.py +1 -1
  16. listmonk_api-2.3.2/listmonk_api/connectors/mcp_source_presets.json +0 -18
  17. listmonk_api-2.3.2/listmonk_api/connectors/tool_schema_fingerprints.json +0 -8
  18. listmonk_api-2.3.2/listmonk_api.egg-info/requires.txt +0 -14
  19. listmonk_api-2.3.2/requirements.txt +0 -1
  20. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/LICENSE +0 -0
  21. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/MANIFEST.in +0 -0
  22. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/__init__.py +0 -0
  23. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/__main__.py +0 -0
  24. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/__init__.py +0 -0
  25. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_base.py +0 -0
  26. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_campaigns.py +0 -0
  27. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_import_api.py +0 -0
  28. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_lists.py +0 -0
  29. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_media.py +0 -0
  30. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_subscribers.py +0 -0
  31. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_templates.py +0 -0
  32. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api/api_client_transactional.py +0 -0
  33. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/api_client.py +0 -0
  34. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/auth.py +0 -0
  35. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/connectors/__init__.py +0 -0
  36. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/kg_ingest.py +0 -0
  37. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/mcp_config.json +0 -0
  38. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/models.py +0 -0
  39. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/ontology/__init__.py +0 -0
  40. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/ontology/fixtures/records.json +0 -0
  41. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/ontology/mappings/source.yaml +0 -0
  42. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/ontology/migrations/manifest.json +0 -0
  43. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/ontology/shapes/connector.shacl.ttl +0 -0
  44. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/prompts/__init__.py +0 -0
  45. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/__init__.py +0 -0
  46. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-api-operations/SKILL.md +0 -0
  47. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-api-operations/agents/openai.yaml +0 -0
  48. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-api-operations/references/catalog.md +0 -0
  49. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-campaign-management/SKILL.md +0 -0
  50. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-campaign-management/WORKFLOW.md +0 -0
  51. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-subscriber-lists/SKILL.md +0 -0
  52. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-subscriber-lists/WORKFLOW.md +0 -0
  53. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-transactional-messaging/SKILL.md +0 -0
  54. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api/skills/listmonk-transactional-messaging/WORKFLOW.md +0 -0
  55. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api.egg-info/dependency_links.txt +0 -0
  56. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/listmonk_api.egg-info/top_level.txt +0 -0
  57. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/scripts/security_sanitizer.py +0 -0
  58. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/setup.cfg +0 -0
  59. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/conftest.py +0 -0
  60. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_action_discovery.py +0 -0
  61. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_api_clients.py +0 -0
  62. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_auth_and_server.py +0 -0
  63. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_init.py +0 -0
  64. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_init_dynamics.py +0 -0
  65. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_mcp_server.py +0 -0
  66. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_startup.py +0 -0
  67. {listmonk_api-2.3.2 → listmonk_api-2.3.4}/tests/test_token_auth.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listmonk-api
3
- Version: 2.3.2
3
+ Version: 2.3.4
4
4
  Summary: Agent package for Listmonk
5
5
  Author-email: Project Maintainers <maintainers@users.noreply.github.com>
6
6
  License: MIT
@@ -12,12 +12,12 @@ 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.11
15
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
16
16
  Requires-Dist: requests>=2.34.2
17
17
  Provides-Extra: mcp
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "mcp"
18
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
19
19
  Provides-Extra: all
20
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "all"
20
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
21
21
  Provides-Extra: test
22
22
  Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
23
  Requires-Dist: pytest>=9.1.1; extra == "test"
@@ -47,7 +47,7 @@ Dynamic: license-file
47
47
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/listmonk-api)
48
48
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/listmonk-api)
49
49
 
50
- *Version: 2.3.2*
50
+ *Version: 2.3.4*
51
51
 
52
52
  > **Documentation** — Installation, deployment, usage across the API, CLI, MCP, and
53
53
  > agent interfaces, and guidance for provisioning the Listmonk platform are maintained
@@ -20,7 +20,7 @@
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.2*
23
+ *Version: 2.3.4*
24
24
 
25
25
  > **Documentation** — Installation, deployment, usage across the API, CLI, MCP, and
26
26
  > agent interfaces, and guidance for provisioning the Listmonk platform are maintained
@@ -0,0 +1,147 @@
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
+ from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
11
+
12
+ CONNECTOR = "listmonk-mcp"
13
+
14
+ SOURCES = (
15
+ source_meta(
16
+ tool="listmonk_get_campaigns",
17
+ source_id="listmonk-campaigns",
18
+ record_type="Campaign",
19
+ id_field="id",
20
+ cursor_field="updated_at",
21
+ page_param="page",
22
+ page_size_param="per_page",
23
+ pagination="page",
24
+ preset={
25
+ "doc_type": "campaign",
26
+ "page_kind": "number",
27
+ "params_style": "args",
28
+ },
29
+ records_path="results",
30
+ server="listmonk-mcp",
31
+ text_field="body",
32
+ title_field="name",
33
+ ),
34
+ )
35
+
36
+ SCHEMA_MAPPINGS = {
37
+ "Campaign": {
38
+ "fields": {
39
+ "campaignStatus": "xsd:string",
40
+ "email": "xsd:string",
41
+ "fromEmail": "xsd:string",
42
+ "listType": "xsd:string",
43
+ "optinType": "xsd:string",
44
+ "sendAt": "xsd:string",
45
+ "subject": "xsd:string",
46
+ "subscriberStatus": "xsd:string",
47
+ },
48
+ "ontology_class": None,
49
+ },
50
+ "EmailTemplate": {
51
+ "fields": {
52
+ "campaignStatus": "xsd:string",
53
+ "email": "xsd:string",
54
+ "fromEmail": "xsd:string",
55
+ "listType": "xsd:string",
56
+ "optinType": "xsd:string",
57
+ "sendAt": "xsd:string",
58
+ "subject": "xsd:string",
59
+ "subscriberStatus": "xsd:string",
60
+ },
61
+ "ontology_class": None,
62
+ },
63
+ "Subscriber": {
64
+ "fields": {
65
+ "campaignStatus": "xsd:string",
66
+ "email": "xsd:string",
67
+ "fromEmail": "xsd:string",
68
+ "listType": "xsd:string",
69
+ "optinType": "xsd:string",
70
+ "sendAt": "xsd:string",
71
+ "subject": "xsd:string",
72
+ "subscriberStatus": "xsd:string",
73
+ },
74
+ "ontology_class": "Person",
75
+ },
76
+ "SubscriptionList": {
77
+ "fields": {
78
+ "campaignStatus": "xsd:string",
79
+ "email": "xsd:string",
80
+ "fromEmail": "xsd:string",
81
+ "listType": "xsd:string",
82
+ "optinType": "xsd:string",
83
+ "sendAt": "xsd:string",
84
+ "subject": "xsd:string",
85
+ "subscriberStatus": "xsd:string",
86
+ },
87
+ "ontology_class": None,
88
+ },
89
+ "TransactionalMessage": {
90
+ "fields": {
91
+ "campaignStatus": "xsd:string",
92
+ "email": "xsd:string",
93
+ "fromEmail": "xsd:string",
94
+ "listType": "xsd:string",
95
+ "optinType": "xsd:string",
96
+ "sendAt": "xsd:string",
97
+ "subject": "xsd:string",
98
+ "subscriberStatus": "xsd:string",
99
+ },
100
+ "ontology_class": None,
101
+ },
102
+ }
103
+
104
+ RESOURCES = (
105
+ {
106
+ "id_prefix": "campaign",
107
+ "label": "Campaign",
108
+ "name": "Campaign",
109
+ },
110
+ {
111
+ "id_prefix": "emailtemplate",
112
+ "label": "Email Template",
113
+ "name": "EmailTemplate",
114
+ },
115
+ {
116
+ "id_prefix": "subscriber",
117
+ "label": "Subscriber",
118
+ "name": "Subscriber",
119
+ },
120
+ {
121
+ "id_prefix": "subscriptionlist",
122
+ "label": "Subscription List",
123
+ "name": "SubscriptionList",
124
+ },
125
+ {
126
+ "id_prefix": "transactionalmessage",
127
+ "label": "Transactional Message",
128
+ "name": "TransactionalMessage",
129
+ },
130
+ )
131
+
132
+
133
+ def declaration() -> IngestSourceDeclaration:
134
+ """The declaration the server assembles from this module."""
135
+ specs = []
136
+ for item in SOURCES:
137
+ for entry in item["connector_sources"]:
138
+ body = {k: v for k, v in entry.items() if k not in ("tool", "mapping")}
139
+ specs.append(IngestSourceSpec.model_validate({**body, "tools": (entry["tool"],)}))
140
+ return IngestSourceDeclaration.model_validate(
141
+ {
142
+ "connector": CONNECTOR,
143
+ "sources": specs,
144
+ "schema_mappings": SCHEMA_MAPPINGS,
145
+ "resources": RESOURCES,
146
+ }
147
+ )
@@ -39,7 +39,7 @@ from agent_connector_sdk.mcp.tool_surface import register_tool_surface
39
39
  from listmonk_api.api_client import ListmonkAPI
40
40
  from listmonk_api.auth import get_client
41
41
 
42
- __version__ = "2.3.2"
42
+ __version__ = "2.3.4"
43
43
  logger = get_logger(name="ListmonkMCP")
44
44
  logger.setLevel(logging.DEBUG)
45
45
 
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "api_version": "arbora.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
5
  "listmonk_api/ontology/listmonk.ttl": "f9cfacedeb69e22939b8c81980a2abcbaaef8689bd6682268dd54abfaf2d0733",
9
6
  "listmonk_api/ontology/mappings/source.yaml": "75b70ed3dfe508eb63b9a5ddd0b0ea9addf8b71d86645741651724f31c75216d",
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listmonk-api
3
- Version: 2.3.2
3
+ Version: 2.3.4
4
4
  Summary: Agent package for Listmonk
5
5
  Author-email: Project Maintainers <maintainers@users.noreply.github.com>
6
6
  License: MIT
@@ -12,12 +12,12 @@ 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.11
15
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
16
16
  Requires-Dist: requests>=2.34.2
17
17
  Provides-Extra: mcp
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "mcp"
18
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
19
19
  Provides-Extra: all
20
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "all"
20
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
21
21
  Provides-Extra: test
22
22
  Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
23
  Requires-Dist: pytest>=9.1.1; extra == "test"
@@ -47,7 +47,7 @@ Dynamic: license-file
47
47
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/listmonk-api)
48
48
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/listmonk-api)
49
49
 
50
- *Version: 2.3.2*
50
+ *Version: 2.3.4*
51
51
 
52
52
  > **Documentation** — Installation, deployment, usage across the API, CLI, MCP, and
53
53
  > agent interfaces, and guidance for provisioning the Listmonk platform are maintained
@@ -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
@@ -27,8 +28,6 @@ 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
30
  listmonk_api/connectors/__init__.py
30
- listmonk_api/connectors/mcp_source_presets.json
31
- listmonk_api/connectors/tool_schema_fingerprints.json
32
31
  listmonk_api/ontology/__init__.py
33
32
  listmonk_api/ontology/certification.json
34
33
  listmonk_api/ontology/listmonk.ttl
@@ -52,6 +51,7 @@ tests/conftest.py
52
51
  tests/test_action_discovery.py
53
52
  tests/test_api_clients.py
54
53
  tests/test_auth_and_server.py
54
+ tests/test_default_content_surfaces.py
55
55
  tests/test_fleet_name.py
56
56
  tests/test_init.py
57
57
  tests/test_init_dynamics.py
@@ -7,8 +7,5 @@ listmonk-api = listmonk_api.ontology
7
7
  [agent_connector_sdk.skill_providers]
8
8
  listmonk-api = listmonk_api.skills
9
9
 
10
- [agent_connector_sdk.source_connector_providers]
11
- listmonk-api = listmonk_api.connectors
12
-
13
10
  [console_scripts]
14
11
  listmonk-mcp = listmonk_api.mcp_server:mcp_server
@@ -0,0 +1,14 @@
1
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
2
+ requests>=2.34.2
3
+
4
+ [all]
5
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
6
+
7
+ [mcp]
8
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
9
+
10
+ [test]
11
+ pytest-xdist>=3.8.0
12
+ pytest>=9.1.1
13
+ pytest-asyncio>=1.4.0
14
+ pytest-cov>=7.1.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "listmonk-api"
7
- version = "2.3.2"
7
+ version = "2.3.4"
8
8
  description = "Agent package for Listmonk"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Project Maintainers", email = "maintainers@users.noreply.github.com" }]
@@ -17,13 +17,13 @@ classifiers = [
17
17
  "Programming Language :: Python :: 3"]
18
18
  requires-python = ">=3.12"
19
19
  dependencies = [
20
- "agent-connector-sdk[mcp]>=0.3.11,<1.0.0",
20
+ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",
21
21
  "requests>=2.34.2",
22
22
  ]
23
23
 
24
24
  [project.optional-dependencies]
25
- mcp = [ "agent-connector-sdk[mcp]>=0.3.11,<1.0.0",]
26
- all = [ "agent-connector-sdk[mcp]>=0.3.11,<1.0.0",]
25
+ mcp = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
26
+ all = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
27
27
  test = [ "pytest-xdist>=3.8.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0",]
28
28
 
29
29
  [project.scripts]
@@ -42,9 +42,6 @@ listmonk-api = "listmonk_api.skills"
42
42
  [project.entry-points."agent_connector_sdk.ontology_providers"]
43
43
  listmonk-api = "listmonk_api.ontology"
44
44
 
45
- [project.entry-points."agent_connector_sdk.source_connector_providers"]
46
- listmonk-api = "listmonk_api.connectors"
47
-
48
45
  [tool.uv.workspace]
49
46
  members = ["."]
50
47
 
@@ -0,0 +1 @@
1
+ agent-connector-sdk[mcp]>=0.4.1,<1.0.0
@@ -0,0 +1,43 @@
1
+ """CONN-LISTMONK-API-CONNECTOR-CONTENT-R001: the server lists its packaged skills, ontology and prompts by default."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import importlib
7
+ from pathlib import Path
8
+
9
+ import pytest
10
+ from fastmcp import Client
11
+
12
+ PACKAGE = "listmonk_api"
13
+ ROOT = Path(list(importlib.import_module(PACKAGE).__path__)[0])
14
+
15
+ pytestmark = pytest.mark.spec("CONN-LISTMONK-API-CONNECTOR-CONTENT-R001")
16
+
17
+
18
+ def _server():
19
+ namespace = {"__name__": PACKAGE + ".mcp_server"}
20
+ exec(
21
+ "from agent_connector_sdk.mcp.server import create_mcp_server\n"
22
+ "result = create_mcp_server('listmonk-mcp', version='0', command_args=[])",
23
+ namespace,
24
+ )
25
+ return namespace["result"][1]
26
+
27
+
28
+ async def _listings():
29
+ async with Client(_server()) as client:
30
+ resources = {str(r.uri) for r in await client.list_resources()}
31
+ prompts = {p.name for p in await client.list_prompts()}
32
+ return resources, prompts
33
+
34
+
35
+ def test_default_content_surfaces() -> None:
36
+ resources, prompts = asyncio.run(_listings())
37
+ if list(ROOT.glob("skills/*/SKILL.md")):
38
+ assert any(u.startswith("skill://") for u in resources)
39
+ if list(ROOT.glob("ontology/*.ttl")):
40
+ assert any(u.startswith("ontology://listmonk-mcp/") for u in resources)
41
+ for path in ROOT.glob("prompts/*.json"):
42
+ if not path.name.startswith("_"):
43
+ assert path.stem in prompts
@@ -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
 
@@ -38,16 +37,6 @@ def test_connector_name_is_the_fleet_name() -> None:
38
37
  assert pyproject["project"]["entry-points"]["agent_connector_sdk.connector"] == {
39
38
  FLEET: "listmonk_api"
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
 
@@ -1,18 +0,0 @@
1
- {
2
- "_comment": "Tier-1 mcp_tool source presets for listmonk-api (AU-KG.ingest.mcp-tool-connector). Syncs Listmonk campaigns into the KG as documents via the listmonk-api MCP server. Contributed presets win over the central MCP_TOOL_PRESETS. Extend with lists/subscribers presets as needed.",
3
- "listmonk-campaigns": {
4
- "server": "listmonk-mcp",
5
- "tool": "listmonk_get_campaigns",
6
- "records_path": "results",
7
- "id_field": "id",
8
- "title_field": "name",
9
- "text_field": "body",
10
- "updated_field": "updated_at",
11
- "pagination": "page",
12
- "page_kind": "number",
13
- "page_param": "page",
14
- "page_size_param": "per_page",
15
- "doc_type": "campaign",
16
- "params_style": "args"
17
- }
18
- }
@@ -1,8 +0,0 @@
1
- {
2
- "algorithm": "agent-connector-sdk:mcp-tool-contract-compat:v2",
3
- "connector": "listmonk-mcp",
4
- "schema_version": "1",
5
- "tools": {
6
- "listmonk_get_campaigns": "fd03bd5c854e87aeb83eec3778441c1d3cd6d1d5ce3e164fcf5c254a62972bfb"
7
- }
8
- }
@@ -1,14 +0,0 @@
1
- agent-connector-sdk[mcp]<1.0.0,>=0.3.11
2
- requests>=2.34.2
3
-
4
- [all]
5
- agent-connector-sdk[mcp]<1.0.0,>=0.3.11
6
-
7
- [mcp]
8
- agent-connector-sdk[mcp]<1.0.0,>=0.3.11
9
-
10
- [test]
11
- pytest-xdist>=3.8.0
12
- pytest>=9.1.1
13
- pytest-asyncio>=1.4.0
14
- pytest-cov>=7.1.0
@@ -1 +0,0 @@
1
- agent-connector-sdk[mcp]>=0.2.1,<1.0.0
File without changes
File without changes
File without changes