LearnNewsExamplesServices
Frontmatter
id7492
titleRefactor to Direct MCP Tool Definitions
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 15, 2025, 12:29 PM
updatedAtOct 15, 2025, 12:35 PM
githubUrlhttps://github.com/neomjs/neo/issues/7492
authortobiu
commentsCount0
parentIssue7477
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 15, 2025, 12:35 PM

Refactor to Direct MCP Tool Definitions

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 15, 2025, 12:29 PM

As per the official Model Context Protocol (MCP) specification, tools are defined with a specific JSON Schema-based structure (name, description, inputSchema, etc.).

Our current implementation uses an openapi.yaml file as a source of truth, which is then parsed by toolService.mjs to generate the MCP-compliant tool definitions. This is an unnecessary layer of abstraction.

This ticket covers the refactoring of the GitHub Workflow MCP server to define tools directly in code, aligning with the MCP specification and simplifying the architecture.

Acceptance Criteria

  1. The openapi.yaml file is deleted.
  2. A new module is created (e.g., ai/mcp/server/github-workflow/tools.mjs) that exports an array of tool definitions, strictly following the MCP Tool schema.
  3. toolService.mjs is refactored to import the tool definitions directly from the new module instead of parsing the OpenAPI spec.
  4. All Express-related files (index.mjs, app.mjs, config.mjs, and the routes and middleware directories) are deleted.
  5. The ai:server-github-workflow-mcp script in package.json is verified to work correctly with the refactored server.
tobiu assigned to @tobiu on Oct 15, 2025, 12:29 PM
tobiu added parent issue #7477 on Oct 15, 2025, 12:29 PM
tobiu added the enhancement label on Oct 15, 2025, 12:29 PM
tobiu added the ai label on Oct 15, 2025, 12:29 PM
tobiu referenced in commit 6b0ac23 - "Refactor to Direct MCP Tool Definitions #7492" on Oct 15, 2025, 12:34 PM
tobiu closed this issue on Oct 15, 2025, 12:35 PM
tobiu referenced in commit b9e5d04 - "Refactor to Direct MCP Tool Definitions #7492" on Oct 15, 2025, 1:02 PM