PatternFly MCP code examples for tooling plugins and development use cases.
- embeddedBasicStdio.js - Embedding a basic STDIO transport configuration and usage
- embeddedBasicHttp.js - Embedding a basic HTTP transport configuration and usage
- embeddedInlineTool.ts - Embedding the server and using a custom inline tool to make your own MCP server
- toolPluginGitStatus.js - A custom tool using Git
- toolPluginHelloWorld.js - A basic JS tool plugin example
Examples should follow the basic guidelines:
- This index is updated with an example link
- Filenames are lowerCamelCased
- Keep examples short; this is an introduction to the project
- Examples are either JS or TS with ESM import/exports
- Comments/annotations are used to explain key concepts
- Examples are linted from the project's linting configs with
npm run test:lintnpm run test:typesnpm run test:spell-docs
- Examples are tested and can be run without errors