Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ Fetch full documentation and component JSON schemas for specific PatternFly URLs
#### ~~Tool: fetchDocs~~ (Removed)
> "fetchDocs" has been integrated into "usePatternFlyDocs."

#### ~~Tool: componentSchemas~~ (Deprecated)
> "componentSchemas" has been integrated into "usePatternFlyDocs."
#### ~~Tool: componentSchemas~~ (Removed)
> "componentSchemas" has been integrated into "usePatternFlyDocs" and MCP resources.

## Built-in resources

Expand Down
14 changes: 0 additions & 14 deletions src/__tests__/__snapshots__/server.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ exports[`runServer should allow server to be stopped, http stop server: diagnost
[
"Registered tool: searchPatternFlyDocs",
],
[
"Registered tool: componentSchemas",
],
[
"test-server server running on HTTP transport",
],
Expand Down Expand Up @@ -113,9 +110,6 @@ exports[`runServer should allow server to be stopped, stdio stop server: diagnos
[
"Registered tool: searchPatternFlyDocs",
],
[
"Registered tool: componentSchemas",
],
[
"test-server server running on stdio transport",
],
Expand Down Expand Up @@ -643,9 +637,6 @@ exports[`runServer should attempt to run server, use default tools, http: diagno
[
"Registered tool: searchPatternFlyDocs",
],
[
"Registered tool: componentSchemas",
],
[
"test-server-2 server running on HTTP transport",
],
Expand Down Expand Up @@ -676,7 +667,6 @@ exports[`runServer should attempt to run server, use default tools, http: diagno
"registerTool": [
"usePatternFlyDocs",
"searchPatternFlyDocs",
"componentSchemas",
],
}
`;
Expand Down Expand Up @@ -729,9 +719,6 @@ exports[`runServer should attempt to run server, use default tools, stdio: diagn
[
"Registered tool: searchPatternFlyDocs",
],
[
"Registered tool: componentSchemas",
],
[
"test-server-1 server running on stdio transport",
],
Expand Down Expand Up @@ -762,7 +749,6 @@ exports[`runServer should attempt to run server, use default tools, stdio: diagn
"registerTool": [
"usePatternFlyDocs",
"searchPatternFlyDocs",
"componentSchemas",
],
}
`;
Expand Down
173 changes: 0 additions & 173 deletions src/__tests__/__snapshots__/tool.componentSchemas.test.ts.snap

This file was deleted.

27 changes: 22 additions & 5 deletions src/__tests__/__snapshots__/tool.patternFlyDocs.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,34 @@ exports[`usePatternFlyDocsTool, callback should attempt to parse parameters, wit
exports[`usePatternFlyDocsTool, callback should have a specific markdown format: Button 1`] = `
[
{
"text": "# Content for components/ipsumButton.md
"text": "# Documentation for Button (v6) [Documentation]
Source: components/loremButton.md

lorem documentation content

---

# Content for components/ipsumButton.md
Source: components/ipsumButton.md

ipsum documentation content

---

# Content for components/loremButton.md
Source: components/loremButton.md

lorem documentation content",
# Component Schema for button (v6)
This machine-readable JSON schema defines the component's props, types, and validation rules.
\`\`\`json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Button",
"type": "object",
"properties": {
"variant": {
"type": "string"
}
}
}
\`\`\`",
"type": "text",
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,19 @@ exports[`searchPatternFlyDocsTool should have a consistent return structure: str
}
`;

exports[`searchPatternFlyDocsTool, callback should have a specific markdown format: tooltip 1`] = `
exports[`searchPatternFlyDocsTool, callback should have a specific markdown format: Button 1`] = `
[
{
"text": "# Search results for PatternFly version "v6" and "button". Showing 2 exact matches.
"text": "# Search results for PatternFly version "v6" and "button". Showing 1 exact match.
1. **button**:
"usePatternFlyDocs" resource parameter "name" and "URLs"
- **Name**: button
- **URLs**:
- [Button - (v6) - Design Guidelines for the button component.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/components/button/button.md)
- [Button - (v6) - Accessibility for the button component.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/components/accessibility/button/button.md)
- [Button - (v6) - Examples for the button component.](https://raw.githubusercontent.com/patternfly/patternfly-react/476782a298df81cb78de7f3cd804f3ff8f33993c/packages/react-core/src/components/Button/examples/Button.md)
- [Button - (v6) - Design Guidelines](https://pf.org/button.md)
- **Resources**:
- **URI**: patternfly://docs/button?version=v6
- **JSON Schemas**: patternfly://schemas/button?version=v6

2. **patterns**:
"usePatternFlyDocs" resource parameter "name" and "URLs"
- **Name**: patterns
- **URLs**:
- [Actions - (v6) - The best practices for designing processes that a user can trigger by clicking or selecting a UI element, such as a button or link.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/actions/actions.md)
- [Bulk selection - (v6) - A defined method for users to select or deselect multiple items within complex content views or data tables.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/bulk-selection/bulk-selection.md)
- [Card view - (v6) - A structured layout designed to display a grid of cards in a gallery, optimizing for browsing and interaction.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/card-view/card-view.md)
- [Component usage and behavior - (v6) - Guidance on how to choose between similar components and use them appropriately based on specific user contexts and use cases.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/usage-and-behavior.md)
- [Dashboard - (v6) - A highly customizable layout that serves as a high-level overview of key metrics or performance indicators.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/dashboard/dashboard.md)
- [Filters - (v6) - The design rules for implementing filtering mechanisms that allow users to narrow down content from large datasets or complex views.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/filters/filters.md)
- [Primary-detail - (v6) - A two-pane layout that shows a list of items and corresponding details for the currently selected item.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/primary-detail/primary-detail.md)
- [Status and severity - (v6) - Guidance on the consistent and accessible use of color and iconography to communicate status and severity across the UI.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/status-and-severity/status-and-severity.md)
- **Resources**:
- **URI**: patternfly://docs/patterns?version=v6



---
Expand All @@ -50,3 +33,7 @@ exports[`searchPatternFlyDocsTool, callback should have a specific markdown form
},
]
`;

exports[`searchPatternFlyDocsTool, callback should parse parameters, exact match 1`] = `"# Search results for PatternFly version "v6" and "button". Showing 1 exact match."`;

exports[`searchPatternFlyDocsTool, callback should parse parameters, wildcard search 1`] = `"# Search results for PatternFly version "v6" and "all" resources. Only showing the first 1 results. There are 50 potential match variations. Try searching with a more specific query."`;
Loading
Loading