Ask262

io.github.bendtherules由 GitHub 账号 bendtherules 发布v0.0.13更新于 Oct 24, 2026

MCP server for understanding Javascript internals from ECMAScript specification.

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

Ask262 让助手检索 ECMAScript 规范、读取规范章节,并在 engine262 中运行 JavaScript 以查看执行了哪些规范部分。

可以做什么
按语义查询检索 ECMAScript 规范,并获取匹配章节的完整内容。在 engine262 中执行 JavaScript,捕获所执行的规范章节,并可标记代码中的关键部分。使用将规范章节映射到实现函数的知识图谱。代码执行受一秒超时限制。
适用场景
适合需要理解 JavaScript 语言内部机制、把行为追溯到 ECMAScript 规范原文,或查看某段代码在忠实于规范的引擎中如何运行时使用。
运行要求
提供远程端点,无需本地安装;README 也说明本地安装需要 Bun 1.0.0 或更高版本,以及带 qwen3-embedding:8b 模型的 Ollama,或通过 FIREWORKS_API_KEY 配置的 Fireworks 云端嵌入方案。
安装前请注意
评估工具会在服务器上运行 JavaScript,但执行受一秒超时限制。可选的 Fireworks 嵌入提供方需要通过 FIREWORKS_API_KEY 提供 API 密钥。README 提到的聊天界面需要注册账号。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ask262,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.bendtherules%2Fask262/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "ask262": {
      "type": "http",
      "url": "https://ask262.mcp.bendtherules.io/mcp"
    }
  }
}

README

Ask262

MCP server for exploring the ECMAScript specification and its implementation in engine262.

🎮 Try it now

The fastest way to tinker with JavaScript internals:

  • Ask262 Chat — Ask questions in natural language (register new account)
  • MCP Inspector — Direct access to all mcp tools, no signup needed
  • npx add-mcp "https://ask262.bendtherules.in/mcp"

Features

  • Vector search ECMAScript specification sections using semantic queries
  • Execute JavaScript in engine262 and capture spec sections, with ask262Debug.startImportant() to mark the key parts of your code
  • Knowledge graph mapping spec sections to implementation functions
  • 1-second timeout on code execution for safety

Available Tools

ToolDescription
ask262_search_spec_sectionsVector search ECMAScript spec for relevant sections
ask262_get_section_contentRetrieve full content from a spec section
ask262_evaluate_in_engine262Execute JS and capture spec sections, with "important" marking to focus on relevant parts

Quick Start (Hosted Instance)

Use the hosted MCP server without any local setup:

Preferred Method: npx add-mcp

Install ask262 MCP server to your client with one command:

bash
npx add-mcp "https://ask262.bendtherules.in/mcp"

Manual Configuration

If you prefer to configure manually:

Claude Desktop (claude_desktop_config.json):

json
{  "mcpServers": {    "ask262": {      "url": "https://ask262.bendtherules.in/mcp"    }  }}

OpenCode (~/.config/opencode/opencode.json):

json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "ask262": {      "type": "remote",      "url": "https://ask262.bendtherules.in/mcp",      "enabled": true    }  }}

Local Installation

Prerequisites

  • Bun: Version 1.0.0 or higher (install)
  • Ollama: Installed with qwen3-embedding:8b
    (ollama pull qwen3-embedding:8b)

Setup

bash
# Clone and installgit clone https://github.com/bendtherules/ask262cd ask262bun install
# Or install globallybun install -g ask262

Environment Configuration

Copy .env.example and configure:

bash
cp .env.example .env

Key variables:

  • ASK262_EMBEDDING_PROVIDER: Choose ollama (local) or fireworks (cloud). Default: ollama
  • OLLAMA_HOST: Ollama server URL. Default: http://localhost:11434
  • FIREWORKS_API_KEY: Required if using Fireworks. Get from https://app.fireworks.ai
  • ASK262_PORT: HTTP server port. Default: 8081

Example .env:

bash
# Use Fireworks for embeddings (faster, cloud-based)ASK262_EMBEDDING_PROVIDER=fireworksFIREWORKS_API_KEY=fw_your_key_here
# Or use local Ollama (default)# ASK262_EMBEDDING_PROVIDER=ollama# OLLAMA_HOST=http://localhost:11434

Local MCP Configuration

Claude Desktop (claude_desktop_config.json):

stdio (no server needed)
json
{  "mcpServers": {    "ask262": {      "command": "bunx",      "args": ["ask262"]    }  }}
http (requires server)
json
{  "mcpServers": {    "ask262": {      "url": "http://localhost:8081/mcp"    }  }}

⬇️ Required for HTTP config above:

bash
bun run ask262-http # start HTTP server

OpenCode (~/.config/opencode/opencode.json):

stdio (no server needed)
json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "ask262": {      "type": "local",      "command": ["bunx", "ask262"],      "enabled": true    }  }}
http (requires server)
json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "ask262": {      "type": "remote",      "url": "http://localhost:8081/mcp",      "enabled": true    }  }}

⬇️ Required for HTTP config above:

bash
bun run ask262-http # start HTTP server

HTTP Server Endpoints:

EndpointDescription
GET /healthHealth check
GET/POST /mcpMCP protocol endpoint
GET /MCP Inspector UI (auto-connects to /mcp)

Note: /mcp is defined before the inspector's catch-all / route to ensure proper request handling.

Testing

bash
# Run MCP server testsbun run test-mcp-server
# Test evaluate tool with timeoutbun run test-evaluate-timeout
# Test search functionalitybun run test-search-spec-sections

Development

For development or using a custom ECMAScript specification:

  1. Clone and setup:

    bash
    git clone https://github.com/bendtherules/ask262cd ask262bun install
  2. Ensure spec is present:

    • ./spec-built/multipage/ - Built ECMAScript spec HTML files

    Steps -

    1. git clone https://github.com/tc39/ecma262
    2. npm i && npm run build
    3. copy out/ from ecma262 to spec-built/ in this repo
  3. Build vectors (lancedb)

    bash
    bun run ingest
  4. Release to npm (maintainers only):

    bash
    bun run release

    This will:

    • Check for uncommitted git changes
    • Bump patch version (e.g., 0.0.1 → 0.0.2)
    • Fix any hard links in storage/
    • Run checks and release

    Other options: bun run release -- --minor, bun run release -- --major, or bun run release -- --no-bump

License

ISC

来源:Readme.md,提交 1715462

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v0.0.13最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。