eulerian-marketing-platform 0.2.4__py3-none-any.whl → 0.2.5__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.4"
7
+ __version__ = "0.2.5"
8
8
  __author__ = "Eulerian Technologies"
9
9
  __all__ = []
10
10
 
@@ -101,6 +101,21 @@ def forward_request(request_data: dict) -> dict:
101
101
 
102
102
  logger.info(f"<<< RESPONSE: HTTP {response.status_code}")
103
103
 
104
+ # Handle HTTP 204 No Content (proper response for notifications)
105
+ if response.status_code == 204:
106
+ logger.info(" HTTP 204 No Content - notification acknowledged")
107
+ # For notifications, this is expected and correct
108
+ if is_notification:
109
+ logger.info(" Notification processed - no response sent")
110
+ return None
111
+ else:
112
+ # For regular requests, 204 is unusual but we'll treat it as success with empty result
113
+ return {
114
+ "jsonrpc": "2.0",
115
+ "id": request_id,
116
+ "result": None
117
+ }
118
+
104
119
  if response.status_code != 200:
105
120
  error_msg = f"HTTP {response.status_code}: {response.reason_phrase}"
106
121
  logger.error(f" Error: {response.text[:200]}")
@@ -119,13 +134,14 @@ def forward_request(request_data: dict) -> dict:
119
134
  }
120
135
  }
121
136
 
122
- # Parse response
137
+ # Parse response (only for HTTP 200 responses)
123
138
  try:
124
139
  response_data = response.json()
125
140
  logger.debug(f" Response: {json.dumps(response_data)[:200]}...")
126
141
 
127
142
  # For notifications, we should not send back any response, regardless of what the remote server returns
128
143
  if is_notification:
144
+ logger.info(f" Notification received response from server: {json.dumps(response_data)}")
129
145
  logger.info(" Notification processed - no response sent")
130
146
  return None
131
147
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eulerian-marketing-platform
3
- Version: 0.2.4
3
+ Version: 0.2.5
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=Vy3v2bzqOBm-2QuGgb87QkLjojhqRDvzRTeNPqVMaOE,428
2
+ eulerian_marketing_platform/server.py,sha256=3Iz8fZCug6DnvI1pd3o5Ilbvcu61Zb9KpnLXYjZs0Yk,12119
3
+ eulerian_marketing_platform-0.2.5.dist-info/LICENSE,sha256=eIqBqE_fRsqQJ8F-2v0e-8WzZqdshsCqnzmqLAWrNHU,1078
4
+ eulerian_marketing_platform-0.2.5.dist-info/METADATA,sha256=lmDkaF4qVTcsHgM3Yw20d7xCjPRw8M-eVlD1eerYkTU,12169
5
+ eulerian_marketing_platform-0.2.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ eulerian_marketing_platform-0.2.5.dist-info/entry_points.txt,sha256=rrPZptATSS9PUtH9gzCYq0WuP6eahkF-DkdUP1FaYfk,88
7
+ eulerian_marketing_platform-0.2.5.dist-info/top_level.txt,sha256=nidh3T6fw-mLjUqZwQ8AiMScS4usuH0WXW4ZgG4HYCo,28
8
+ eulerian_marketing_platform-0.2.5.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- eulerian_marketing_platform/__init__.py,sha256=yW4kcvFCxjR0QpXlCWce62Rff9dLCyAFopXCzhoca7U,428
2
- eulerian_marketing_platform/server.py,sha256=KbzP27uGEBW07R-OGl7qzmYOhcWsz4GbM5l1_NOiQ0Q,11306
3
- eulerian_marketing_platform-0.2.4.dist-info/LICENSE,sha256=eIqBqE_fRsqQJ8F-2v0e-8WzZqdshsCqnzmqLAWrNHU,1078
4
- eulerian_marketing_platform-0.2.4.dist-info/METADATA,sha256=mhmd4RcV0ftcm1le6Reg-UVTwDhNd8e0sizOSq0rV28,12169
5
- eulerian_marketing_platform-0.2.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- eulerian_marketing_platform-0.2.4.dist-info/entry_points.txt,sha256=rrPZptATSS9PUtH9gzCYq0WuP6eahkF-DkdUP1FaYfk,88
7
- eulerian_marketing_platform-0.2.4.dist-info/top_level.txt,sha256=nidh3T6fw-mLjUqZwQ8AiMScS4usuH0WXW4ZgG4HYCo,28
8
- eulerian_marketing_platform-0.2.4.dist-info/RECORD,,