Bundler
Extend the bundler configuration for your MCP server.
For the complete documentation index, see llms.txt. Markdown variants of every page are available by appending .md to the URL.xmcp uses rspack to bundle your tools. You can customize the configuration by adding the following to your xmcp.config.ts file:
const config: XmcpConfig = {
bundler: (config) => {
// Add raw loader for images to get them as base64
config.module?.rules?.push({
test: /\.(png|jpe?g|gif|svg|webp)$/i,
type: "asset/inline",
});
return config;
},
};