Skip to content
Merged
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
6 changes: 4 additions & 2 deletions packages/tasks/src/mcp-server/McpServerSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import { DataPortSchemaObject, FromSchema, mcpServerConfigSchema } from "@workgl
/**
* A lightweight MCP server configuration suitable for task config/input schemas.
*
* When a string `server_id` is provided, the input resolver system resolves it
* to the full server record from the registry.
* This schema carries `format: "mcp-server"`. Task input properties annotated
* with that format (e.g. a `server` field) are resolved by the input resolver
* system: when such a property receives a plain string, the resolver looks up
* that ID in the MCP server registry and substitutes the full server config object.
*/
export const McpServerConfigSchema = {
type: "object",
Expand Down