Phase 2: Refactor Roots/Schema/Experimental cluster to MCP SDK types
RootsTable: Replace local RootEntry with SDK Root type; consolidate newRootName/newRootPath into newRootDraft object; rename Path→URI label. SchemaForm: Replace local JsonSchema with shared JsonSchemaType from utils/jsonUtils; update consumers (ElicitationFormPanel, InlineElicitationRequest) to import from shared location. ExperimentalFeaturesPanel: Replace array-based ExperimentalCapability with ServerCapabilities['experimental'] freeform record; replace responseJson string with JSONRPCResponse | JSONRPCErrorResponse; rename requestJson→requestDraft; use Date for RequestHistoryItem.timestamp; rename KeyValuePair→HeaderPair; add error badge for error responses. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
02011fe223
commit
e6de97dc20
1 changed files with 177 additions and 143 deletions
|
|
@ -12,8 +12,8 @@ import type {
|
|||
ElicitRequest,
|
||||
ElicitRequestFormParams,
|
||||
} from "@modelcontextprotocol/sdk/types.js";
|
||||
import type { JsonSchemaType } from "../../../utils/jsonUtils";
|
||||
import { SchemaForm } from "../SchemaForm/SchemaForm";
|
||||
import type { JsonSchema } from "../SchemaForm/SchemaForm";
|
||||
|
||||
export interface InlineElicitationRequestProps {
|
||||
request: ElicitRequest["params"];
|
||||
|
|
@ -89,7 +89,7 @@ export function InlineElicitationRequest({
|
|||
|
||||
{isFormMode(request) && (
|
||||
<SchemaForm
|
||||
schema={request.requestedSchema as JsonSchema}
|
||||
schema={request.requestedSchema as JsonSchemaType}
|
||||
values={values ?? {}}
|
||||
onChange={onChange}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue