Package Exports
- @fastertools/ftl-sdk-ts
- @fastertools/ftl-sdk-ts/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fastertools/ftl-sdk-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@fastertools/ftl-sdk-js
JavaScript SDK for building FTL MCP (Model Context Protocol) tools.
Installation
npm install @fastertools/ftl-sdk-jsUsage
import { createHandler } from '@fastertools/ftl-sdk-js';
const handler = createHandler({
name: 'my-tool',
version: '1.0.0',
description: 'My awesome FTL tool',
tools: {
myTool: {
description: 'Does something useful',
parameters: {
input: { type: 'string', required: true }
},
execute: async ({ input }) => {
return `Processed: ${input}`;
}
}
}
});
export default handler;Documentation
For full documentation, visit https://github.com/anthropics/ftl-cli
License
Apache-2.0