mcp_server_js

by zhuweiyou

183 downloads
Not rated
GitHub

About

mcpserverjs is an MCP server that exposes a single tool for executing JavaScript code. It is designed for developers who need to run JavaScript snippets within an MCP‑enabled application.

Details

Author
zhuweiyou
Downloads
183
Categories
Other

- Single tool js(source_code=…) for executing JavaScript
- Supports stdio transport for local integration
- Supports SSE transport for remote or network‑based use

Configure the server in your MCP client using either the stdio transport (pointing to the server binary) or the SSE transport (running the server on a port and connecting via URL). Invoke the exposed tool by passing a source code string.

mcp_server_js

tool

- js(source_code="1 + 2")

server

stdio

{
  "mcpServers": {
    "mcp_server_js": {
      "command": "/path/to/mcp_server_js"
    }
  }
}

sse

./mcp_server_js --port 8080
{
  "mcpServers": {
    "mcp_server_js": {
      "url": "http://localhost:8080/sse"
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.