Skip to content

Commit f5a5847

Browse files
ochafikclaude
andcommitted
chore: remove redundant Note comments from types.ts
Remove 29 "// Note:" comments that documented which schemas are re-exported. These were just noise - the imports/exports at the top of the file are the source of truth. Types.ts: 1233 lines (down from 1262) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2e45b82 commit f5a5847

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/types.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ export const TaskCreationParamsSchema = z.looseObject({
380380
pollInterval: z.number().optional()
381381
});
382382

383-
// Note: RequestParamsSchema, NotificationParamsSchema, and TaskAugmentedRequestParamsSchema
384383
// are re-exported from generated. They include RELATED_TASK_META_KEY in _meta, injected
385384
// during pre-processing.
386385

@@ -393,7 +392,6 @@ export const TaskCreationParamsSchema = z.looseObject({
393392
export const isTaskAugmentedRequestParams = (value: unknown): value is TaskAugmentedRequestParams =>
394393
TaskAugmentedRequestParamsSchema.safeParse(value).success;
395394

396-
// Note: RequestSchema, NotificationSchema, ResultSchema, and JSON-RPC schemas
397395
// are re-exported from generated. They include proper _meta typing and .strict().
398396

399397
export const isJSONRPCRequest = (value: unknown): value is JSONRPCRequest => JSONRPCRequestSchema.safeParse(value).success;
@@ -429,7 +427,6 @@ export const JSONRPCMessageSchema = z.union([
429427
JSONRPCErrorResponseSchema
430428
]);
431429

432-
// Note: JSONRPCResponseSchema, EmptyResultSchema (with .strict()), CancelledNotificationParamsSchema are re-exported from generated.
433430

434431
/* Cancellation */
435432
/**
@@ -538,15 +535,13 @@ export const ClientCapabilitiesSchema = z.object({
538535
.optional()
539536
});
540537

541-
// Note: ClientTasksCapabilitySchema is re-exported from generated (derived from ClientCapabilities.tasks).
542538

543539
/**
544540
* Elicitation capability schema - extracted from ClientCapabilitiesSchema.
545541
* Has special preprocessing to handle empty objects as { form: {} } for backwards compatibility.
546542
*/
547543
export const ElicitationCapabilitySchema = ClientCapabilitiesSchema.shape.elicitation.unwrap();
548544

549-
// Note: InitializeRequestParamsSchema, InitializeRequestSchema are re-exported from generated.
550545

551546
export const isInitializeRequest = (value: unknown): value is InitializeRequest => InitializeRequestSchema.safeParse(value).success;
552547

@@ -636,15 +631,12 @@ export const ServerCapabilitiesSchema = z.object({
636631
.optional()
637632
});
638633

639-
// Note: ServerTasksCapabilitySchema is re-exported from generated (derived from ServerCapabilities.tasks).
640634

641-
// Note: InitializeResultSchema, InitializedNotificationSchema are re-exported from generated.
642635

643636
export const isInitializedNotification = (value: unknown): value is InitializedNotification =>
644637
InitializedNotificationSchema.safeParse(value).success;
645638

646639
/* Ping */
647-
// Note: PingRequestSchema is re-exported from generated.
648640

649641
/* Progress notifications */
650642
export const ProgressSchema = z.object({
@@ -670,46 +662,34 @@ export const ProgressNotificationParamsSchema = z.object({
670662
*/
671663
progressToken: ProgressTokenSchema
672664
});
673-
// Note: ProgressNotificationSchema is re-exported from generated.
674665

675666
/* Pagination */
676-
// Note: PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema
677667
// are re-exported from generated.
678668

679669
/* Tasks */
680-
// Note: TaskSchema, TaskStatusNotificationParamsSchema, CreateTaskResultSchema,
681670
// TaskStatusNotificationSchema, GetTaskResultSchema, GetTaskPayloadResultSchema,
682671
// ListTasksResultSchema, CancelTaskResultSchema are re-exported from generated.
683672

684673
/* Resources */
685-
// Note: ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema
686674
// are re-exported from generated with Base64 validation.
687675

688-
// Note: ResourceSchema, ResourceTemplateSchema are re-exported from generated.
689676

690-
// Note: ListResourcesRequestSchema, ListResourceTemplatesRequestSchema, SubscribeRequestSchema,
691677
// UnsubscribeRequestSchema are re-exported from generated.
692678

693-
// Note: ListResourcesResultSchema, ListResourceTemplatesResultSchema,
694679
// ResourceRequestParamsSchema, ReadResourceRequestParamsSchema,
695680
// SubscribeRequestParamsSchema, UnsubscribeRequestParamsSchema,
696681
// ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema,
697682
// ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema are re-exported from generated.
698683

699684
/* Prompts */
700-
// Note: PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, GetPromptRequestSchema
701685
// are re-exported from generated.
702686

703-
// Note: ListPromptsResultSchema, GetPromptRequestParamsSchema are re-exported from generated.
704687

705-
// Note: TextContentSchema, ImageContentSchema, AudioContentSchema are re-exported
706688
// from generated with Base64 validation for data fields.
707689

708-
// Note: ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema,
709690
// PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema are re-exported from generated.
710691

711692
/* Tools */
712-
// Note: ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema,
713693
// ListToolsResultSchema, CallToolResultSchema, CallToolRequestParamsSchema,
714694
// CallToolRequestSchema, ToolListChangedNotificationSchema are re-exported from generated.
715695

@@ -803,19 +783,16 @@ export type ListChangedHandlers = {
803783
};
804784

805785
/* Logging */
806-
// Note: SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema,
807786
// LoggingMessageNotificationParamsSchema are re-exported from generated.
808787

809788
/* Sampling */
810-
// Note: ToolResultContentSchema is re-exported from generated.
811789

812790
/**
813791
* Basic content types for sampling responses (without tool use).
814792
* Used for backwards-compatible CreateMessageResult when tools are not used.
815793
*/
816794
export const SamplingContentSchema = z.discriminatedUnion('type', [TextContentSchema, ImageContentSchema, AudioContentSchema]);
817795

818-
// Note: SamplingMessageContentBlockSchema (using discriminatedUnion),
819796
// SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema,
820797
// CreateMessageResultSchema are re-exported from generated.
821798

@@ -848,13 +825,11 @@ export const CreateMessageResultWithToolsSchema = ResultSchema.extend({
848825
});
849826

850827
/* Elicitation */
851-
// Note: BooleanSchemaSchema, NumberSchemaSchema, StringSchemaSchema,
852828
// UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema,
853829
// LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema,
854830
// TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema,
855831
// PrimitiveSchemaDefinitionSchema are re-exported from generated.
856832

857-
// Note: ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema,
858833
// ElicitRequestSchema, ElicitResultSchema, ElicitationCompleteNotificationSchema are re-exported from generated.
859834

860835
/**
@@ -870,14 +845,12 @@ export const ElicitationCompleteNotificationParamsSchema = NotificationParamsSch
870845
});
871846

872847
/* Autocomplete */
873-
// Note: ResourceTemplateReferenceSchema, PromptReferenceSchema are re-exported from generated.
874848

875849
/**
876850
* @deprecated Use ResourceTemplateReferenceSchema instead
877851
*/
878852
export const ResourceReferenceSchema = ResourceTemplateReferenceSchema;
879853

880-
// Note: CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema
881854
// are re-exported from generated.
882855

883856
export function assertCompleteRequestPrompt(request: CompleteRequest): asserts request is CompleteRequestPrompt {
@@ -895,11 +868,9 @@ export function assertCompleteRequestResourceTemplate(request: CompleteRequest):
895868
}
896869

897870
/* Roots */
898-
// Note: RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema
899871
// are re-exported from generated.
900872

901873
/* Client/Server message types */
902-
// Note: ClientRequestSchema, ClientNotificationSchema, ClientResultSchema,
903874
// ServerRequestSchema, ServerNotificationSchema, ServerResultSchema are re-exported from generated.
904875

905876
export class McpError extends Error {

0 commit comments

Comments
 (0)