-
Notifications
You must be signed in to change notification settings - Fork 501
[Docs][Content] - MCP installation instructions #915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+400
−7
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1a69bd1
init mcp docs
madster456 4ca1edf
final
madster456 00fc019
lint
madster456 ad439bc
minor changes
madster456 82f2468
fix windsurf json example
madster456 3e6484a
merge dev into docs/content/mcp
madster456 2698f29
Merge origin/dev into docs/content/mcp - resolve conflicts
madster456 9a1e950
Merge dev into docs/content/mcp
N2D4 cfa982d
Merge dev into docs/content/mcp
N2D4 0104088
Merge dev into docs/content/mcp
N2D4 f80947b
Merge dev into docs/content/mcp
N2D4 e15a949
Merge dev into docs/content/mcp
N2D4 8eaa6cb
Merge dev into docs/content/mcp
N2D4 e2e2b22
Merge branch 'dev' into docs/content/mcp
madster456 d8ef95c
fix button
madster456 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| "use client"; | ||
| import * as React from "react"; | ||
| import { cn } from "../../lib/cn"; | ||
| import { buttonVariants } from "../ui/button"; | ||
|
|
||
| type BaseButtonProps = { | ||
| color?: 'primary' | 'secondary' | 'outline' | 'ghost', | ||
| size?: 'sm' | 'icon' | 'icon-sm', | ||
| icon?: React.ReactNode, | ||
| children: React.ReactNode, | ||
| } | ||
|
|
||
| type ButtonAsButton = BaseButtonProps & | ||
| React.ButtonHTMLAttributes<HTMLButtonElement> & { | ||
| href?: never, | ||
| }; | ||
|
|
||
| type ButtonAsLink = BaseButtonProps & | ||
| React.AnchorHTMLAttributes<HTMLAnchorElement> & { | ||
| href: string, | ||
| }; | ||
|
|
||
| type ButtonProps = ButtonAsButton | ButtonAsLink; | ||
|
|
||
| export const Button = React.forwardRef< | ||
| HTMLButtonElement | HTMLAnchorElement, | ||
| ButtonProps | ||
| >(({ className, color = 'secondary', size = 'sm', icon, href, children, ...props }, ref) => { | ||
| const buttonContent = ( | ||
| <> | ||
| {icon && <span className="inline-flex items-center justify-center w-3.5 h-3.5">{icon}</span>} | ||
| {children} | ||
| </> | ||
| ); | ||
|
|
||
| const buttonClasses = cn( | ||
| buttonVariants({ | ||
| color, | ||
| size, | ||
| className: 'gap-2 no-underline hover:no-underline' | ||
| }), | ||
| className | ||
| ); | ||
|
|
||
| if (href) { | ||
| return ( | ||
| <a | ||
| role="button" | ||
| href={href} | ||
| className={buttonClasses} | ||
| ref={ref as React.Ref<HTMLAnchorElement>} | ||
| {...(props as React.AnchorHTMLAttributes<HTMLAnchorElement>)} | ||
| > | ||
| {buttonContent} | ||
| </a> | ||
| ); | ||
| } | ||
|
|
||
| return ( | ||
| <button | ||
| ref={ref as React.Ref<HTMLButtonElement>} | ||
| className={buttonClasses} | ||
| {...(props as React.ButtonHTMLAttributes<HTMLButtonElement>)} | ||
| > | ||
| {buttonContent} | ||
| </button> | ||
| ); | ||
| }); | ||
|
|
||
| Button.displayName = "Button"; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.