Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export function CreateAutomationDialog({
v2WorkspaceId,
rrule: rrule.trim(),
timezone: DEFAULT_TIMEZONE,
mcpScope: [],
});
},
onSuccess: (result) => {
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/commands/automations/create/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export default command({
rrule: options.rrule,
dtstart: options.dtstart ? new Date(options.dtstart) : undefined,
timezone: options.timezone ?? DEFAULT_TIMEZONE,
mcpScope: [],
});

return {
Expand Down
10 changes: 0 additions & 10 deletions packages/cli/src/commands/automations/update/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default command({
session: boolean().desc(
"Switch to session mode: no project, each run creates a project-less session workspace",
),
mcpScope: string().desc("Comma-separated MCP scope strings"),
enabled: boolean().desc("Enable or pause the automation"),
},
run: async ({ ctx, args, options }) => {
Expand All @@ -40,14 +39,6 @@ export default command({
});
}

const mcpScope =
options.mcpScope !== undefined
? options.mcpScope
.split(",")
.map((s) => s.trim())
.filter(Boolean)
: undefined;

// Retargeting (--workspace or --project) re-derives targetHostId +
// v2ProjectId; the resource must exist on the target host.
let target:
Expand Down Expand Up @@ -88,7 +79,6 @@ export default command({
// Session mode clears both the project and any workspace pin.
...(options.session ? { v2ProjectId: null, v2WorkspaceId: null } : {}),
...target,
...(mcpScope !== undefined ? { mcpScope } : {}),
});

return {
Expand Down
4 changes: 0 additions & 4 deletions packages/mcp/src/tools/automations/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ export function register(server: McpServer): void {
.string()
.min(1)
.describe("IANA timezone (e.g. America/New_York)."),
mcpScope: z
.array(z.string())
.default([])
.describe("Optional MCP scope strings the run should request."),
},
handler: async (input, ctx) => {
const caller = createMcpCaller(ctx);
Expand Down
1 change: 0 additions & 1 deletion packages/mcp/src/tools/automations/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function register(server: McpServer): void {
.optional()
.describe("First scheduled fire (ISO 8601)."),
timezone: z.string().min(1).optional(),
mcpScope: z.array(z.string()).optional(),
},
handler: async (input, ctx) => {
const caller = createMcpCaller(ctx);
Expand Down
4 changes: 0 additions & 4 deletions packages/sdk/src/resources/automations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ export interface AutomationSummary {
dtstart: string;
timezone: string;
enabled: boolean;
mcpScope: string[];
nextRunAt: string;
/** Human-readable schedule description, derived from rrule. */
scheduleText?: string;
Expand Down Expand Up @@ -242,8 +241,6 @@ export interface AutomationCreateParams {
targetHostId?: string | null;
/** ISO timestamp; defaults to now if omitted. */
dtstart?: string;
/** MCP server names this automation is allowed to use. */
mcpScope?: string[];
}

export interface AutomationUpdateParams {
Expand Down Expand Up @@ -273,7 +270,6 @@ export interface AutomationUpdateParams {
rrule?: string;
dtstart?: string;
timezone?: string;
mcpScope?: string[];
}

export interface AutomationRun {
Expand Down
2 changes: 0 additions & 2 deletions packages/trpc/src/router/automation/automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ export const automationRouter = {
rrule: input.rrule,
dtstart,
timezone: input.timezone,
mcpScope: input.mcpScope,
nextRunAt,
})
.returning();
Expand Down Expand Up @@ -448,7 +447,6 @@ export const automationRouter = {
rrule: nextRrule,
dtstart: nextDtstart,
timezone: nextTimezone,
mcpScope: input.mcpScope ?? existing.mcpScope,
nextRunAt: recomputedNextRunAt,
})
.where(eq(automations.id, input.id))
Expand Down
2 changes: 0 additions & 2 deletions packages/trpc/src/router/automation/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const createAutomationSchema = z.object({
rrule: rruleBody,
dtstart: z.coerce.date().optional(),
timezone: iana,
mcpScope: z.array(z.string()).default([]),
});

export const updateAutomationSchema = z.object({
Expand All @@ -51,7 +50,6 @@ export const updateAutomationSchema = z.object({
rrule: rruleBody.optional(),
dtstart: z.coerce.date().optional(),
timezone: iana.optional(),
mcpScope: z.array(z.string()).optional(),
});

export const setAutomationPromptSchema = z.object({
Expand Down
Loading