flock-core 0.4.536__py3-none-any.whl → 0.4.537__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.
Potentially problematic release.
This version of flock-core might be problematic. Click here for more details.
- flock/tools/zendesk_tools.py +29 -0
- {flock_core-0.4.536.dist-info → flock_core-0.4.537.dist-info}/METADATA +1 -1
- {flock_core-0.4.536.dist-info → flock_core-0.4.537.dist-info}/RECORD +6 -6
- {flock_core-0.4.536.dist-info → flock_core-0.4.537.dist-info}/WHEEL +0 -0
- {flock_core-0.4.536.dist-info → flock_core-0.4.537.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.536.dist-info → flock_core-0.4.537.dist-info}/licenses/LICENSE +0 -0
flock/tools/zendesk_tools.py
CHANGED
|
@@ -239,6 +239,35 @@ def zendesk_add_ticket_tags(ticket_id: str, tags: list[str]) -> list[str]:
|
|
|
239
239
|
return resp.json().get("tags", [])
|
|
240
240
|
|
|
241
241
|
|
|
242
|
+
@mcp.tool()
|
|
243
|
+
def zendesk_get_ticket_field_type(field_id: int) -> dict:
|
|
244
|
+
"""Return the Zendesk custom field type and options for a field id.
|
|
245
|
+
|
|
246
|
+
Uses GET /api/v2/ticket_fields/{field_id}.json.
|
|
247
|
+
|
|
248
|
+
Returns a dict containing at least:
|
|
249
|
+
{ "type": str, "custom_field_options": list }
|
|
250
|
+
"""
|
|
251
|
+
ZENDESK_SUBDOMAIN = os.getenv("ZENDESK_SUBDOMAIN_TICKET")
|
|
252
|
+
BASE_URL = f"https://{ZENDESK_SUBDOMAIN}.zendesk.com"
|
|
253
|
+
url = f"{BASE_URL}/api/v2/ticket_fields/{field_id}.json"
|
|
254
|
+
|
|
255
|
+
import httpx
|
|
256
|
+
|
|
257
|
+
with httpx.Client(headers=_get_headers(), timeout=30.0) as client:
|
|
258
|
+
resp = client.get(url)
|
|
259
|
+
resp.raise_for_status()
|
|
260
|
+
field = resp.json().get("ticket_field", {})
|
|
261
|
+
return {
|
|
262
|
+
"id": field.get("id"),
|
|
263
|
+
"type": field.get("type"),
|
|
264
|
+
"title": field.get("title"),
|
|
265
|
+
"required": field.get("required"),
|
|
266
|
+
"custom_field_options": field.get("custom_field_options", []),
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
242
271
|
|
|
243
272
|
if __name__ == "__main__":
|
|
244
273
|
transport = os.getenv("ZENDESK_MCP_TRANSPORT", "stdio")
|
|
@@ -488,7 +488,7 @@ flock/tools/markdown_tools.py,sha256=94fjGAJ5DEutoioD0ke-YRbxF6IWJQKuPVBLkNqdBo4
|
|
|
488
488
|
flock/tools/system_tools.py,sha256=IUB8MiSxtQH5ZfTGOck3vl4TKva8m1lfU4-W5D5b-4w,202
|
|
489
489
|
flock/tools/text_tools.py,sha256=mMQ8tkyYDxIorqqzl9ccGyWYjrSynYiYFIeP9qypfdg,22491
|
|
490
490
|
flock/tools/web_tools.py,sha256=h44L5rknxGw1mVnFTYO-z0xwUr5ctOvMiJBIfeq56UE,2555
|
|
491
|
-
flock/tools/zendesk_tools.py,sha256
|
|
491
|
+
flock/tools/zendesk_tools.py,sha256=nRj3Z3A-9__XMP_rqOcYZpwTXPtMQ4qjvcNGjNIBJqE,9182
|
|
492
492
|
flock/webapp/__init__.py,sha256=YtRbbyciN3Z2oMB9fdXZuvM3e49R8m2mY5qHLDoapRA,37
|
|
493
493
|
flock/webapp/run.py,sha256=btKVwIqrFg3FhLRuj2RN_fazwaFat3Ue5yiFiIg60rQ,9054
|
|
494
494
|
flock/webapp/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -563,8 +563,8 @@ flock/workflow/agent_execution_activity.py,sha256=hLqWEWsxwTgjsE9wvBejf3pN2TdIfU
|
|
|
563
563
|
flock/workflow/flock_workflow.py,sha256=iSUF_soFvWar0ffpkzE4irkDZRx0p4HnwmEBi_Ne2sY,9666
|
|
564
564
|
flock/workflow/temporal_config.py,sha256=3_8O7SDEjMsSMXsWJBfnb6XTp0TFaz39uyzSlMTSF_I,3988
|
|
565
565
|
flock/workflow/temporal_setup.py,sha256=YIHnSBntzOchHfMSh8hoLeNXrz3B1UbR14YrR6soM7A,1606
|
|
566
|
-
flock_core-0.4.
|
|
567
|
-
flock_core-0.4.
|
|
568
|
-
flock_core-0.4.
|
|
569
|
-
flock_core-0.4.
|
|
570
|
-
flock_core-0.4.
|
|
566
|
+
flock_core-0.4.537.dist-info/METADATA,sha256=xbiCdfW_u6xtuqkvGmaRbZAuWafyLXqw6xXkfdKmXrQ,22800
|
|
567
|
+
flock_core-0.4.537.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
568
|
+
flock_core-0.4.537.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
569
|
+
flock_core-0.4.537.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
570
|
+
flock_core-0.4.537.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|