@codedprojects/api-mapper-client
v1.0.0
Published
Client SDK for the CodedProjects AI ApiMapper Runtime
Maintainers
Readme
@codedprojects/api-mapper-client
TypeScript client SDK for discovering and invoking AI ApiMapper Runtime tools from JavaScript and TypeScript applications.
Install
npm install @codedprojects/api-mapper-clientWhat it provides
- runtime tool discovery,
- runtime system prompt loading,
- tool invocation over MCP-compatible HTTP endpoints,
- API key, delegated bearer token, and OAuth2 client credentials authentication helpers.
Quick start
import { ApiMapperClient, ApiKeyCredentialProvider } from "@codedprojects/api-mapper-client";
const client = new ApiMapperClient({
baseUrl: "https://runtime.example.com",
tenantId: "11111111-1111-1111-1111-111111111111",
clientId: "my-ai-client",
credentials: new ApiKeyCredentialProvider("replace-with-your-api-key"),
});
const tools = await client.getTools();
console.log(tools.map((tool) => tool.name));License
MIT
