Skip to main content
Glama
mo666-med

Enhanced Miyabi MCP Server

by mo666-med

miyabi__handle_development_task

Process development tasks by creating issues and executing agents to handle coding projects and technical workflows.

Instructions

開発タスクを処理します(Issue作成→Agent実行)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes開発タスクの内容
projectPathNoプロジェクトのパス(オプション)

Implementation Reference

  • The core handler implementation for the 'miyabi__handle_development_task' tool. It returns a structured response simulating the processing of a development task, including steps like issue creation, agent execution, and PR creation.
    case "miyabi__handle_development_task": {
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            status: "success",
            message: "開発タスクを処理しました",
            steps: [
              "1. Issueを自動作成",
              "2. Miyabi Agentを実行",
              "3. PRを作成"
            ],
            prompt: args.prompt,
            projectPath: args.projectPath || "デフォルトプロジェクト"
          }, null, 2)
        }]
      };
    }
  • The input schema definition for the 'miyabi__handle_development_task' tool, specifying the required 'prompt' parameter and optional 'projectPath'.
    {
      name: "miyabi__handle_development_task",
      description: "開発タスクを処理します(Issue作成→Agent実行)",
      inputSchema: {
        type: "object",
        properties: {
          prompt: {
            type: "string",
            description: "開発タスクの内容"
          },
          projectPath: {
            type: "string",
            description: "プロジェクトのパス(オプション)"
          }
        },
        required: ["prompt"]
      }
    },
  • src/server.js:30-33 (registration)
    Registers the MCP listTools request handler, which calls listToolsHandler() that includes the 'miyabi__handle_development_task' tool in its returned list.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      const tools = listToolsHandler();
      return { tools };
    });
  • src/server.js:36-54 (registration)
    Registers the MCP callTool request handler, which dispatches tool calls (including 'miyabi__handle_development_task') to callToolHandler for execution.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: args } = request.params;
      
      try {
        const result = callToolHandler(name, args || {});
        return result;
      } catch (error) {
        return {
          content: [{
            type: "text",
            text: JSON.stringify({
              error: error.message,
              toolName: name
            }, null, 2)
          }],
          isError: true
        };
      }
    });
  • The dispatcher function that routes tool calls to their specific handlers, including the case for 'miyabi__handle_development_task'.
    export function callToolHandler(toolName, args) {
      switch (toolName) {
        case "miyabi__analyze_task_intent": {
          const isDev = isDevelopmentTask(args.prompt);
          const isArticle = isArticleWritingTask(args.prompt);
          return {
            content: [{
              type: "text",
              text: JSON.stringify({
                isDevelopmentTask: isDev,
                isArticleWritingTask: isArticle,
                taskType: isArticle ? "article" : (isDev ? "development" : "general"),
                prompt: args.prompt
              }, null, 2)
            }]
          };
        }
    
        case "miyabi__auto_dispatch": {
          const isDev = isDevelopmentTask(args.prompt);
          const isArticle = isArticleWritingTask(args.prompt);
          
          if (isArticle) {
            return {
              content: [{
                type: "text",
                text: JSON.stringify({
                  action: "handle_article",
                  message: "記事執筆タスクとして処理します",
                  nextStep: "miyabi__generate_articleツールを使用してください"
                }, null, 2)
              }]
            };
          } else if (isDev) {
            return {
              content: [{
                type: "text",
                text: JSON.stringify({
                  action: "handle_development",
                  message: "開発タスクとしてMiyabiで処理します",
                  nextStep: "miyabi__handle_development_taskツールを使用してください"
                }, null, 2)
              }]
            };
          } else {
            return {
              content: [{
                type: "text",
                text: JSON.stringify({
                  action: "return_to_manus",
                  message: "一般タスクとしてManusで処理します"
                }, null, 2)
              }]
            };
          }
        }
    
        case "miyabi__handle_development_task": {
          return {
            content: [{
              type: "text",
              text: JSON.stringify({
                status: "success",
                message: "開発タスクを処理しました",
                steps: [
                  "1. Issueを自動作成",
                  "2. Miyabi Agentを実行",
                  "3. PRを作成"
                ],
                prompt: args.prompt,
                projectPath: args.projectPath || "デフォルトプロジェクト"
              }, null, 2)
            }]
          };
        }
    
        case "miyabi__generate_article": {
          return {
            content: [{
              type: "text",
              text: JSON.stringify({
                status: "success",
                message: "記事生成を開始します",
                article: {
                  title: args.articleTitle,
                  author: args.articleAuthor || "不明",
                  source: args.articleSource || "不明",
                  url: args.articleUrl,
                  perspective: args.perspective,
                  angle: args.angle,
                  deepDivePoints: args.deepDivePoints || "指定なし"
                },
                nextSteps: [
                  "1. 参照元の完全読解と分析",
                  "2. 超詳細な論文構成案の策定",
                  "3. 補足情報の調査と引用準備",
                  "4. 品格ある文体での本文執筆(8000字以上)",
                  "5. 引用文献リストの作成(最大10本)",
                  "6. 最終校正と整形",
                  "7. 末尾LLMOまとめ",
                  "8. ハッシュタグ(10個)",
                  "9. サムネイル画像の生成prompt(3点)"
                ]
              }, null, 2)
            }]
          };
        }
    
        default:
          throw new Error(`Unknown tool: ${toolName}`);
      }
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mo666-med/enhanced-miyabi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server