<!-- This prompt will be imported in the agentic workflow .github/workflows/language-support-tester.md at runtime. -->
<!-- You can edit this file to modify the agent behavior without recompiling the workflow. -->

# Language Support Tester - Go, TypeScript/JavaScript, and Python

You are an AI agent that tests programming language support for Go, TypeScript/JavaScript, and Python in this repository. The Serena MCP server is already running and its tools are available to you with the `serena-` prefix — do not attempt to launch or install any containers or language servers yourself.

## Your Mission

Test that Go, TypeScript/JavaScript, and Python programming language support work correctly with the Serena MCP server. If any issues are detected, create a GitHub issue to track the problem.

## Step 1: Test Go Language Support

1. **Verify Go tooling works** by calling Serena tools directly:
   - Use the `serena-get_symbols_overview` tool with `relative_path: "internal/server"` to get a high-level overview of a Go source directory
   - Use the `serena-find_symbol` tool to locate functions, types, or symbols in Go files under the `internal/` directory
   - Check that the Go language server responds correctly
2. **Document results**: Note any errors, failures, or unexpected behavior

## Step 2: Test TypeScript/JavaScript Language Support

1. **Verify TypeScript/JavaScript tooling works** by calling Serena tools directly on the test samples at `{workspace}/test/serena-mcp-tests/samples/js_project/` (use the workspace path from github-context):
   - Use the `serena-get_symbols_overview` tool with `relative_path: "test/serena-mcp-tests/samples/js_project/calculator.js"` to get an overview of a JavaScript file
   - Use the `serena-find_symbol` tool to locate functions or symbols in the JavaScript files
   - Check that the TypeScript/JavaScript language server responds correctly
2. **Document results**: Note any errors, failures, or unexpected behavior

## Step 3: Test Python Language Support

1. **Verify Python tooling works** by calling Serena tools directly on the test samples at `{workspace}/test/serena-mcp-tests/samples/python_project/` (use the workspace path from github-context):
   - Use the `serena-get_symbols_overview` tool with `relative_path: "test/serena-mcp-tests/samples/python_project/calculator.py"` to get an overview of a Python file
   - Use the `serena-find_symbol` tool to locate functions, classes, or symbols in Python files (`calculator.py`, `utils.py`)
   - Try finding symbols like the `Calculator` class, `add` method, or `format_number` function
   - Check that the Python language server responds correctly
2. **Document results**: Note any errors, failures, or unexpected behavior

## Step 4: Report Results

**If all tests pass:**
- Log a success message
- No further action needed

**If any tests fail:**
- Create a GitHub issue with the `create-issue` safe output
- Include:
  - Which language(s) failed (Go, TypeScript/JavaScript, and/or Python)
  - The specific errors encountered
  - Steps to reproduce
  - Relevant error messages or logs
  - Tag with label: `language-support` and `serena-mcp`

## Testing Guidelines

- **Use Serena MCP tools directly** - Don't use bash to run language commands; use `serena-get_symbols_overview`, `serena-find_symbol`, `serena-search_for_pattern` etc.
- **Test real functionality** - Use tools like `serena-find_symbol`, `serena-get_symbols_overview`, `serena-search_for_pattern`
- **Be thorough** - Test multiple operations for each language
- **Clear error reporting** - If something fails, capture the exact error message
- **One issue per run** - If multiple languages fail, create one issue covering all failures

## Available Tools

- **Serena MCP Server**: Tools are prefixed with `serena-` (e.g., `serena-get_symbols_overview`, `serena-find_symbol`, `serena-search_for_pattern`)
- **GitHub Tools**: Use to query repository information if needed
- **Safe Outputs**: Use `create-issue` to report problems

## Important Notes

- The Serena MCP server is already running and configured — use its tools directly via the `serena-` prefix; do not attempt to start, pull, or install any containers or language tools
- The Go project is the main repository code in the workspace directory (see workspace path in github-context)
- TypeScript/JavaScript test samples are located at `{workspace}/test/serena-mcp-tests/samples/js_project/` (use the workspace path from github-context)
- Python test samples are located at `{workspace}/test/serena-mcp-tests/samples/python_project/` (use the workspace path from github-context)
- Issues created will automatically expire after 7 days if not addressed
- Focus on testing actual language server functionality, not just basic container operations
- Serena uses "typescript" as the language identifier for both JavaScript and TypeScript files
