From 308f76697723e93ff36fa34e1340379fa3574774 Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:40:27 -0400 Subject: [PATCH 1/4] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index 3ddec8cbf1..c63c8001aa 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -27,22 +27,14 @@ jobs: echo "is_new_blog=false" >> $GITHUB_OUTPUT fi - - name: Get PR body - if: steps.check-new-blog.outputs.is_new_blog == 'true' - id: pr-body - run: | - body="${{ github.event.pull_request.body }}" - echo "body=${body}" >> $GITHUB_OUTPUT - - name: Check for linked issues if: steps.check-new-blog.outputs.is_new_blog == 'true' id: check-issues run: | - body="${{ github.event.pull_request.body }}" - if echo "$body" | grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+"; then - echo "has_issue=true" >> $GITHUB_OUTPUT + if grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" <<< "${{ github.event.pull_request.body }}"; then + echo "has_issue=true" >> $GITHUB_OUTPUT else - echo "has_issue=false" >> $GITHUB_OUTPUT + echo "has_issue=false" >> $GITHUB_OUTPUT fi - name: Comment if no linked issue @@ -59,4 +51,4 @@ jobs: - Fixes #issue-number - Resolves #issue-number - If there isn't an issue yet, please [create one](https://github.com/opensearch-project/project-website/issues/new?template=blog_post.yml) and then link it to this PR. \ No newline at end of file + If there isn't an issue yet, please [create one](https://github.com/opensearch-project/project-website/issues/new?template=blog_post.yml) and then link it to this PR. From bae25f6c00f3e70d6b5d5bfdfc2b3105f2b6af2b Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:46:59 -0400 Subject: [PATCH 2/4] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index c63c8001aa..f0c85e0ba2 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -1,4 +1,4 @@ -name: Check for issue for blogs +name: Check for blog issue on: pull_request: @@ -31,7 +31,8 @@ jobs: if: steps.check-new-blog.outputs.is_new_blog == 'true' id: check-issues run: | - if grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" <<< "${{ github.event.pull_request.body }}"; then + echo '${{ github.event.pull_request.body }}' | grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" > /dev/null + if [ $? -eq 0 ]; then echo "has_issue=true" >> $GITHUB_OUTPUT else echo "has_issue=false" >> $GITHUB_OUTPUT From 3d25036502edbc7f61d3006c41505c7ccb1b038a Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:53:12 -0400 Subject: [PATCH 3/4] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index f0c85e0ba2..5bff2d6cdd 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -31,12 +31,13 @@ jobs: if: steps.check-new-blog.outputs.is_new_blog == 'true' id: check-issues run: | - echo '${{ github.event.pull_request.body }}' | grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" > /dev/null - if [ $? -eq 0 ]; then - echo "has_issue=true" >> $GITHUB_OUTPUT + echo "${{ github.event.pull_request.body }}" > pr_body.txt + if grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" pr_body.txt > /dev/null; then + echo "has_issue=true" >> $GITHUB_OUTPUT else - echo "has_issue=false" >> $GITHUB_OUTPUT + echo "has_issue=false" >> $GITHUB_OUTPUT fi + rm pr_body.txt - name: Comment if no linked issue if: steps.check-new-blog.outputs.is_new_blog == 'true' && steps.check-issues.outputs.has_issue == 'false' From 6caf972f5307926fbd651deec9f6f9bb0a8b0d7c Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:02:46 -0400 Subject: [PATCH 4/4] Update 2025-05-05-plan-execute-agent.md --- _posts/2025-05-05-plan-execute-agent.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_posts/2025-05-05-plan-execute-agent.md b/_posts/2025-05-05-plan-execute-agent.md index 5b9c82ae12..123bcf63a8 100644 --- a/_posts/2025-05-05-plan-execute-agent.md +++ b/_posts/2025-05-05-plan-execute-agent.md @@ -419,6 +419,8 @@ One such example would be using the [WebSearchTool](https://docs.opensearch.org/ Additionally, this agent functions as an MCP client, enabling it to connect to MCP servers. This capability allows the agent to dynamically retrieve tools and configurations and participate in more complex workflows. + + To learn how too connect your agent to an MCP server, see [Connecting to an external MCP server](https://docs.opensearch.org/docs/latest/ml-commons-plugin/agents-tools/mcp/mcp-connector/). ### Recommendations and troubleshooting