Skip to content
Closed
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 @@ -41,18 +41,6 @@ export function register(server: McpServer) {
typeof workspaceInputSchema
>[];

if (!deviceId || !projectId) {
return {
content: [
{
type: "text",
text: "Error: deviceId and projectId are required",
},
],
isError: true,
};
}

return executeOnDevice({
ctx,
deviceId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ export function register(server: McpServer) {
const deviceId = args.deviceId as string;
const workspaceIds = args.workspaceIds as string[];

if (!deviceId) {
return {
content: [{ type: "text", text: "Error: deviceId is required" }],
isError: true,
};
}

return executeOnDevice({
ctx,
deviceId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ export function register(server: McpServer) {
const ctx = getMcpContext(extra);
const deviceId = args.deviceId as string;

if (!deviceId) {
return {
content: [{ type: "text", text: "Error: deviceId is required" }],
isError: true,
};
}

return executeOnDevice({
ctx,
deviceId,
Expand Down
7 changes: 0 additions & 7 deletions packages/mcp/src/tools/devices/list-projects/list-projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ export function register(server: McpServer) {
const ctx = getMcpContext(extra);
const deviceId = args.deviceId as string;

if (!deviceId) {
return {
content: [{ type: "text", text: "Error: deviceId is required" }],
isError: true,
};
}

return executeOnDevice({
ctx,
deviceId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ export function register(server: McpServer) {
const ctx = getMcpContext(extra);
const deviceId = args.deviceId as string;

if (!deviceId) {
return {
content: [{ type: "text", text: "Error: deviceId is required" }],
isError: true,
};
}

return executeOnDevice({
ctx,
deviceId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ export function register(server: McpServer) {
const workspaceId = args.workspaceId as string | undefined;
const workspaceName = args.workspaceName as string | undefined;

if (!deviceId) {
return {
content: [{ type: "text", text: "Error: deviceId is required" }],
isError: true,
};
}

if (!workspaceId && !workspaceName) {
return {
content: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ export function register(server: McpServer) {
const workspaceId = args.workspaceId as string | undefined;
const workspaceName = args.workspaceName as string | undefined;

if (!deviceId) {
return {
content: [{ type: "text", text: "Error: deviceId is required" }],
isError: true,
};
}

if (!workspaceId && !workspaceName) {
return {
content: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ export function register(server: McpServer) {
const deviceId = args.deviceId as string;
const updates = args.updates as z.infer<typeof workspaceUpdateSchema>[];

if (!deviceId) {
return {
content: [{ type: "text", text: "Error: deviceId is required" }],
isError: true,
};
}

return executeOnDevice({
ctx,
deviceId,
Expand Down
Loading