Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions evals-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ The project is structured as follows:
```bash
npm install
```

*Note: This will also automatically install dependencies for the `ui` sub-project via a `postinstall` script.*

2. **Configure Environment**

Expand Down
1 change: 1 addition & 0 deletions evals-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions evals-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"postinstall": "npm install --prefix ui",
"build": "tsc",
"test": "tsc && node --test dist/test/matcher.test.js",
"serve": "tsc && npm run build --prefix ui && node dist/bin/serve.js"
Expand Down
4 changes: 2 additions & 2 deletions evals-cli/src/evaluator/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function listToolsFromPage(url: string): Promise<Tool[]> {

if (rawTools === null) {
throw new Error(
"The WebMCP API (window.navigator.modelContext or modelContextTesting) is not available on this page.\n" +
"The WebMCP API (window.navigator.modelContextTesting) is not available on this page.\n" +
"Please ensure:\n" +
" 1. You are using Chrome Canary version 146 or later.\n" +
" 2. The flag chrome://flags/#enable-webmcp-testing is enabled.\n" +
Expand All @@ -113,7 +113,7 @@ export async function listToolsFromPage(url: string): Promise<Tool[]> {
if (!Array.isArray(rawTools) || rawTools.length === 0) {
throw new Error(
`The WebMCP API returned no tools from ${url}. ` +
"Ensure the page exposes tools via modelContext.listTools().",
"Ensure the page exposes tools via modelContextTesting.listTools().",
);
}

Expand Down
Loading