hello
Test connectivity to Jimeng MCP Server's AI image and video generation services by sending a greeting message to verify the server is operational.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "hello"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- src/server.ts:20-26 (handler)The 'hello' tool is defined and registered directly within the 'createServer' function in 'src/server.ts' using the 'server.tool' method. It accepts a 'name' string as an input and returns a greeting message.
server.tool( "hello", { name: z.string() }, async ({ name }) => ({ content: [{ type: "text", text: `你好,${name}!` }] }) );