Skip to content

Commit 7a2188f

Browse files
authored
docs: update usage, architecture, maintenance (#143)
* contributing, node maintenance schedule * architecture, recent adds for features and planning * development, minor adds for node maintenance, future work * usage, add recent adds, refactors for tools, resources
1 parent 396b0d5 commit 7a2188f

File tree

6 files changed

+158
-75
lines changed

6 files changed

+158
-75
lines changed

CONTRIBUTING.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Development pull requests (PRs) should be opened against the default branch.
5959
> If your pull request work contains any of the following warning signs
6060
> - has no related issue
6161
> - ignores existing code style
62-
> - out of sync commits (not rebased against the default branch)
62+
> - out-of-sync commits (not rebased against the default branch)
6363
> - poorly structured commits and messages
6464
> - any one commit relies on other commits to work (beyond "review requested updates")
6565
> - dramatic file restructures that attempt complex behavior
@@ -116,7 +116,7 @@ Basic code style guidelines are generally enforced by ESLint, but there are addi
116116
- Tests should focus on functionality.
117117
- Tests should not be written for external packages. That is the responsibility of the external package, or it shouldn't be used.
118118

119-
#### Typescript
119+
#### TypeScript
120120
- Typings within the project may be generally loose for initial development but should be refined over time.
121121
- Typings exposed to consumers should always attempt to maintain consistency.
122122
- Typings for tests are less of a focus than functionality checks.
@@ -142,9 +142,28 @@ npm run test:integration
142142

143143
This mode leverages the `--mode test` and `--mode-test-url` flags to redirect resource lookups to a fixture server instead of live or local resources.
144144

145+
## Maintenance: Node.js engine bumps
146+
147+
The `Node.js` engine requirements are updated on a predictable biannual schedule to ensure the server remains secure, leverages modern runtime features, and provides stability for consumers.
148+
149+
> Our engine requirements are intended to be the minimum to run the MCP server. They are not intended to be a maximum, as newer versions may introduce breaking changes or require additional configuration.
150+
151+
### Schedule and process
152+
- **Timing**: Bumps are generally targeted for **Spring (April/May)** and **Fall (October/November)**, aligned with the [Node.js release schedule](https://nodejs.org/en/about/previous-releases) as versions enter or exit LTS.
153+
- **Security**: Out-of-band updates may be performed if critical security considerations arise.
154+
- **Version Targets**:
155+
- Focus on the latest **even-numbered (LTS/Stable)** versions (e.g., bumping to 22, 24, or 26).
156+
- GitHub Workflows should be updated to include the latest available even version.
157+
158+
### Acceptance criteria for bumps
159+
- Update `package.json` engine requirements.
160+
- Update related GitHub Action workflows (CI/CD).
161+
- Update "Environmental Requirements" in documentation.
162+
- Ensure all tests pass on the new target version.
163+
145164
## AI agent
146165

147-
### User Section
166+
### User section
148167

149168
Current agent interaction can be triggered with the chat command
150169

@@ -157,12 +176,12 @@ For detailed information on agent interaction, see [guidelines/README.md](./guid
157176
As developers, we often have our own preferred workflows, and that includes working with AI agents. To that point, we've added agent guidance
158177
to allow customization for your work environment through a tool-agnostic git-ignored directory `./.agent` in the root of the project.
159178

160-
#### Noting AI Agent contributions
179+
#### Noting AI agent contributions
161180

162181
Please reference [PatternFly's AI-assisted development guidelines](https://github.com/patternfly/.github/blob/main/CONTRIBUTING.md) for guidance on how to
163182
acknowledge AI agent contributions.
164183

165-
### Agent Only
184+
### Agent only
166185
Agents: This repository contains a hierarchical guideline system. Agents should review agent-only comment blocks.
167186

168187
<!--

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is intended to be extensible to meet the needs of different teams and project
1010
- [Node.js 20+](https://nodejs.org/)
1111
- NPM (or equivalent package manager)
1212

13-
## Quick Start
13+
## Quick start
1414

1515
The PatternFly MCP Server supports multiple configurations; see the [usage documentation](./docs/usage.md#mcp-client-configuration) for details.
1616

@@ -94,6 +94,10 @@ main();
9494

9595
For comprehensive usage, development, and project state [read the docs](./docs/README.md).
9696

97+
- **Architecture**: Learn about our [hybrid documentation model and data sources](./docs/architecture.md#data-sources-and-integrations).
98+
- **Usage**: Detailed guide on [built-in tools and resources](./docs/usage.md).
99+
- **Development**: Reference for [CLI options and tool plugins](./docs/development.md).
100+
97101
## Contributing
98102

99103
Contributing? Guidelines can be found here [CONTRIBUTING.md](./CONTRIBUTING.md).

docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# PatternFly MCP Server Documentation
1+
# PatternFly MCP Server documentation
22

33
Welcome to the PatternFly MCP Server documentation. This guide is organized by user intent.
44

55
### 🚀 Usage
66
- **[MCP Tools and Resources](./usage.md)**: Use built-in tools and resources like `searchPatternFlyDocs` and `usePatternFlyDocs`.
77
- **[Client Configuration](./usage.md)**: Configure the server for your environment.
88

9-
### 🛠️ Developer Reference
9+
### 🛠️ Developer reference
1010
- **[CLI Reference](./development.md#cli-usage)**: Reference of server options.
1111
- **[API Reference](./development.md#programmatic-usage)**: Using the server as a base library in your own Node.js MCP.
1212
- **[Examples](./examples/README.md)**: Standalone snippets for HTTP transport, embedding, and custom tools.
1313

14-
### 🏗️ Architecture & Design
15-
- **[System Architecture](./architecture.md)**: Design concept and architecture.
14+
### 🏗️ Architecture & design
15+
- **[System Architecture](./architecture.md)**: Architecture and roadmap.
1616
- **[Roadmap](./architecture.md#roadmap)**: Future plans for the project.

docs/architecture.md

Lines changed: 65 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,41 @@ The PatternFly MCP server is centered around the concept of a library for all th
66

77
### The library, PatternFly integration
88

9-
PatternFly integration is centered around the following current, and future, tools:
10-
- Searching for a resource
11-
- Use and read a resource
12-
- Finding, or discovering, a resource
9+
The current PatternFly MCP server is centered on a **Resource Metadata** discovery layer that enables the following core concepts:
1310

14-
#### Search PatternFly documentation
11+
- **Searching for resources**: Querying the library for relevant documentation and components.
12+
- **Reading resources**: Accessing full documentation and machine-readable schemas.
13+
- **Discovering resources**: Navigating the library via resource indexes and URI templates.
1514

16-
A built-in tool for searching PatternFly documentation and resources integrated into the server.
15+
> [A more in-depth version of our **hybrid documentation** concept is currently in progress](#hybrid-documentation-in-progress).
1716
18-
#### Use PatternFly documentation
17+
#### Discovery layer (resource metadata)
1918

20-
A built-in tool for reading and using PatternFly documentation and resources integrated into the server.
19+
Instead of a standalone "discovery" tool, the server implements a robust **Resource Metadata system**. This system:
20+
- Generates automated indexes for all available documentation (`patternfly://docs/index`), components (`patternfly://components/index`), and schemas (`patternfly://schemas/index`).
21+
- Supports completion logic for MCP clients, allowing LLMs and users to browse available resources effortlessly.
22+
- Provides parameterized URI templates (RFC 6570) like `patternfly://docs/{name}` for direct, predictable access.
23+
- Provides generated `meta` resources that document available MCP resource template parameters for MCP clients that do not have completion (`patternfly://docs/meta`, `patternfly://components/meta`, `patternfly://schemas/meta`).
2124

22-
#### Find and discover PatternFly documentation
25+
> This discovery layer treats the MCP server as a living library. It enables the server to provide updates for all built-in tools and resources while maintaining a tailored experience based on user patterns (e.g., tailoring responses for designers vs. developers).
2326
24-
An evolving "future" tool (still undergoing refinement) for finding PatternFly documentation and resources not directly integrated into the server.
27+
#### Hybrid documentation (in-progress)
2528

26-
> This tool treats the MCP server as a library. Like a library, sometimes you need an interlibrary loan to gain access to the resource you need.
27-
>
28-
> The interlibrary concept is key because it starts to highlight that this third MCP tool could
29-
> - Help provide updates for all PatternFly MCP server built-in tools, resources, and prompts
30-
> - Maintain up-to-date documentation and resources
31-
> - Provide a tailored experience for users based on their use patterns (e.g., a designer's experience is tailored to design, a developer's experience is tailored to development)
29+
We'll be introducing more updates based on our hybrid documentation concept in upcoming releases. The base concept balances stability and currentness by integrating core guidelines and standards directly into the server while syncing from the latest available PatternFly implementation.
30+
- **Baseline data**: Core guidelines and standards integrated directly into the server for standalone purposes, quick starts, and immediate access.
31+
- **Dynamic content**: Content synced from the latest available PatternFly implementation while you work, ensuring the LLM always has access to the latest documentation and patterns.
32+
33+
### Data sources and integrations
34+
35+
The PatternFly MCP server aggregates content from multiple official sources to provide a comprehensive development resource.
36+
37+
#### PatternFly ai-helpers
38+
The server integrates the [patternfly/ai-helpers](https://github.com/patternfly/ai-helpers) repository to provide specialized, LLM-optimized guidance. This integration powers several key resource categories:
39+
- **AI Guidance**: Specialized patterns for React Charts, Chatbot, and general React development.
40+
- **Styling Standards**: CSS and styling requirements tailored for AI code generation.
41+
- **Prompt Engineering**: Includes `ai-prompt-guidance.md` to help users write more effective prompts for PatternFly.
42+
43+
These helpers are a core part of our [Hybrid documentation](#hybrid-documentation-in-progress), acting as the bridge between stable design patterns and dynamic implementation details.
3244

3345
### Tools, resources, and prompts as customizable plugins
3446

@@ -48,60 +60,74 @@ Key goals aided by moving towards plugins:
4860
flowchart TD
4961
subgraph A1["MCP server"]
5062
subgraph E1["Session context"]
51-
subgraph F1["Logging, stats context"]
63+
subgraph F1["Logging, Resource discovery context"]
5264
subgraph F1A["Built-In tools"]
53-
F1AA(["Search PF docs"])
54-
F1AB(["Use PF docs"])
65+
F1AA(["Search PatternFly docs"])
66+
F1AB(["Use PatternFly docs"])
5567
end
56-
F1B --> F1A
57-
F1B(["Built-In resources"])
68+
F1B <--> F1A
69+
F1B(["Built-In resources & discovery layer"])
5870
end
5971
end
6072
D1(["Server proxy"])
73+
D1 <--> F1
74+
subgraph G1["Child process host"]
75+
G1A(["Tools host & isolation sandbox"])
76+
end
77+
D1 <--> G1
6178
end
62-
B1(["Local external tools, prompts, resources"])
79+
B1(["Local and remote external tools, prompts, resources"])
6380
B1 <--> D1
6481
```
6582

6683
## Roadmap
6784

6885
### Planned features and integrations
6986

70-
To get towards our future state, there are a series of planned features and integrations.
87+
Our roadmap focuses on expanding the server's reach and providing a more integrated development experience.
7188

72-
Current focus:
73-
- **YAML configuration for remote tools, resources and prompts** - YAML configuration for remote MCP tools, resources, and prompt plugins
74-
- **MCP resource, prompts, and helper function sharing** - A way to share MCP resources, prompts, and helper functions towards external tool plugins.
75-
- **Find PatternFly documentation tool** - A tool that reaches out to known PatternFly documentation sources, caches locally, and integrates the results with existing MCP tools and resources.
76-
- **PatternFly API integration** - A JSON API for PatternFly documentation, components, and patterns.
77-
- **Hosted resource for sharing MCP tools, resources, prompts** - Shared tooling customization through PatternFly AI tooling repository (or equivalent)
89+
#### In-progress
90+
- **Hybrid documentation**: A JSON API for documentation, components, and patterns that ensures the server is always in sync with the latest releases.
91+
- **PatternFly API Integration**: Embedded integration into the server for standalone purposes, quick starts, and immediate access.
92+
- **Child Process Lifecycle Management**: Background process while you work for API synchronization.
7893

79-
Under consideration:
80-
- **MCP client** - A tailored MCP client specific for the PatternFly MCP server.
81-
- **Auditing for shared tools, resources, and prompts** - An auditing tool that helps you refine your shared tools, resources, and prompts.
82-
- **Containerized PatternFly MCP server, client, and LLM** - A containerized PatternFly MCP server, client, and embedded LLM. Use your own PatternFly chat client resource.
94+
#### In-planning and under review
95+
- **Resource-Tool Integration**: Directly integrate MCP resources into tool responses to reduce token counts and allow tools to accept URI links as inputs.
96+
- **Environment & Analysis Tooling**: A third built-in tool focused on environment snapshots, code analysis, and whitelisted resource access for local project analysis.
97+
- **Agentless MCP Client**: An MCP client for use without an LLM, allowing PatternFly tooling to integrate into CLI tools and CI/CD pipelines.
98+
- **YAML Configuration**: Remote tool, resource, and prompt plugins configured via YAML.
99+
- **Resource/Helper Sharing**: Mechanisms to share resources and helper functions across external tool plugins.
83100

84101
#### Future state
85102

86103
```mermaid
87104
flowchart TD
88105
subgraph A1["MCP server"]
89106
subgraph E1["Session context"]
90-
subgraph F1["Logging, stats context"]
107+
subgraph F1["Logging, Resource discovery context"]
91108
F1C(["Built-In prompts"])
92109
F1C <--> F1A
93110
subgraph F1A["Built-In tools"]
94-
F1AA(["Search PF docs"])
95-
F1AB(["Use PF docs"])
96-
F1AC(["Find PF docs"])
111+
F1AA(["Search PatternFly docs"])
112+
F1AB(["Use PatternFly docs"])
113+
F1AC(["Analyze environment"])
97114
end
98115
F1B <--> F1A
99-
F1B(["Built-In resources"])
116+
F1B(["Built-In resources & discovery layer"])
100117
end
101118
end
102-
F1B --> D1
103119
D1(["Server proxy"])
120+
D1 <--> F1
121+
subgraph G1["Child process host"]
122+
G1A(["Tools host & isolation sandbox"])
123+
G1B(["API synchronization process"])
124+
end
125+
D1 <--> G1
126+
end
127+
subgraph H1["Agentless client layer"]
128+
H1A(["CLI & Automation integration"])
104129
end
130+
A1 <--> H1
105131
B1(["Local and remote external tools, prompts, resources"])
106132
B1 <--> D1
107133
```

0 commit comments

Comments
 (0)