HackerEarth MCP

v0.2.1
io.github.pratham-jain33/hackerearth-mcp Checked 12 hours ago Published 2 months ago

Give any AI assistant a code run button via HackerEarth.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run_code Run Code

Executes a snippet of code on HackerEarth's cloud servers in any of 24 languages. Use when the user wants to test code, see real output instead of predicted output, or check whether a program works. Needs the code and the language identifier, call list_languages if unsure of the exact name. Returns the program's printed output and any error messages.

ParameterTypeDescription
code *string
language *string

list_languages List Languages

Returns the list of programming languages HackerEarth can execute, with the exact identifiers to pass to run_code. Use this when you are unsure which language name to use, or when the user asks what languages are available. Takes no inputs.