Skip to content

Commit f45bfaa

Browse files
committed
enable mcp servers for workflow agent
Signed-off-by: John <johnandersenpdx@gmail.com>
1 parent 73bbb92 commit f45bfaa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

github_webhook_events/agi.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3853,11 +3853,15 @@ async def agent_openai(
38533853
You should not include use of actions/checkout
38543854
unless specifically requested to checkout the current
38553855
repo.
3856+
3857+
Use tools to get the contents of the os-release
3858+
file and determine what package management should
3859+
be used to install needed shell utils.
38563860
""".strip(),
38573861
),
38583862
# TODO Dynamically auto discover applicable MCPs and add
38593863
# them to agents
3860-
# mcp_servers=mcp_servers_workflow,
3864+
mcp_servers=mcp_servers_workflow,
38613865
output_type=PolicyEngineWorkflow,
38623866
)
38633867

@@ -4687,7 +4691,7 @@ async def user_input_action_stream_queue_iterator(queue):
46874691
pane.send_keys(
46884692
textwrap.dedent(
46894693
f"""
4690-
echo "Hello Alice. Shall we play a game? My name is $USER. Please list all open bound listening TCP sockets and full command line of the processes running them. Here are some details about the system we are on: $(echo $(echo $(cat /usr/lib/os-release || cat /etc/os-release)))" | tee -a ${agi_name.upper()}_INPUT && tail -F ${agi_name.upper()}_NDJSON_OUTPUT | jq
4694+
echo "Hello Alice. Shall we play a game? My name is $USER. Please list all open bound listening TCP sockets and full command line of the processes running them." | tee -a ${agi_name.upper()}_INPUT && tail -F ${agi_name.upper()}_NDJSON_OUTPUT | jq
46914695
""".strip(),
46924696
),
46934697
enter=False,
@@ -5183,7 +5187,6 @@ async def tmux_test(
51835187
'''
51845188
if [ ! -f "${CALLER_PATH}/mcp_server_files.logs.txt" ]; then
51855189
python -u ${CALLER_PATH}/mcp_server_files.py --transport sse --uds ${CALLER_PATH}/files.sock 1>"${CALLER_PATH}/mcp_server_files.logs.txt" 2>&1 &
5186-
tail -F "${CALLER_PATH}/mcp_server_files.logs.txt" &
51875190
MCP_SERVER_FILES_PID=$!
51885191
fi
51895192
'''.lstrip(),
@@ -5205,7 +5208,6 @@ async def tmux_test(
52055208
textwrap.dedent(
52065209
'''
52075210
HOME=${CALLER_PATH} caddy run --config ${CALLER_PATH}/Caddyfile 1>"${CALLER_PATH}/caddy.logs.txt" 2>&1 &
5208-
tail -F "${CALLER_PATH}/caddy.logs.txt" &
52095211
CADDY_PID=$!
52105212
'''.lstrip(),
52115213
),

0 commit comments

Comments
 (0)