Skip to content
Open
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
63 changes: 63 additions & 0 deletions mcp/mcp-schemas/model/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,36 @@ list ToolInfoList {
member: ToolInfo
}

structure PromptsResult {
prompts: PromptList
}

list PromptList {
member: PromptInfo
}

structure PromptArgument {
@required
name: String

description: String

required: Boolean
}

list PromptArgumentList {
member: PromptArgument
}

structure PromptInfo {
@required
name: String

description: String

arguments: PromptArgumentList
}

structure JsonObjectSchema {
@required
type: String = "object"
Expand Down Expand Up @@ -182,3 +212,36 @@ structure TextContent {

text: String
}

structure McpResource {
uri: String
text: String
mimeType: String
}

// Updated MessageContent structure to match the MCP specification
structure MessageContent {
@required
type: String = "text"

text: String

resource: McpResource
}

structure Message {
@required
role: String

@required
content: MessageContent
}

list MessageList {
member: Message
}

structure PromptGetResult {
description: String
messages: MessageList
}
Loading