listmonk-api 1.0.1__tar.gz → 2.3.1__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 (87) hide show
  1. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/LICENSE +1 -1
  2. {listmonk_api-1.0.1/listmonk_api.egg-info → listmonk_api-2.3.1}/PKG-INFO +123 -123
  3. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/README.md +111 -115
  4. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/__init__.py +32 -21
  5. listmonk_api-2.3.1/listmonk_api/__main__.py +6 -0
  6. listmonk_api-2.3.1/listmonk_api/api/api_client_base.py +120 -0
  7. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/api/api_client_campaigns.py +11 -31
  8. listmonk_api-2.3.1/listmonk_api/api/api_client_lists.py +43 -0
  9. listmonk_api-2.3.1/listmonk_api/api/api_client_subscribers.py +48 -0
  10. listmonk_api-2.3.1/listmonk_api/auth.py +37 -0
  11. listmonk_api-2.3.1/listmonk_api/connectors/mcp_source_presets.json +18 -0
  12. listmonk_api-2.3.1/listmonk_api/connectors/tool_schema_fingerprints.json +8 -0
  13. listmonk_api-2.3.1/listmonk_api/kg_ingest.py +349 -0
  14. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/mcp_server.py +183 -99
  15. listmonk_api-2.3.1/listmonk_api/ontology/__init__.py +7 -0
  16. listmonk_api-2.3.1/listmonk_api/ontology/certification.json +36 -0
  17. listmonk_api-2.3.1/listmonk_api/ontology/fixtures/records.json +21 -0
  18. listmonk_api-2.3.1/listmonk_api/ontology/listmonk.ttl +121 -0
  19. listmonk_api-2.3.1/listmonk_api/ontology/mappings/source.yaml +20 -0
  20. listmonk_api-2.3.1/listmonk_api/ontology/migrations/manifest.json +6 -0
  21. listmonk_api-2.3.1/listmonk_api/ontology/shapes/connector.shacl.ttl +104 -0
  22. listmonk_api-2.3.1/listmonk_api/skills/__init__.py +0 -0
  23. listmonk_api-2.3.1/listmonk_api/skills/listmonk-api-operations/SKILL.md +33 -0
  24. listmonk_api-2.3.1/listmonk_api/skills/listmonk-api-operations/agents/openai.yaml +4 -0
  25. listmonk_api-2.3.1/listmonk_api/skills/listmonk-api-operations/references/catalog.md +7 -0
  26. listmonk_api-2.3.1/listmonk_api/skills/listmonk-campaign-management/SKILL.md +96 -0
  27. listmonk_api-2.3.1/listmonk_api/skills/listmonk-campaign-management/WORKFLOW.md +83 -0
  28. listmonk_api-2.3.1/listmonk_api/skills/listmonk-subscriber-lists/SKILL.md +92 -0
  29. listmonk_api-2.3.1/listmonk_api/skills/listmonk-subscriber-lists/WORKFLOW.md +79 -0
  30. listmonk_api-2.3.1/listmonk_api/skills/listmonk-transactional-messaging/SKILL.md +85 -0
  31. listmonk_api-2.3.1/listmonk_api/skills/listmonk-transactional-messaging/WORKFLOW.md +72 -0
  32. {listmonk_api-1.0.1 → listmonk_api-2.3.1/listmonk_api.egg-info}/PKG-INFO +123 -123
  33. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api.egg-info/SOURCES.txt +23 -14
  34. listmonk_api-2.3.1/listmonk_api.egg-info/entry_points.txt +11 -0
  35. listmonk_api-2.3.1/listmonk_api.egg-info/requires.txt +14 -0
  36. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api.egg-info/top_level.txt +3 -0
  37. listmonk_api-2.3.1/pyproject.toml +72 -0
  38. listmonk_api-2.3.1/requirements.txt +1 -0
  39. listmonk_api-2.3.1/scripts/security_sanitizer.py +318 -0
  40. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/tests/conftest.py +0 -1
  41. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/tests/test_api_clients.py +1 -1
  42. listmonk_api-2.3.1/tests/test_auth_and_server.py +59 -0
  43. listmonk_api-2.3.1/tests/test_init.py +32 -0
  44. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/tests/test_init_dynamics.py +4 -1
  45. listmonk_api-2.3.1/tests/test_kg_ingest.py +191 -0
  46. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/tests/test_mcp_server.py +8 -9
  47. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/tests/test_startup.py +6 -6
  48. listmonk_api-2.3.1/tests/test_token_auth.py +53 -0
  49. listmonk_api-1.0.1/listmonk_api/__main__.py +0 -6
  50. listmonk_api-1.0.1/listmonk_api/agent_server.py +0 -85
  51. listmonk_api-1.0.1/listmonk_api/api/api_client_base.py +0 -37
  52. listmonk_api-1.0.1/listmonk_api/api/api_client_lists.py +0 -61
  53. listmonk_api-1.0.1/listmonk_api/api/api_client_subscribers.py +0 -64
  54. listmonk_api-1.0.1/listmonk_api/auth.py +0 -36
  55. listmonk_api-1.0.1/listmonk_api/main_agent.json +0 -20
  56. listmonk_api-1.0.1/listmonk_api/mcp/__init__.py +0 -25
  57. listmonk_api-1.0.1/listmonk_api/mcp/mcp_listmonk_campaigns.py +0 -78
  58. listmonk_api-1.0.1/listmonk_api/mcp/mcp_listmonk_imports.py +0 -64
  59. listmonk_api-1.0.1/listmonk_api/mcp/mcp_listmonk_lists.py +0 -63
  60. listmonk_api-1.0.1/listmonk_api/mcp/mcp_listmonk_media.py +0 -57
  61. listmonk_api-1.0.1/listmonk_api/mcp/mcp_listmonk_subscribers.py +0 -64
  62. listmonk_api-1.0.1/listmonk_api/mcp/mcp_listmonk_templates.py +0 -65
  63. listmonk_api-1.0.1/listmonk_api/mcp/mcp_listmonk_tx.py +0 -53
  64. listmonk_api-1.0.1/listmonk_api/prompts/main_agent.json +0 -20
  65. listmonk_api-1.0.1/listmonk_api/skills/listmonk-starter/SKILL.md +0 -19
  66. listmonk_api-1.0.1/listmonk_api.egg-info/entry_points.txt +0 -9
  67. listmonk_api-1.0.1/listmonk_api.egg-info/requires.txt +0 -10
  68. listmonk_api-1.0.1/pyproject.toml +0 -59
  69. listmonk_api-1.0.1/requirements.txt +0 -1
  70. listmonk_api-1.0.1/scripts/security_sanitizer.py +0 -160
  71. listmonk_api-1.0.1/tests/test_auth_and_server.py +0 -125
  72. listmonk_api-1.0.1/tests/test_concept_parity.py +0 -54
  73. listmonk_api-1.0.1/tests/test_init.py +0 -56
  74. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/MANIFEST.in +0 -0
  75. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/api/__init__.py +0 -0
  76. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/api/api_client_import_api.py +0 -0
  77. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/api/api_client_media.py +0 -0
  78. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/api/api_client_templates.py +0 -0
  79. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/api/api_client_transactional.py +0 -0
  80. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/api_client.py +0 -0
  81. {listmonk_api-1.0.1/listmonk_api/prompts → listmonk_api-2.3.1/listmonk_api/connectors}/__init__.py +0 -0
  82. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/mcp_config.json +0 -0
  83. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api/models.py +0 -0
  84. {listmonk_api-1.0.1/listmonk_api/skills → listmonk_api-2.3.1/listmonk_api/prompts}/__init__.py +0 -0
  85. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/listmonk_api.egg-info/dependency_links.txt +0 -0
  86. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/setup.cfg +0 -0
  87. {listmonk_api-1.0.1 → listmonk_api-2.3.1}/tests/test_action_discovery.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Audel Rouhi
3
+ Copyright (c) 2026 Project Maintainers
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,28 +1,32 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listmonk-api
3
- Version: 1.0.1
3
+ Version: 2.3.1
4
4
  Summary: Agent package for Listmonk
5
- Author-email: Audel Rouhi <knucklessg1@gmail.com>
5
+ Author-email: Project Maintainers <maintainers@users.noreply.github.com>
6
6
  License: MIT
7
7
  Classifier: Development Status :: 4 - Beta
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Environment :: Console
10
10
  Classifier: Operating System :: POSIX :: Linux
11
11
  Classifier: Programming Language :: Python :: 3
12
- Requires-Python: >=3.10
12
+ Requires-Python: >=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: agent-utilities[mcp]>=1.0.0
15
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.0
16
+ Requires-Dist: requests>=2.34.2
16
17
  Provides-Extra: mcp
17
- Requires-Dist: agent-utilities[mcp]>=1.0.0; extra == "mcp"
18
- Provides-Extra: agent
19
- Requires-Dist: agent-utilities[agent,logfire]>=1.0.0; extra == "agent"
18
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.0; extra == "mcp"
20
19
  Provides-Extra: all
21
- Requires-Dist: agent-utilities[agent,logfire,mcp]>=1.0.0; extra == "all"
20
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.0; extra == "all"
21
+ Provides-Extra: test
22
+ Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
+ Requires-Dist: pytest>=9.1.1; extra == "test"
24
+ Requires-Dist: pytest-asyncio>=1.4.0; extra == "test"
25
+ Requires-Dist: pytest-cov>=7.1.0; extra == "test"
22
26
  Dynamic: license-file
23
27
 
24
28
  # Listmonk Api
25
- ## CLI or API | MCP | Agent
29
+ ## CLI or API | MCP
26
30
 
27
31
  ![PyPI - Version](https://img.shields.io/pypi/v/listmonk-api)
28
32
  ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
@@ -43,7 +47,7 @@ Dynamic: license-file
43
47
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/listmonk-api)
44
48
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/listmonk-api)
45
49
 
46
- *Version: 1.0.1*
50
+ *Version: 2.3.1*
47
51
 
48
52
  > **Documentation** — Installation, deployment, usage across the API, CLI, MCP, and
49
53
  > agent interfaces, and guidance for provisioning the Listmonk platform are maintained
@@ -60,7 +64,7 @@ Dynamic: license-file
60
64
  ## Key Features
61
65
 
62
66
  - **Consolidated Action-Routed MCP Tools:** Minimizes token overhead and eliminates tool bloat in LLM contexts by grouping methods into optimized, togglable tool modules.
63
- - **Enterprise-Grade Security:** Comprehensive support for Eunomia policies, OIDC token delegation, and granular execution context tracking.
67
+ - **Enterprise-Grade Security:** Complete support for Eunomia policies, OIDC token delegation, and granular execution context tracking.
64
68
  - **Integrated Graph Agent:** Built-in Pydantic AI agent supporting the Agent Control Protocol (ACP) and standard Web interfaces (AG-UI).
65
69
  - **Native Telemetry & Tracing:** Out-of-the-box OpenTelemetry exports and native Langfuse tracing.
66
70
 
@@ -68,7 +72,7 @@ Dynamic: license-file
68
72
 
69
73
  ## CLI or API
70
74
 
71
- This agent wraps the Python Listmonk API Wrapper API. You can interact with it programmatically or via its integrated execution entrypoints.
75
+ This agent wraps the Python Listmonk API Wrapper API. The operator can interact with it programmatically or via its integrated execution entrypoints.
72
76
 
73
77
  Detailed instructions on how to use the underlying API wrappers, extended schema bindings, and developer SDK references are maintained in [docs/index.md](docs/index.md).
74
78
 
@@ -76,7 +80,7 @@ Detailed instructions on how to use the underlying API wrappers, extended schema
76
80
 
77
81
  ## MCP
78
82
 
79
- This server utilizes dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.
83
+ This server use dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.
80
84
 
81
85
  ### Available MCP Tools
82
86
 
@@ -84,12 +88,13 @@ Auto-generated — do not edit between the markers below.
84
88
 
85
89
  <!-- MCP-TOOLS-TABLE:START -->
86
90
 
87
- #### Condensed action-routed tools (default — `MCP_TOOL_MODE=condensed`)
91
+ #### Condensed action-routed tools (`MCP_TOOL_MODE=condensed`)
88
92
 
89
93
  | MCP Tool | Toggle Env Var | Description |
90
94
  |----------|----------------|-------------|
91
95
  | `listmonk_campaigns` | `LISTMONK_CAMPAIGNSTOOL` | Manage listmonk campaigns operations. |
92
96
  | `listmonk_imports` | `LISTMONK_IMPORTSTOOL` | Manage listmonk imports operations. |
97
+ | `listmonk_ingest` | `LISTMONK_INGESTTOOL` | Natively ingest Listmonk records into epistemic-graph as typed nodes + documents. |
93
98
  | `listmonk_lists` | `LISTMONK_LISTSTOOL` | Manage listmonk lists operations. |
94
99
  | `listmonk_media` | `LISTMONK_MEDIATOOL` | Manage listmonk media operations. |
95
100
  | `listmonk_subscribers` | `LISTMONK_SUBSCRIBERSTOOL` | Manage listmonk subscribers operations. |
@@ -99,20 +104,18 @@ Auto-generated — do not edit between the markers below.
99
104
  #### Verbose 1:1 API-mapped tools (`MCP_TOOL_MODE=verbose` or `both`)
100
105
 
101
106
  <details>
102
- <summary>32 per-operation tools — one per public API method (click to expand)</summary>
107
+ <summary>28 per-operation tools — one per public API method (click to expand)</summary>
103
108
 
104
109
  | MCP Tool | Toggle Env Var | Description |
105
110
  |----------|----------------|-------------|
106
111
  | `listmonk_create_campaign` | `LISTMONK_APITOOL` | Invoke the create_campaign operation. |
107
112
  | `listmonk_create_list` | `LISTMONK_APITOOL` | Invoke the create_list operation. |
108
113
  | `listmonk_create_subscriber` | `LISTMONK_APITOOL` | Invoke the create_subscriber operation. |
109
- | `listmonk_delete` | `BASE_API_CLIENTTOOL` | Invoke the delete operation. |
110
114
  | `listmonk_delete_campaign` | `LISTMONK_APITOOL` | Invoke the delete_campaign operation. |
111
115
  | `listmonk_delete_media` | `LISTMONK_APITOOL` | Invoke the delete_media operation. |
112
116
  | `listmonk_delete_subscriber_import` | `LISTMONK_APITOOL` | Invoke the delete_subscriber_import operation. |
113
117
  | `listmonk_delete_template` | `LISTMONK_APITOOL` | Invoke the delete_template operation. |
114
118
  | `listmonk_edit_list` | `LISTMONK_APITOOL` | Invoke the edit_list operation. |
115
- | `listmonk_get` | `BASE_API_CLIENTTOOL` | Invoke the get operation. |
116
119
  | `listmonk_get_campaign` | `LISTMONK_APITOOL` | Invoke the get_campaign operation. |
117
120
  | `listmonk_get_campaign_preview` | `LISTMONK_APITOOL` | Invoke the get_campaign_preview operation. |
118
121
  | `listmonk_get_campaign_stats` | `LISTMONK_APITOOL` | Invoke the get_campaign_stats operation. |
@@ -129,8 +132,6 @@ Auto-generated — do not edit between the markers below.
129
132
  | `listmonk_get_template_preview` | `LISTMONK_APITOOL` | Invoke the get_template_preview operation. |
130
133
  | `listmonk_get_templates` | `LISTMONK_APITOOL` | Invoke the get_templates operation. |
131
134
  | `listmonk_import_subscribers` | `LISTMONK_APITOOL` | Invoke the import_subscribers operation. |
132
- | `listmonk_post` | `BASE_API_CLIENTTOOL` | Invoke the post operation. |
133
- | `listmonk_put` | `BASE_API_CLIENTTOOL` | Invoke the put operation. |
134
135
  | `listmonk_set_campaign_status` | `LISTMONK_APITOOL` | Invoke the set_campaign_status operation. |
135
136
  | `listmonk_set_default_template` | `LISTMONK_APITOOL` | Invoke the set_default_template operation. |
136
137
  | `listmonk_transactional_message` | `LISTMONK_APITOOL` | Invoke the transactional_message operation. |
@@ -138,14 +139,14 @@ Auto-generated — do not edit between the markers below.
138
139
 
139
140
  </details>
140
141
 
141
- _7 action-routed tool(s) (default) · 32 verbose 1:1 tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (`condensed` default · `verbose` 1:1 · `both`). Auto-generated — do not edit._
142
+ _8 action-routed tool(s) · 28 verbose 1:1 tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (**`intent` default** — the six verb-tools, granular set loaded on demand · `condensed` action-routed · `verbose` 1:1 · `both`). Auto-generated — do not edit._
142
143
  <!-- MCP-TOOLS-TABLE:END -->
143
144
 
144
145
  ### Dynamic Tool Selection & Visibility
145
146
 
146
- This MCP server supports dynamic toolset selection and visibility filtering at runtime. This allows you to restrict the set of exposed tools in order to prevent blowing up the LLM's context window.
147
+ This MCP server supports dynamic toolset selection and visibility filtering at runtime. This allows the operator to restrict the set of exposed tools to prevent blowing up the LLM's context window.
147
148
 
148
- You can configure tool filtering via multiple input channels:
149
+ The operator can configure tool filtering via multiple input channels:
149
150
 
150
151
  - **CLI Arguments:** Pass `--tools` or `--toolsets` (or their disabled counterparts `--disabled-tools` and `--disabled-toolsets`) during startup.
151
152
  - **Environment Variables:** Define standard environment variables:
@@ -154,7 +155,7 @@ You can configure tool filtering via multiple input channels:
154
155
  - **HTTP SSE Request Headers:** Pass custom headers during transport initialization:
155
156
  - `x-mcp-enabled-tools` / `x-mcp-disabled-tools`
156
157
  - `x-mcp-enabled-tags` / `x-mcp-disabled-tags`
157
- - **HTTP SSE Request Query Parameters:** Append query parameters directly to your transport connection URL:
158
+ - **HTTP SSE Request Query Parameters:** Append query parameters directly to the operator's transport connection URL:
158
159
  - `?tools=tool1,tool2`
159
160
  - `?tags=tag1`
160
161
 
@@ -166,11 +167,10 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
166
167
 
167
168
  <!-- MCP-CONFIG-EXAMPLES:START -->
168
169
 
169
- > **Install the slim `[mcp]` extra.** All examples install `listmonk-api[mcp]` — the
170
- > MCP-server extra that pulls only the FastMCP / FastAPI tooling (`agent-utilities[mcp]`).
171
- > It deliberately **excludes** the heavy agent runtime (`pydantic-ai`, the epistemic-graph
172
- > engine, `dspy`, `llama-index`), so `uvx` / container installs are far smaller. Use the
173
- > full `[agent]` extra only when you need the integrated Pydantic AI agent.
170
+ > **Install the connector-focused `[mcp]` extra.** Examples use `listmonk-api[mcp]` to add
171
+ > FastMCP / FastAPI through `agent-connector-sdk`; the required Agent Connector SDK core
172
+ > still carries `epistemic-graph[full]`. The `[agent-runtime]` extra additionally
173
+ > enables model orchestration.
174
174
 
175
175
  #### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
176
176
 
@@ -185,17 +185,16 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
185
185
  "listmonk-mcp"
186
186
  ],
187
187
  "env": {
188
- "MCP_TOOL_MODE": "condensed",
188
+ "MCP_TOOL_MODE": "intent",
189
189
  "LISTMONK_CAMPAIGNSTOOL": "True",
190
190
  "LISTMONK_IMPORTSTOOL": "True",
191
191
  "LISTMONK_LISTSTOOL": "True",
192
192
  "LISTMONK_MEDIATOOL": "True",
193
193
  "LISTMONK_SUBSCRIBERSTOOL": "True",
194
194
  "LISTMONK_TEMPLATESTOOL": "True",
195
- "LISTMONK_TOKEN": "your_bearer_token_here",
195
+ "LISTMONK_TLS_PROFILE": "system",
196
196
  "LISTMONK_TXTOOL": "True",
197
- "LISTMONK_URL": "http://localhost:8080",
198
- "OPENAPI_CLIENT_ID": "",
197
+ "LISTMONK_URL": "https://listmonk.example.invalid",
199
198
  "OPENAPI_PASSWORD": "adminpassword",
200
199
  "OPENAPI_USERNAME": "admin"
201
200
  }
@@ -204,6 +203,10 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
204
203
  }
205
204
  ```
206
205
 
206
+ Runtime references require an alias-aware launcher such as Arbora. Other
207
+ launchers must omit those entries and inject the resolved values through their
208
+ own runtime secret boundary.
209
+
207
210
  #### Streamable-HTTP Transport (networked / production)
208
211
 
209
212
  ```json
@@ -222,19 +225,18 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
222
225
  ],
223
226
  "env": {
224
227
  "TRANSPORT": "streamable-http",
225
- "HOST": "0.0.0.0",
228
+ "HOST": "127.0.0.1",
226
229
  "PORT": "8000",
227
- "MCP_TOOL_MODE": "condensed",
230
+ "MCP_TOOL_MODE": "intent",
228
231
  "LISTMONK_CAMPAIGNSTOOL": "True",
229
232
  "LISTMONK_IMPORTSTOOL": "True",
230
233
  "LISTMONK_LISTSTOOL": "True",
231
234
  "LISTMONK_MEDIATOOL": "True",
232
235
  "LISTMONK_SUBSCRIBERSTOOL": "True",
233
236
  "LISTMONK_TEMPLATESTOOL": "True",
234
- "LISTMONK_TOKEN": "your_bearer_token_here",
237
+ "LISTMONK_TLS_PROFILE": "system",
235
238
  "LISTMONK_TXTOOL": "True",
236
- "LISTMONK_URL": "http://localhost:8080",
237
- "OPENAPI_CLIENT_ID": "",
239
+ "LISTMONK_URL": "https://listmonk.example.invalid",
238
240
  "OPENAPI_PASSWORD": "adminpassword",
239
241
  "OPENAPI_USERNAME": "admin"
240
242
  }
@@ -255,52 +257,58 @@ Alternatively, connect to a pre-deployed Streamable-HTTP instance by `url`:
255
257
  }
256
258
  ```
257
259
 
258
- Deploying the Streamable-HTTP server via Docker:
260
+ Run a reviewed container image as a least-privilege stdio child (no
261
+ listener or published port):
259
262
 
260
263
  ```bash
261
- docker run -d \
262
- --name listmonk-mcp-mcp \
263
- -p 8000:8000 \
264
- -e TRANSPORT=streamable-http \
265
- -e HOST=0.0.0.0 \
266
- -e PORT=8000 \
267
- -e MCP_TOOL_MODE=condensed \
264
+ docker run -i --rm \
265
+ --read-only \
266
+ --cap-drop=ALL \
267
+ --security-opt=no-new-privileges \
268
+ --pids-limit=256 \
269
+ --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \
270
+ -e TRANSPORT=stdio \
271
+ -e MCP_TOOL_MODE=intent \
268
272
  -e LISTMONK_CAMPAIGNSTOOL=True \
269
273
  -e LISTMONK_IMPORTSTOOL=True \
270
274
  -e LISTMONK_LISTSTOOL=True \
271
275
  -e LISTMONK_MEDIATOOL=True \
272
276
  -e LISTMONK_SUBSCRIBERSTOOL=True \
273
277
  -e LISTMONK_TEMPLATESTOOL=True \
274
- -e LISTMONK_TOKEN=your_bearer_token_here \
278
+ -e LISTMONK_TLS_PROFILE=system \
275
279
  -e LISTMONK_TXTOOL=True \
276
- -e LISTMONK_URL=http://localhost:8080 \
277
- -e OPENAPI_CLIENT_ID="" \
280
+ -e LISTMONK_URL=https://listmonk.example.invalid \
278
281
  -e OPENAPI_PASSWORD=adminpassword \
279
282
  -e OPENAPI_USERNAME=admin \
280
- knucklessg1/listmonk-api:mcp
283
+ registry.example.invalid/listmonk-api@sha256:<digest> listmonk-mcp
281
284
  ```
282
285
 
286
+ For containerized network HTTP, supply an authenticated TLS ingress (or
287
+ direct server TLS), exact `MCP_ALLOWED_HOSTS`, and an exact trusted-proxy
288
+ CIDR policy through the operator-owned deployment profile. The generator
289
+ does not emit an unauthenticated non-loopback listener.
290
+
283
291
  _Auto-generated from the code-read env surface (`MCP_TOOL_MODE` + package vars) — do not edit._
284
292
  <!-- MCP-CONFIG-EXAMPLES:END -->
285
293
 
286
294
  <!-- BEGIN GENERATED: additional-deployment-options -->
287
295
  ### Additional Deployment Options
288
296
 
289
- `listmonk-api` can also run as a **local container** (Docker / Podman / `uv`) or be
290
- consumed from a **remote deployment**. The
291
- [Deployment guide](https://knuckles-team.github.io/listmonk-api/deployment/) has full, copy-paste
292
- `mcp_config.json` for all four transports — **stdio**, **streamable-http**,
293
- **local container / uv**, and **remote URL**:
297
+ `listmonk-api` can run as a local stdio process or container, or behind a remote
298
+ network boundary. The
299
+ [Deployment guide](https://knuckles-team.github.io/listmonk-api/deployment/) carries
300
+ the detailed transport contract.
294
301
 
295
- - **Local container / uv** — launch the server from `mcp_config.json` via `uvx`,
296
- `docker run`, or `podman run`, or point at a local streamable-http container by `url`.
297
- - **Remote URL** — connect to a server deployed behind Caddy at
298
- `http://listmonk-mcp.arpa/mcp` using the `"url"` key.
302
+ - **Local container** — launch a reviewed immutable image as a least-privilege
303
+ stdio child with no listener or published port.
304
+ - **Remote URL** — connect through an operator-supplied authenticated HTTPS
305
+ ingress. Keep its URL, outbound identity references, trust profile, and exact
306
+ `MCP_ALLOWED_HOSTS` in `AgentConfig`.
299
307
  <!-- END GENERATED: additional-deployment-options -->
300
308
 
301
309
  ## Agent
302
310
 
303
- This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts seamlessly with the **Agent Web UI (AG-UI)** and Terminal interface.
311
+ This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts smoothly with the **Agent Web UI (AG-UI)** and Terminal interface.
304
312
 
305
313
  ### Running the Agent CLI
306
314
  To start the interactive command-line agent:
@@ -316,14 +324,13 @@ listmonk-agent --provider openai --model-id gpt-4o
316
324
  ```
317
325
 
318
326
  ### Docker Compose Orchestration
319
- The following `docker/agent.compose.yml` configures the Agent, Web UI, and Terminal Interface together:
320
327
 
321
328
  ```yaml
322
329
  version: '3.8'
323
330
 
324
331
  services:
325
332
  listmonk-api-mcp:
326
- image: knucklessg1/listmonk-api:latest
333
+ image: example/listmonk-api@sha256:<digest>
327
334
  container_name: listmonk-api-mcp
328
335
  hostname: listmonk-api-mcp
329
336
  restart: always
@@ -348,8 +355,7 @@ services:
348
355
  max-size: "10m"
349
356
  max-file: "3"
350
357
 
351
- listmonk-api-agent:
352
- image: knucklessg1/listmonk-api:latest
358
+ image: example/listmonk-api@sha256:<digest>
353
359
  container_name: listmonk-api-agent
354
360
  hostname: listmonk-api-agent
355
361
  restart: always
@@ -383,13 +389,13 @@ services:
383
389
 
384
390
  ```
385
391
 
386
- Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/agent.md](docs/agent.md).
392
+ Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/deployment.md](docs/deployment.md).
387
393
 
388
394
  ---
389
395
 
390
396
  ## Security & Governance
391
397
 
392
- Built directly upon the enterprise-ready [`agent-utilities`](https://github.com/Knuckles-Team/agent-utilities) core, standard security parameters are fully supported:
398
+ Built directly upon the enterprise-ready [`agent-connector-sdk`](https://github.com/Knuckles-Team/agent-connector-sdk) core, standard security parameters are fully supported:
393
399
 
394
400
  ### Access Control & Policy Enforcement
395
401
  - **Eunomia Policies:** Fine-grained, policy-driven tool authorization. Supports `none`, local `embedded` (`mcp_policies.json`), or centralized `remote` modes.
@@ -397,7 +403,7 @@ Built directly upon the enterprise-ready [`agent-utilities`](https://github.com/
397
403
  - **Scoped Credentials:** Execution context runs restricted to the specific caller identity.
398
404
 
399
405
  ### Runtime Security Grid
400
- | Feature | Functionality | Enablement |
406
+ | Feature | Feature | Enablement |
401
407
  |---------|---------------|------------|
402
408
  | **Tool Guard** | Sensitivity inspection with human-in-the-loop validation | Enabled by default |
403
409
  | **Prompt Injection Defense** | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |
@@ -418,8 +424,8 @@ Built directly upon the enterprise-ready [`agent-utilities`](https://github.com/
418
424
  | `TRANSPORT` | `stdio` | options: stdio, streamable-http, sse |
419
425
  | `ENABLE_OTEL` | `True` | |
420
426
  | `OTEL_EXPORTER_OTLP_ENDPOINT` | `http://localhost:8080/api/public/otel` | |
421
- | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` | `pk-...` | |
422
- | `OTEL_EXPORTER_OTLP_SECRET_KEY` | `sk-...` | |
427
+ | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` | secret-injected | |
428
+ | `OTEL_EXPORTER_OTLP_SECRET_KEY` | secret-injected | |
423
429
  | `OTEL_EXPORTER_OTLP_PROTOCOL` | `http/protobuf` | |
424
430
  | `AUTH_TYPE` | — | |
425
431
  | `EUNOMIA_TYPE` | `none` | options: none, embedded, remote |
@@ -427,11 +433,13 @@ Built directly upon the enterprise-ready [`agent-utilities`](https://github.com/
427
433
  | `EUNOMIA_REMOTE_URL` | `http://eunomia-server:8000` | |
428
434
  | `OIDC_BASE_URL` | — | |
429
435
  | `OPENAPI_USERNAME` | `admin` | |
430
- | `OPENAPI_PASSWORD` | `adminpassword` | |
436
+ | `OPENAPI_PASSWORD` | secret-injected | |
431
437
  | `OPENAPI_CLIENT_ID` | — | OAuth client id for OpenAPI tool import |
432
- | `OPENAPI_CLIENT_SECRET` | — | OAuth client secret for OpenAPI tool import |
433
- | `LISTMONK_URL` | `http://localhost:8080` | |
434
- | `LISTMONK_TOKEN` | `your_bearer_token_here` | |
438
+ | `OPENAPI_CLIENT_SECRET` | secret-injected | OAuth client secret for OpenAPI tool import |
439
+ | `LISTMONK_URL` | `https://listmonk.example.invalid` | |
440
+ | `LISTMONK_TOKEN` | secret-injected | |
441
+ | `LISTMONK_TLS_PROFILE` | `system` | Named outbound TLS policy from AgentConfig. Use a reference for runtime-only trust material; peer and hostname verification remain mandatory. |
442
+ | `LISTMONK_TLS_PROFILE_REF` | — | |
435
443
  | `LISTMONK_CAMPAIGNSTOOL` | `True` | |
436
444
  | `LISTMONK_IMPORTSTOOL` | `True` | |
437
445
  | `LISTMONK_LISTSTOOL` | `True` | |
@@ -440,18 +448,20 @@ Built directly upon the enterprise-ready [`agent-utilities`](https://github.com/
440
448
  | `LISTMONK_TEMPLATESTOOL` | `True` | |
441
449
  | `LISTMONK_TXTOOL` | `True` | |
442
450
 
443
- #### Inherited agent-utilities variables (apply to every connector)
451
+ #### Inherited agent-connector-sdk variables (apply to every connector)
444
452
 
445
453
  | Variable | Example | Description |
446
454
  |----------|---------|-------------|
447
- | `MCP_TOOL_MODE` | `condensed` | Tool surface: `condensed` | `verbose` | `both` |
455
+ | `MCP_TOOL_MODE` | `intent` | Tool surface: `intent` \| `condensed` \| `verbose` \| `both` |
448
456
  | `MCP_ENABLED_TOOLS` | — | Comma-separated tool allow-list |
449
457
  | `MCP_DISABLED_TOOLS` | — | Comma-separated tool deny-list |
450
458
  | `MCP_ENABLED_TAGS` | — | Comma-separated tag allow-list |
451
459
  | `MCP_DISABLED_TAGS` | — | Comma-separated tag deny-list |
452
- | `MCP_CLIENT_AUTH` | — | Outbound MCP auth (`oidc-client-credentials` for fleet calls) |
460
+ | `MCP_CLIENT_AUTH` | — | Outbound MCP child auth: `oidc-client-credentials` \| `basic` \| `none` |
453
461
  | `OIDC_CLIENT_ID` | — | OIDC client id (service-account auth) |
454
- | `OIDC_CLIENT_SECRET` | — | OIDC client secret (service-account auth) |
462
+ | `OIDC_CLIENT_SECRET_REF` | `secret://identity/oidc-client-secret` | Runtime secret reference for the OIDC service account |
463
+ | `MCP_BASIC_AUTH_USERNAME` | — | HTTP Basic username (`MCP_CLIENT_AUTH=basic`) |
464
+ | `MCP_BASIC_AUTH_PASSWORD_REF` | `secret://identity/mcp-basic-password` | Runtime secret reference for HTTP Basic auth (`MCP_CLIENT_AUTH=basic`) |
455
465
  | `DEBUG` | `False` | Verbose logging |
456
466
  | `PYTHONUNBUFFERED` | `1` | Unbuffered stdout (recommended in containers) |
457
467
  | `MCP_URL` | `http://localhost:8000/mcp` | URL of the MCP server the agent connects to |
@@ -459,7 +469,7 @@ Built directly upon the enterprise-ready [`agent-utilities`](https://github.com/
459
469
  | `MODEL_ID` | `gpt-4o` | Model id for the agent |
460
470
  | `ENABLE_WEB_UI` | `True` | Serve the AG-UI web interface |
461
471
 
462
- _26 package + 14 inherited variable(s). Auto-generated from `.env.example` + the shared agent-utilities set — do not edit._
472
+ _28 package + 16 inherited variable(s). Auto-generated from `.env.example` + the shared agent-connector-sdk set — do not edit._
463
473
  <!-- ENV-VARS-TABLE:END -->
464
474
 
465
475
 
@@ -467,7 +477,7 @@ The server and client support standard configuration environment variables:
467
477
 
468
478
  | Variable | Description | Default |
469
479
  |---|---|---|
470
- | `LISTMONK_URL` | Base URL of your Listmonk instance. | `http://localhost:8080` |
480
+ | `LISTMONK_URL` | Base URL of the operator's Listmonk instance. | `http://localhost:8080` |
471
481
  | `LISTMONK_TOKEN` | Bearer Token used for secure API authorization. | `""` |
472
482
  | `LISTMONK_USERNAME` | Username for Basic Authorization (if token is empty). | `""` |
473
483
  | `LISTMONK_PASSWORD` | Password for Basic Authorization (if token is empty). | `""` |
@@ -482,11 +492,11 @@ The server and client support standard configuration environment variables:
482
492
  | **Security & Policies** | | |
483
493
  | `AUTH_TYPE` | Type of API authentication schema required. | `""` |
484
494
  | `EUNOMIA_TYPE` | Type of authorization engine policy enforcement (`none`, `embedded`, `remote`). | `none` |
485
- | `EUNOMIA_POLICY_FILE` | Path to your local policy definition file (e.g., `mcp_policies.json`). | `""` |
495
+ | `EUNOMIA_POLICY_FILE` | Path to the operator's local policy definition file (e.g., `mcp_policies.json`). | `""` |
486
496
  | `EUNOMIA_REMOTE_URL` | Host/Port URL pointing to a remote Eunomia policy daemon. | `""` |
487
497
  | `ALLOWED_CLIENT_REDIRECT_URIS`| Whitelisted URIs allowed to complete Oauth/OIDC identity validation flows. | `""` |
488
- | `OAUTH_BASE_URL` | Base endpoint of your trusted OAuth provider. | `""` |
489
- | `OIDC_BASE_URL` | Base endpoint of your OIDC identity provider. | `""` |
498
+ | `OAUTH_BASE_URL` | Base endpoint of the operator's trusted OAuth provider. | `""` |
499
+ | `OIDC_BASE_URL` | Base endpoint of the operator's OIDC identity provider. | `""` |
490
500
  | **OpenAPI Docs** | | |
491
501
  | `OPENAPI_USERNAME` | Username whitelisted to view internal raw API specifications. | `""` |
492
502
  | `OPENAPI_PASSWORD` | Password whitelisted to view internal raw API specifications. | `""` |
@@ -496,51 +506,45 @@ The server and client support standard configuration environment variables:
496
506
 
497
507
  ## Installation
498
508
 
499
- Pick the extra that matches what you want to run:
509
+ Pick the extra that matches what the operator want to run:
500
510
 
501
511
  | Extra | Installs | Use when |
502
512
  |-------|----------|----------|
503
- | `listmonk-api[mcp]` | Slim MCP server only (`agent-utilities[mcp]` — FastMCP/FastAPI) | You only run the **MCP server** (smallest install / image) |
504
- | `listmonk-api[agent]` | Full agent runtime (`agent-utilities[agent,logfire]` — Pydantic AI + the epistemic-graph engine) | You run the **integrated agent** |
513
+ | `listmonk-api[mcp]` | Connector-focused MCP server (`agent-connector-sdk` — FastMCP/FastAPI + `epistemic-graph[full]`) | The operator only run the **MCP server** (smallest install / image) |
505
514
  | `listmonk-api[all]` | Everything (`mcp` + `agent` + `logfire`) | Development / both surfaces |
506
515
 
507
516
  ```bash
508
- # MCP server only (recommended for tool hosting — slim deps)
517
+ # Connector-focused MCP server (includes the shared graph engine)
509
518
  uv pip install "listmonk-api[mcp]"
510
519
 
511
- # Full agent runtime (Pydantic AI + epistemic-graph engine)
512
- uv pip install "listmonk-api[agent]"
520
+ # Agent runtime (adds model orchestration to the shared graph engine)
513
521
 
514
522
  # Everything (development)
515
523
  uv pip install "listmonk-api[all]" # or: python -m pip install "listmonk-api[all]"
516
524
  ```
517
525
 
518
- ### Container images (`:mcp` vs `:agent`)
526
+ ### Container images (`:mcp`)
519
527
 
520
- One multi-stage `docker/Dockerfile` builds two right-sized images, selected by `--target`:
528
+ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
521
529
 
522
530
  | Image tag | Build target | Contents | Entrypoint |
523
531
  |-----------|--------------|----------|------------|
524
- | `knucklessg1/listmonk-api:mcp` | `--target mcp` | `listmonk-api[mcp]` — **slim**, no engine/`pydantic-ai`/`dspy`/`llama-index`/`tree-sitter` | `listmonk-mcp` |
525
- | `knucklessg1/listmonk-api:latest` | `--target agent` (default) | `listmonk-api[agent]` — **full** agent runtime + epistemic-graph engine | `listmonk-agent` |
532
+ | `example/listmonk-api:mcp` | `--target mcp` | `listmonk-api[mcp]` — **connector-focused**, includes `epistemic-graph[full]`; no model-orchestration stack | `listmonk-mcp` |
526
533
 
527
534
  ```bash
528
- docker build --target mcp -t knucklessg1/listmonk-api:mcp docker/ # slim MCP server
529
- docker build --target agent -t knucklessg1/listmonk-api:latest docker/ # full agent
535
+ docker build --target mcp -t example/listmonk-api:mcp docker/ # connector-focused MCP server
530
536
  ```
531
537
 
532
- `docker/mcp.compose.yml` runs the slim `:mcp` server; `docker/agent.compose.yml` runs the
533
- agent (`:latest`) with a co-located `:mcp` sidecar.
538
+ agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
534
539
 
535
540
  ### Knowledge-graph database (`epistemic-graph`)
536
541
 
537
- The **full agent** (`[agent]` / `:latest`) embeds the **epistemic-graph** engine (pulled in
538
- transitively via `agent-utilities[agent]`). For production — or to share one knowledge graph
539
- across multiple agents — run **epistemic-graph as its own database container** and point the
540
- agent at it instead of embedding it. Deployment recipes (single-node + Raft HA), connection
541
- config, and the full database architecture (with diagrams) are documented in the
542
+ Agent Connector SDK core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
543
+ deployments can use the bundled engine. For production or shared state, run
544
+ **epistemic-graph as a dedicated database service** and configure the runtime to use it.
545
+ Deployment recipes (single-node + Raft HA), connection configuration, and architecture
546
+ diagrams are documented in the
542
547
  [epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
543
- The slim `[mcp]` server does **not** require the database.
544
548
 
545
549
  ---
546
550
 
@@ -563,39 +567,35 @@ recommended reference for installation, deployment, and day-to-day operation.
563
567
 
564
568
  ## Repository Owners
565
569
 
566
- <img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=Knucklessg1&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
570
+ <img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=example&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
567
571
 
568
- ![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)
569
- ![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)
572
+ ![GitHub followers](https://img.shields.io/github/followers/example)
573
+ ![GitHub User's stars](https://img.shields.io/github/stars/example)
570
574
 
571
575
  ---
572
576
 
573
577
  ## Contribute
574
578
 
575
- Contributions are welcome! Please ensure code quality by executing local checks before submitting pull requests:
579
+ Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
576
580
  - Format code using `ruff format .`
577
581
  - Lint code using `ruff check .`
578
582
  - Validate type-safety with `mypy .`
579
- - Execute test suites using `pytest`
580
-
581
-
582
- <!-- BEGIN agent-os-genesis-deploy (generated; do not edit between markers) -->
583
+ - Ran test suites using `pytest`
583
584
 
584
- ## Deploy with `agent-os-genesis`
585
585
 
586
- This package can be provisioned for you — skill-guided — by the **`agent-os-genesis`**
587
- universal skill (its *single-package deploy mode*): it picks your install method, seeds
588
- secrets to OpenBao/Vault (or `.env`), trusts your enterprise CA, registers the MCP
589
- server, and verifies it — the same machinery that stands up the whole Agent OS, narrowed
590
- to just this package. Ask your agent to **"deploy `listmonk-api` with agent-os-genesis"**.
591
586
 
592
- | Install mode | Command |
593
- |------|---------|
594
- | Bare-metal, prod (PyPI) | `uvx listmonk-mcp` · or `uv tool install listmonk-api` |
595
- | Bare-metal, dev (editable) | `uv pip install -e ".[all]"` · or `pip install -e ".[all]"` |
596
- | Container, prod | deploy `knucklessg1/listmonk-api:latest` via docker-compose / swarm / podman / podman-compose / kubernetes |
597
- | Container, dev (editable) | deploy `docker/compose.dev.yml` (source-mounted at `/src`; edits live on restart) |
587
+ <!-- GOVERNED-CAPABILITY:START -->
588
+ ## Governed capability contract
598
589
 
599
- Secrets are read-existing + seeded via `vault_sync` — you are only prompted for what's missing.
590
+ This package ships a compact canonical skill surface with specialist procedures
591
+ kept as referenced workflows. The current MCP tools, skill metadata,
592
+ `connector_manifest.yml`, ontology, mappings, shapes, fixtures, migrations,
593
+ tool-schema fingerprints, and certification metadata form one versioned
594
+ capability contract. Validate them together; do not rely on stale tool names or
595
+ historical per-task skill wrappers.
600
596
 
601
- <!-- END agent-os-genesis-deploy -->
597
+ Runtime endpoints, credentials, certificate trust, tenant identity, retention,
598
+ and observability policy are deployment inputs and are never packaged values.
599
+ See [Configuration, trust, and privacy](docs/configuration.md) before enabling a
600
+ network transport, connector ingestion, Arbora delegation, or trace export.
601
+ <!-- GOVERNED-CAPABILITY:END -->