Skip to content

Commit 9f477a2

Browse files
committed
refactor(mcp-server): rename lint tool
1 parent 03cbb38 commit 9f477a2

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/mcp-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ If `assembly_url` is provided, the MCP server resumes uploads using Assembly sta
9898
- `transloadit_create_assembly`
9999
- `transloadit_get_assembly_status`
100100
- `transloadit_wait_for_assembly`
101-
- `transloadit_validate_assembly`
101+
- `transloadit_lint_assembly_instructions`
102102
- `transloadit_list_robots`
103103
- `transloadit_get_robot_help`
104104
- `transloadit_list_golden_templates`

packages/mcp-server/src/server.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ const listGoldenTemplatesOutputSchema = z.object({
221221
),
222222
})
223223

224-
const validateAssemblyInputSchema = z.object({
224+
const lintAssemblyInputSchema = z.object({
225225
instructions: z.unknown(),
226226
strict: z.boolean().optional(),
227227
return_fixed: z.boolean().optional(),
228228
})
229229

230-
const validateAssemblyOutputSchema = z.object({
230+
const lintAssemblyOutputSchema = z.object({
231231
status: z.enum(['ok', 'error']),
232232
linting_issues: z.array(lintIssueSchema),
233233
normalized_instructions: z.unknown().optional(),
@@ -418,13 +418,13 @@ export const createTransloaditMcpServer = (
418418
})
419419

420420
server.registerTool(
421-
'transloadit_validate_assembly',
421+
'transloadit_lint_assembly_instructions',
422422
{
423-
title: 'Validate Assembly Instructions',
423+
title: 'Lint Assembly Instructions',
424424
description:
425425
'Lint Assembly Instructions without creating an Assembly. Returns structured issues.',
426-
inputSchema: validateAssemblyInputSchema,
427-
outputSchema: validateAssemblyOutputSchema,
426+
inputSchema: lintAssemblyInputSchema,
427+
outputSchema: lintAssemblyOutputSchema,
428428
},
429429
async ({ instructions, strict, return_fixed }) => {
430430
const client = createLintClient(options)

packages/mcp-server/test/e2e/validate-assembly.test.ts renamed to packages/mcp-server/test/e2e/lint-assembly.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ maybeDescribe('mcp-server validate assembly (stdio)', { timeout: 30000 }, () =>
5050
const expectedIssues = lintResult.issues.map(toExpectedLintIssue)
5151

5252
const result = await client.callTool({
53-
name: 'transloadit_validate_assembly',
53+
name: 'transloadit_lint_assembly_instructions',
5454
arguments: {
5555
instructions,
5656
},
@@ -67,7 +67,7 @@ maybeDescribe('mcp-server validate assembly (stdio)', { timeout: 30000 }, () =>
6767

6868
it('treats warnings as fatal in strict mode', async () => {
6969
const result = await client.callTool({
70-
name: 'transloadit_validate_assembly',
70+
name: 'transloadit_lint_assembly_instructions',
7171
arguments: {
7272
instructions: {
7373
steps: {

packages/mcp-server/test/e2e/stdio.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ describe('mcp-server stdio', { timeout: 20000 }, () => {
1717
const toolsResult = await client.listTools()
1818
const toolNames = toolsResult.tools.map((tool) => tool.name)
1919

20-
expect(toolNames).toContain('transloadit_validate_assembly')
20+
expect(toolNames).toContain('transloadit_lint_assembly_instructions')
2121

2222
const result = await client.callTool({
23-
name: 'transloadit_validate_assembly',
23+
name: 'transloadit_lint_assembly_instructions',
2424
arguments: {
2525
instructions: {
2626
steps: {

0 commit comments

Comments
 (0)