mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
* add workspace access guidelines to instructions * updated example * removed incorrect example * add --example to add the examples from rowboat * changed --example to --sync-example * rename sync-examples option to sync-example in CLI * fix: sync-example implementation * refactor example import * fix yargs * fix: - remove changes to package-lock - remove output messages from app.js and moved them into importExample * fix: restore package-lock.json to match main (remove diff) * fix: naming of the commands * update: made import-example into import and it can import example workflows or user made workflows * update: added export capability * delete: remove misplaced podcast.json file * removed incomplete gemini3-test example json * remove: eliminate gemini3-test example from exports * Fix: better prompting around MCP config Add: copilot tool to add MCP servers * clean up prompt --------- Co-authored-by: Ramnique Singh <30795890+ramnique@users.noreply.github.com>
20 lines
605 B
TypeScript
20 lines
605 B
TypeScript
import { z } from "zod";
|
|
|
|
export const StdioMcpServerConfig = z.object({
|
|
type: z.literal("stdio").optional(),
|
|
command: z.string(),
|
|
args: z.array(z.string()).optional(),
|
|
env: z.record(z.string(), z.string()).optional(),
|
|
});
|
|
|
|
export const HttpMcpServerConfig = z.object({
|
|
type: z.literal("http").optional(),
|
|
url: z.string(),
|
|
headers: z.record(z.string(), z.string()).optional(),
|
|
});
|
|
|
|
export const McpServerDefinition = z.union([StdioMcpServerConfig, HttpMcpServerConfig]);
|
|
|
|
export const McpServerConfig = z.object({
|
|
mcpServers: z.record(z.string(), McpServerDefinition),
|
|
});
|