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
16 changes: 8 additions & 8 deletions packages/atxp/src/call-tool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ describe('Call Tool', () => {

it('should map commands to correct tool names', () => {
const toolMap: Record<string, string> = {
search: 'search',
image: 'generate_image',
music: 'generate_music',
video: 'generate_video',
search: 'search_search',
image: 'image_create_image',
music: 'music_create',
video: 'create_video',
x: 'x_live_search',
};

expect(toolMap.search).toBe('search');
expect(toolMap.image).toBe('generate_image');
expect(toolMap.music).toBe('generate_music');
expect(toolMap.video).toBe('generate_video');
expect(toolMap.search).toBe('search_search');
expect(toolMap.image).toBe('image_create_image');
expect(toolMap.music).toBe('music_create');
expect(toolMap.video).toBe('create_video');
expect(toolMap.x).toBe('x_live_search');
});
});
Expand Down
16 changes: 8 additions & 8 deletions packages/atxp/src/commands/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { describe, it, expect } from 'vitest';
describe('Tool Commands', () => {
describe('search command', () => {
const SERVER = 'search.mcp.atxp.ai';
const TOOL = 'search';
const TOOL = 'search_search';

it('should have correct server', () => {
expect(SERVER).toBe('search.mcp.atxp.ai');
});

it('should have correct tool name', () => {
expect(TOOL).toBe('search');
expect(TOOL).toBe('search_search');
});

it('should validate query is required', () => {
Expand All @@ -33,14 +33,14 @@ describe('Tool Commands', () => {

describe('image command', () => {
const SERVER = 'image.mcp.atxp.ai';
const TOOL = 'generate_image';
const TOOL = 'image_create_image';

it('should have correct server', () => {
expect(SERVER).toBe('image.mcp.atxp.ai');
});

it('should have correct tool name', () => {
expect(TOOL).toBe('generate_image');
expect(TOOL).toBe('image_create_image');
});

it('should validate prompt is required', () => {
Expand All @@ -55,14 +55,14 @@ describe('Tool Commands', () => {

describe('music command', () => {
const SERVER = 'music.mcp.atxp.ai';
const TOOL = 'generate_music';
const TOOL = 'music_create';

it('should have correct server', () => {
expect(SERVER).toBe('music.mcp.atxp.ai');
});

it('should have correct tool name', () => {
expect(TOOL).toBe('generate_music');
expect(TOOL).toBe('music_create');
});

it('should validate prompt is required', () => {
Expand All @@ -77,14 +77,14 @@ describe('Tool Commands', () => {

describe('video command', () => {
const SERVER = 'video.mcp.atxp.ai';
const TOOL = 'generate_video';
const TOOL = 'create_video';

it('should have correct server', () => {
expect(SERVER).toBe('video.mcp.atxp.ai');
});

it('should have correct tool name', () => {
expect(TOOL).toBe('generate_video');
expect(TOOL).toBe('create_video');
});

it('should validate prompt is required', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/atxp/src/commands/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { callTool } from '../call-tool.js';
import chalk from 'chalk';

const SERVER = 'image.mcp.atxp.ai';
const TOOL = 'generate_image';
const TOOL = 'image_create_image';

export async function imageCommand(prompt: string): Promise<void> {
if (!prompt || prompt.trim().length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/atxp/src/commands/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { callTool } from '../call-tool.js';
import chalk from 'chalk';

const SERVER = 'music.mcp.atxp.ai';
const TOOL = 'generate_music';
const TOOL = 'music_create';

export async function musicCommand(prompt: string): Promise<void> {
if (!prompt || prompt.trim().length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/atxp/src/commands/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { callTool } from '../call-tool.js';
import chalk from 'chalk';

const SERVER = 'search.mcp.atxp.ai';
const TOOL = 'search';
const TOOL = 'search_search';

export async function searchCommand(query: string): Promise<void> {
if (!query || query.trim().length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/atxp/src/commands/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { callTool } from '../call-tool.js';
import chalk from 'chalk';

const SERVER = 'video.mcp.atxp.ai';
const TOOL = 'generate_video';
const TOOL = 'create_video';

export async function videoCommand(prompt: string): Promise<void> {
if (!prompt || prompt.trim().length === 0) {
Expand Down