fix: Standardize SC4S MCP Tool Naming and Set Up MCP Server#3129
Open
digrajpu wants to merge 4 commits into
Open
fix: Standardize SC4S MCP Tool Naming and Set Up MCP Server#3129digrajpu wants to merge 4 commits into
digrajpu wants to merge 4 commits into
Conversation
Kawron
requested changes
Jul 2, 2026
| | `sc4s_health()` | Returns the health payload from the SC4S management API. Use this first when troubleshooting. | | ||
| | `sc4s_get_env()` | Reads the current `env_file` from the running SC4S instance. | | ||
| | `sc4s_set_env(env_file_content)` | Uploads a new `env_file`. The SC4S API backs up the previous file, applies the new one, and restarts `syslog-ng`. On validation failure the previous file is restored. | | ||
| | `health()` | Returns the health payload from the SC4S management API. Use this first when troubleshooting. | |
| 1. First call `sc4s_health` to check the instance status. | ||
| 2. Call `sc4s_get_env` to review the current configuration. | ||
| 3. Call `sc4s_list_custom_parsers` to see deployed custom parsers. | ||
| 1. First call `health` to check the instance status. |
| sc4s_delete_parser, | ||
| sc4s_list_custom_parsers, | ||
| sc4s_get_custom_parser, | ||
| health, |
| def test_sc4s_health(mock_req): | ||
| sc4s_health() | ||
| def test_health(mock_req): | ||
| health() |
| @patch("tools.configuration_tools._sc4s_request") | ||
| def test_sc4s_health(mock_req): | ||
| sc4s_health() | ||
| def test_health(mock_req): |
|
|
||
| @mcp.tool | ||
| def sc4s_health() -> dict: | ||
| def health() -> dict: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.