Compare commits
1 Commits
claude/iss
...
docs/auto-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ec3741f3b |
@@ -6,9 +6,9 @@
|
|||||||
| ----------- | ---------------------------------------------- | --------- | ---------- | ----------- |
|
| ----------- | ---------------------------------------------- | --------- | ---------- | ----------- |
|
||||||
| anthropic | claude-sonnet-4-20250514 | 0.727 | 3 | 15 |
|
| anthropic | claude-sonnet-4-20250514 | 0.727 | 3 | 15 |
|
||||||
| anthropic | claude-opus-4-20250514 | 0.725 | 15 | 75 |
|
| anthropic | claude-opus-4-20250514 | 0.725 | 15 | 75 |
|
||||||
|
| anthropic | claude-sonnet-4-5-20250929 | 0.73 | 3 | 15 |
|
||||||
| anthropic | claude-3-7-sonnet-20250219 | 0.623 | 3 | 15 |
|
| anthropic | claude-3-7-sonnet-20250219 | 0.623 | 3 | 15 |
|
||||||
| anthropic | claude-3-5-sonnet-20241022 | 0.49 | 3 | 15 |
|
| anthropic | claude-3-5-sonnet-20241022 | 0.49 | 3 | 15 |
|
||||||
| anthropic | claude-sonnet-4-5-20250929 | 0.73 | 3 | 15 |
|
|
||||||
| anthropic | claude-haiku-4-5-20251001 | 0.45 | 1 | 5 |
|
| anthropic | claude-haiku-4-5-20251001 | 0.45 | 1 | 5 |
|
||||||
| claude-code | opus | 0.725 | 0 | 0 |
|
| claude-code | opus | 0.725 | 0 | 0 |
|
||||||
| claude-code | sonnet | 0.727 | 0 | 0 |
|
| claude-code | sonnet | 0.727 | 0 | 0 |
|
||||||
@@ -105,7 +105,6 @@
|
|||||||
| ----------- | -------------------------------------------- | --------- | ---------- | ----------- |
|
| ----------- | -------------------------------------------- | --------- | ---------- | ----------- |
|
||||||
| claude-code | opus | 0.725 | 0 | 0 |
|
| claude-code | opus | 0.725 | 0 | 0 |
|
||||||
| claude-code | sonnet | 0.727 | 0 | 0 |
|
| claude-code | sonnet | 0.727 | 0 | 0 |
|
||||||
| claude-code | haiku | 0.45 | 0 | 0 |
|
|
||||||
| codex-cli | gpt-5 | 0.749 | 0 | 0 |
|
| codex-cli | gpt-5 | 0.749 | 0 | 0 |
|
||||||
| codex-cli | gpt-5-codex | 0.749 | 0 | 0 |
|
| codex-cli | gpt-5-codex | 0.749 | 0 | 0 |
|
||||||
| mcp | mcp-sampling | — | 0 | 0 |
|
| mcp | mcp-sampling | — | 0 | 0 |
|
||||||
@@ -144,9 +143,9 @@
|
|||||||
| ----------- | ---------------------------------------------- | --------- | ---------- | ----------- |
|
| ----------- | ---------------------------------------------- | --------- | ---------- | ----------- |
|
||||||
| anthropic | claude-sonnet-4-20250514 | 0.727 | 3 | 15 |
|
| anthropic | claude-sonnet-4-20250514 | 0.727 | 3 | 15 |
|
||||||
| anthropic | claude-opus-4-20250514 | 0.725 | 15 | 75 |
|
| anthropic | claude-opus-4-20250514 | 0.725 | 15 | 75 |
|
||||||
|
| anthropic | claude-sonnet-4-5-20250929 | 0.73 | 3 | 15 |
|
||||||
| anthropic | claude-3-7-sonnet-20250219 | 0.623 | 3 | 15 |
|
| anthropic | claude-3-7-sonnet-20250219 | 0.623 | 3 | 15 |
|
||||||
| anthropic | claude-3-5-sonnet-20241022 | 0.49 | 3 | 15 |
|
| anthropic | claude-3-5-sonnet-20241022 | 0.49 | 3 | 15 |
|
||||||
| anthropic | claude-sonnet-4-5-20250929 | 0.73 | 3 | 15 |
|
|
||||||
| anthropic | claude-haiku-4-5-20251001 | 0.45 | 1 | 5 |
|
| anthropic | claude-haiku-4-5-20251001 | 0.45 | 1 | 5 |
|
||||||
| claude-code | opus | 0.725 | 0 | 0 |
|
| claude-code | opus | 0.725 | 0 | 0 |
|
||||||
| claude-code | sonnet | 0.727 | 0 | 0 |
|
| claude-code | sonnet | 0.727 | 0 | 0 |
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
/**
|
|
||||||
* @fileoverview FastMCP Draft-07 Compatibility Patch
|
|
||||||
*
|
|
||||||
* PROBLEM:
|
|
||||||
* - FastMCP uses Zod v3 + zod-to-json-schema → outputs JSON Schema Draft 2020-12
|
|
||||||
* - MCP clients (e.g., Augment IDE) only support Draft-07
|
|
||||||
* - This causes "MCP server startup error" in incompatible clients
|
|
||||||
*
|
|
||||||
* SOLUTION:
|
|
||||||
* Pre-convert Zod v4 schemas to Draft-07 using native toJSONSchema() before
|
|
||||||
* passing to FastMCP, preventing it from doing its own conversion.
|
|
||||||
*
|
|
||||||
* TEMPORARY PATCH:
|
|
||||||
* This will be removed once FastMCP, MCP spec, or Zod addresses the compatibility issue.
|
|
||||||
* Tracking: https://github.com/punkpeye/fastmcp/issues/189
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { FastMCP as OriginalFastMCP } from 'fastmcp';
|
|
||||||
import { toJSONSchema, ZodType } from 'zod';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* FastMCP wrapper that converts Zod schemas to JSON Schema Draft-07
|
|
||||||
*/
|
|
||||||
export class FastMCP extends OriginalFastMCP {
|
|
||||||
addTool(tool) {
|
|
||||||
// Pre-convert Zod schemas to Draft-07 before passing to FastMCP
|
|
||||||
if (tool.parameters instanceof ZodType) {
|
|
||||||
try {
|
|
||||||
const modifiedTool = {
|
|
||||||
...tool,
|
|
||||||
parameters: toJSONSchema(tool.parameters, { target: 'draft-7' })
|
|
||||||
};
|
|
||||||
return super.addTool(modifiedTool);
|
|
||||||
} catch (error) {
|
|
||||||
console.error(
|
|
||||||
`[FastMCPCompat] Failed to convert schema for tool "${tool.name}":`,
|
|
||||||
error
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Pass through as-is for non-Zod schemas or conversion failures
|
|
||||||
return super.addTool(tool);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FastMCP } from './FastMCPCompat.js';
|
import { FastMCP } from 'fastmcp';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import dotenv from 'dotenv';
|
import dotenv from 'dotenv';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
|
|||||||
106
output.txt
Normal file
106
output.txt
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user