eulerian-marketing-platform 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl

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.
@@ -4,7 +4,7 @@ This package provides a Model Context Protocol (MCP) server that enables
4
4
  AI assistants to interact with Eulerian Marketing Platform APIs.
5
5
  """
6
6
 
7
- __version__ = "0.2.2"
7
+ __version__ = "0.2.3"
8
8
  __author__ = "Eulerian Technologies"
9
9
  __all__ = []
10
10
 
@@ -216,12 +216,14 @@ def main() -> None:
216
216
  # Forward to remote server
217
217
  response_data = forward_request(request_data)
218
218
 
219
- # Send response to stdout
220
- response_json = json.dumps(response_data)
221
- print(response_json, flush=True)
222
- sys.stdout.flush() # Extra flush for safety
223
- logger.info(" Response forwarded [OK]")
224
-
219
+ # JSON-RPC notifications MUST NOT be answered
220
+ if "id" in request_data and request_data["id"] is not None:
221
+ response_json = json.dumps(response_data)
222
+ print(response_json, flush=True)
223
+ sys.stdout.flush()
224
+ logger.info(" Response forwarded [OK]")
225
+ else:
226
+ logger.info(" Notification forwarded (no response sent)")
225
227
  except json.JSONDecodeError as e:
226
228
  logger.error(f"ERROR: Invalid JSON in request - {e}")
227
229
  logger.error(f" Problematic line: {line[:200]}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eulerian-marketing-platform
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: MCP server for Eulerian Marketing Platform - enables AI assistants to interact with Eulerian's marketing analytics and campaign management APIs
5
5
  Author-email: Eulerian Technologies <mathieu@eulerian.com>
6
6
  License: MIT
@@ -0,0 +1,8 @@
1
+ eulerian_marketing_platform/__init__.py,sha256=O0u23icj5NMvBhcwSNHDYh5L2yN-K64g9fS1nQ9s8l0,428
2
+ eulerian_marketing_platform/server.py,sha256=xE1SiUUivym38KenUAblKVaKzXLZh5gnkPCY4c665wg,9891
3
+ eulerian_marketing_platform-0.2.3.dist-info/LICENSE,sha256=eIqBqE_fRsqQJ8F-2v0e-8WzZqdshsCqnzmqLAWrNHU,1078
4
+ eulerian_marketing_platform-0.2.3.dist-info/METADATA,sha256=JAVCiUo1zTO3F9fTjyYDE5hi9MgpPY2EhlmGQxirzKU,12111
5
+ eulerian_marketing_platform-0.2.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ eulerian_marketing_platform-0.2.3.dist-info/entry_points.txt,sha256=rrPZptATSS9PUtH9gzCYq0WuP6eahkF-DkdUP1FaYfk,88
7
+ eulerian_marketing_platform-0.2.3.dist-info/top_level.txt,sha256=nidh3T6fw-mLjUqZwQ8AiMScS4usuH0WXW4ZgG4HYCo,28
8
+ eulerian_marketing_platform-0.2.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- eulerian_marketing_platform/__init__.py,sha256=nixrhgx4yNj_Iy4OorDr_UTciCpEXPjuJoCLngubna8,428
2
- eulerian_marketing_platform/server.py,sha256=FnuFvs_yCIaHfDT5Q8LJb--88gZ58iUYQ7bNYYMFRYg,9710
3
- eulerian_marketing_platform-0.2.2.dist-info/LICENSE,sha256=eIqBqE_fRsqQJ8F-2v0e-8WzZqdshsCqnzmqLAWrNHU,1078
4
- eulerian_marketing_platform-0.2.2.dist-info/METADATA,sha256=AjQoC4KAd5cGFwGagKSUohxzzoCY9JGGJT5KUlVTxu0,12111
5
- eulerian_marketing_platform-0.2.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- eulerian_marketing_platform-0.2.2.dist-info/entry_points.txt,sha256=rrPZptATSS9PUtH9gzCYq0WuP6eahkF-DkdUP1FaYfk,88
7
- eulerian_marketing_platform-0.2.2.dist-info/top_level.txt,sha256=nidh3T6fw-mLjUqZwQ8AiMScS4usuH0WXW4ZgG4HYCo,28
8
- eulerian_marketing_platform-0.2.2.dist-info/RECORD,,