// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`PatternFly MCP, HTTP Transport should concatenate headers and separator with two local files 1`] = `
"# Documentation from documentation/guidelines/README.md
# PatternFly Guidelines
Core development rules for AI coders building PatternFly React applications.
## Related Files
- [**Component Rules**](./component-architecture.md) - Component structure requirements
- [**Styling Rules**](./styling-standards.md) - CSS and styling requirements
- [**Layout Rules**](../components/layout/README.md) - Page structure requirements
## Essential Rules
### Version Requirements
- ✅ **ALWAYS use PatternFly v6** - Use \`pf-v6-\` prefixed classes only
- ❌ **NEVER use legacy versions** - No \`pf-v5-\`, \`pf-v4-\`, or \`pf-c-\` classes
- ✅ **Match component and CSS versions** - Ensure compatibility
### Component Usage Rules
- ✅ **Use PatternFly components first** - Before creating custom solutions
- ✅ **Compose components** - Build complex UIs by combining PatternFly components
- ❌ **Don't override component internals** - Use provided props and APIs
### Tokenss
- ✅ **ALWAYS use PatternFly tokens** - Use \`pf-t-\` prefixed classes over \`pf-v6-\` classes (e.g., \`var(--pf-t--global--spacer--sm)\` not \`var(--pf-v6-global--spacer--sm)\`)
### Text Components (v6+)
\`\`\`jsx
// ✅ Correct
import { Content } from '@patternfly/react-core';
<Content component="h1">Title</Content>
// ❌ Wrong - Don't use old Text components
<Text component="h1">Title</Text>
\`\`\`
### Icon Usage
\`\`\`jsx
// ✅ Correct - Wrap with Icon component
import { Icon } from '@patternfly/react-core';
import { UserIcon } from '@patternfly/react-icons';
<Icon size="md"><UserIcon /></Icon>
\`\`\`
### Styling Rules
- ✅ **Use PatternFly utilities** - Before writing custom CSS
- ✅ **Use semantic design tokens** for custom CSS (e.g., \`var(--pf-t--global--text--color--regular)\`), not base tokens with numbers (e.g., \`--pf-t--global--text--color--100\`) or hardcoded values
- ❌ **Don't mix PatternFly versions** - Stick to v6 throughout
### Documentation Requirements
1. **Check [PatternFly.org](https://www.patternfly.org/) first** - Primary source for APIs
2. **Check the [PatternFly React GitHub repository](https://github.com/patternfly/patternfly-react)** for the latest source code, examples, and release notes
3. **Use "View Code" sections** - Copy working examples
4. **Reference version-specific docs** - Match your project's PatternFly version
5. **Provide context to AI** - Share links and code snippets when asking for help
> For the most up-to-date documentation, use both the official docs and the source repositories. When using AI tools, encourage them to leverage context7 to fetch the latest documentation from these sources.
### Accessibility Requirements
- ✅ **WCAG 2.1 AA compliance** - All components must meet standards
- ✅ **Proper ARIA labels** - Use semantic markup and labels
- ✅ **Keyboard navigation** - Ensure full keyboard accessibility
- ✅ **Focus management** - Logical focus order and visible indicators
## Quality Checklist
- [ ] Uses PatternFly v6 classes only
- [ ] Components render correctly across browsers
- [ ] Responsive on mobile and desktop
- [ ] Keyboard navigation works
- [ ] Screen readers can access content
- [ ] No console errors or warnings
- [ ] Performance is acceptable
## When Issues Occur
1. **Check [PatternFly.org](https://www.patternfly.org/)** - Verify component API
2. **Inspect elements** - Use browser dev tools for PatternFly classes
3. **Search [GitHub issues](https://github.com/patternfly/patternfly-react/issues)** - Look for similar problems
4. **Provide context** - Share code snippets and error messages
See [Common Issues](../troubleshooting/common-issues.md) for specific problems.
---
# Documentation from documentation/components/README.md
# PatternFly React Components
You can find documentation on PatternFly's components at [PatternFly All components documentation](https://www.patternfly.org/components/all-components)
## Specific info on Components
- [AboutModal](https://www.patternfly.org/components/about-modal)
- [Accordion](https://raw.githubusercontent.com/patternfly/patternfly-org/refs/heads/main/packages/documentation-site/patternfly-docs/content/components/accordion/accordion.md)
- [ActionList](https://www.patternfly.org/components/action-list)
- [Alert](https://www.patternfly.org/components/alert)
- [ApplicationLauncher](https://www.patternfly.org/components/application-launcher)
"
`;
exports[`PatternFly MCP, HTTP Transport should concatenate headers and separator with two remote files 1`] = `
"# Documentation from https://www.patternfly.org/notARealPath/README.md
# PatternFly Development Rules
This is a generated offline fixture used by the MCP external URLs test.
Essential rules and guidelines working with PatternFly applications.
## Quick Navigation
### 🚀 Setup & Environment
- **Setup Rules** - Project initialization requirements
- **Quick Start** - Essential setup steps
- **Environment Rules** - Development configuration
---
# Documentation from https://www.patternfly.org/notARealPath/AboutModal.md
# Test Document
This is a test document for mocking remote HTTP requests."
`;
exports[`PatternFly MCP, HTTP Transport should expose expected tools and stable shape 1`] = `
{
"toolNames": [
"componentSchemas",
"fetchDocs",
"usePatternFlyDocs",
],
}
`;
exports[`PatternFly MCP, HTTP Transport should initialize MCP session over HTTP 1`] = `
{
"baseUrl": "http://127.0.0.1:5001",
"name": "@patternfly/patternfly-mcp",
"version": "2024-11-05",
}
`;