Skip to content

Commit 76ef477

Browse files
authored
Support Parameter Lists (#8)
1 parent 2b62538 commit 76ef477

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

dbos_mcp/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,22 +154,22 @@ async def list_applications() -> list[dict[str, Any]]:
154154
async def list_workflows(
155155
application_name: str,
156156
workflow_uuids: list[str] | None = None,
157-
workflow_name: str | None = None,
158-
authenticated_user: str | None = None,
157+
workflow_name: str | list[str] | None = None,
158+
authenticated_user: str | list[str] | None = None,
159159
start_time: str | None = None,
160160
end_time: str | None = None,
161-
status: str | None = None,
162-
application_version: str | None = None,
163-
forked_from: str | None = None,
164-
parent_workflow_id: str | None = None,
165-
queue_name: str | None = None,
161+
status: str | list[str] | None = None,
162+
application_version: str | list[str] | None = None,
163+
forked_from: str | list[str] | None = None,
164+
parent_workflow_id: str | list[str] | None = None,
165+
queue_name: str | list[str] | None = None,
166166
limit: int | None = None,
167167
offset: int | None = None,
168168
sort_desc: bool | None = None,
169-
workflow_id_prefix: str | None = None,
169+
workflow_id_prefix: str | list[str] | None = None,
170170
load_input: bool | None = None,
171171
load_output: bool | None = None,
172-
executor_id: str | None = None,
172+
executor_id: str | list[str] | None = None,
173173
queues_only: bool | None = None,
174174
) -> list[dict[str, Any]]:
175175
"""List workflows with optional filters."""

dbos_mcp/server.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,45 +74,45 @@ async def list_applications() -> dict[str, Any]:
7474
async def list_workflows(
7575
application_name: str,
7676
workflow_uuids: list[str] | None = None,
77-
workflow_name: str | None = None,
78-
authenticated_user: str | None = None,
77+
workflow_name: str | list[str] | None = None,
78+
authenticated_user: str | list[str] | None = None,
7979
start_time: str | None = None,
8080
end_time: str | None = None,
81-
status: str | None = None,
82-
application_version: str | None = None,
83-
forked_from: str | None = None,
84-
parent_workflow_id: str | None = None,
85-
queue_name: str | None = None,
81+
status: str | list[str] | None = None,
82+
application_version: str | list[str] | None = None,
83+
forked_from: str | list[str] | None = None,
84+
parent_workflow_id: str | list[str] | None = None,
85+
queue_name: str | list[str] | None = None,
8686
limit: int | None = None,
8787
offset: int | None = None,
8888
sort_desc: bool | None = None,
89-
workflow_id_prefix: str | None = None,
89+
workflow_id_prefix: str | list[str] | None = None,
9090
load_input: bool | None = None,
9191
load_output: bool | None = None,
92-
executor_id: str | None = None,
92+
executor_id: str | list[str] | None = None,
9393
queues_only: bool | None = None,
9494
) -> dict[str, Any]:
9595
"""List workflows from DBOS Conductor with optional filters.
9696
9797
Args:
9898
application_name (string, required): Name of the DBOS application
9999
workflow_uuids (array of strings, optional): Filter to only these specific workflow IDs
100-
workflow_name (string, optional): Filter by workflow function name
101-
authenticated_user (string, optional): Filter by the user who started the workflow
100+
workflow_name (string or array of strings, optional): Filter by workflow function name
101+
authenticated_user (string or array of strings, optional): Filter by the user who started the workflow
102102
start_time (string, optional): Filter workflows created after this time (ISO 8601)
103103
end_time (string, optional): Filter workflows created before this time (ISO 8601)
104-
status (string, optional): Filter by status - PENDING, SUCCESS, ERROR, CANCELLED, ENQUEUED, or MAX_RECOVERY_ATTEMPTS_EXCEEDED
105-
application_version (string, optional): Filter by application version
106-
forked_from (string, optional): Filter to workflows forked from this workflow ID
107-
parent_workflow_id (string, optional): Filter to child workflows of this parent workflow ID
108-
queue_name (string, optional): Filter by workflow queue name
104+
status (string or array of strings, optional): Filter by status - PENDING, SUCCESS, ERROR, CANCELLED, ENQUEUED, or MAX_RECOVERY_ATTEMPTS_EXCEEDED
105+
application_version (string or array of strings, optional): Filter by application version
106+
forked_from (string or array of strings, optional): Filter to workflows forked from this workflow ID
107+
parent_workflow_id (string or array of strings, optional): Filter to child workflows of this parent workflow ID
108+
queue_name (string or array of strings, optional): Filter by workflow queue name
109109
limit (int, optional): Maximum number of workflows to return
110110
offset (int, optional): Number of workflows to skip (for pagination)
111111
sort_desc (bool, optional): Sort by creation time descending (default: false, ascending)
112-
workflow_id_prefix (string, optional): Filter to workflow IDs starting with this prefix
112+
workflow_id_prefix (string or array of strings, optional): Filter to workflow IDs starting with this prefix
113113
load_input (bool, optional): Include workflow input data in response (default: false)
114114
load_output (bool, optional): Include workflow output data in response (default: false)
115-
executor_id (string, optional): Filter by executor ID running the workflow
115+
executor_id (string or array of strings, optional): Filter by executor ID running the workflow
116116
queues_only (bool, optional): Only return workflows that are on a queue (default: false)
117117
118118
Returns:

0 commit comments

Comments
 (0)