Usage
npm i @xsmcp/client-http
pnpm add @xsmcp/client-http
yarn add @xsmcp/client-http
bun add @xsmcp/client-http
createHttpTransport
import { createClient } from '@xsmcp/client-shared'
import { createHttpTransport } from '@xsmcp/client-http'
const client = createClient({
name: 'example-client',
version: '1.0.0',
transport: createHttpTransport({ url: 'http://localhost:3000/mcp' }),
})
createHttpClient
import { createClient } from '@xsmcp/client-shared'
import { createHttpTransport } from '@xsmcp/client-http'
import { createHttpClient } from '@xsmcp/client-http'
const client = createClient({
const client = createHttpClient({
name: 'example-client',
version: '1.0.0',
transport: createHttpTransport({ url: 'http://localhost:3000/mcp' }),
})
}, { url: 'http://localhost:3001' })