Skip to content

MCP plugin: ESM support#2535

Description

What version of kubb is running?

4.26.0

What kind of platform do you use?

None

Your kubb.config.ts config file?

generated server.ts is failing import resolution when I chose to keep `.ts` extensions and utilise node ability to run TS as is 

`.js` extensions are missing for MCP and stdio imports


import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';


would be great to support this setup so I don't need to build MCP server and run the code as is

Swagger/OpenAPI file?

What version of external packages are you using(@tanstack-query, MSW, React, Vue, ...)

What steps can reproduce the bug?

generate code and run it with node instead of tsx

How often does this bug happen?

None

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions