# Notice layaToolGuard is an unofficial project built on a browser port of the Laya typed-decisions checkpoint. It is not affiliated with or endorsed by ConvAI Innovations, the MCPTox authors, Microsoft, Hugging Face, Answer.AI, LightOn, the MLC team or Alibaba (Qwen). ## This project The rules, pipeline, gate, questions, pages, CLI/proxy, hard negatives, injected sentences, presets and evaluation code in this repository are Copyright 2026 vishalmysore and licensed under the Apache License, Version 2.0 (see `LICENSE`). ## The Laya model The page and the npm package load [`VishalMysore/layaForWebTrained`](https://huggingface.co/VishalMysore/layaForWebTrained) at run time. That is a modified derivative of [`convaiinnovations/laya-typed-decisions`](https://huggingface.co/convaiinnovations/laya-typed-decisions) (Copyright ConvAI Innovations, Apache-2.0), exported to ONNX and quantized by the [layaForWeb](https://github.com/vishalmysore/layaForWeb) project. Laya is built on ModernBERT-large by Answer.AI and LightOn (Apache-2.0). The model files are not part of this repository. `web/laya-core.js` and `web/model.js` are copied unchanged from [layaAgent](https://github.com/vishalmysore/layaAgent) (which took them from layaForWeb). `laya-core.js` is a JavaScript port of `laya/common.py` (`build_sequence`) and `laya/agent.py` (`system_one`) from https://github.com/NandhaKishorM/laya (Apache-2.0). `web/laya-batch.js` reuses its sequence builder to batch several states in one run. ## Evaluation data: MCPTox (CC BY 4.0) `web/dataset.json` contains material from **MCPTox: A Benchmark for Tool Poisoning on Real-World MCP Servers** (Wang, Gao, Wang, Liu, Sun, Cheng, Shi, Du, Li; AAAI 2026), https://github.com/zhiqiangwang4/MCPTox-Benchmark, licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). Changes made: poisoned descriptions deduplicated (485 unique) and trailing argument lists removed; clean tool and parameter descriptions parsed out of the benchmark's per-server system prompts; items split by server into dev and test; copies of clean tools with one inserted sentence were added. Third-party materials inside MCPTox (the descriptions of the original MCP servers) remain subject to their own terms. `data/fetch_mcptox.mjs` downloads the original files. `data/hard_negatives.json`, `data/injections.json` and the poisoned tools in `web/presets/` were written for this project. Server names and domains in them are made up. ## Optional second opinion: WebLLM models Downloaded at run time from the MLC model repositories, not part of this repository: Qwen2.5 Instruct 0.5B / 1.5B (Apache-2.0, Alibaba Cloud). ## Third-party software shipped with the page (`vendor/`) - **ONNX Runtime Web** (`onnxruntime-web` 1.30.0): Copyright (c) Microsoft Corporation, MIT License. `licenses/onnxruntime-LICENSE.txt`; notices for components inside the WebAssembly binary are in `licenses/onnxruntime-ThirdPartyNotices.txt`. - **Tokenizers.js** (`@huggingface/tokenizers` 0.2.0): Hugging Face, Apache License 2.0. `licenses/tokenizers.js-LICENSE.txt`. - **WebLLM** (`@mlc-ai/web-llm` 0.2.79): MLC, Apache License 2.0. `licenses/web-llm-LICENSE.txt`. The npm package optionally uses **onnxruntime-node** (MIT, Microsoft) in Node.