We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nrwl/nx-console'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { Option } from '@nx-console/shared-schema';
import { html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { FieldValueConsumer } from './field-value-consumer-mixin';
@customElement('field-nav-item')
export class FieldNavItem extends FieldValueConsumer(LitElement) {
@property()
option: Option;
@property()
greyedOut = false;
render() {
return html`
<li
data-cy="field-nav-item-${this.option.name}"
@click="${this.handleTreeClickEvent}"
class="${this.shouldRenderError()
? 'text-error'
: this.shouldRenderChanged()
? 'text-primary'
: this.greyedOut
? 'text-mutedForeground'
: 'text-foreground'} hover:bg-fieldNavHoverBackground cursor-pointer overflow-hidden text-ellipsis"
>
${this.option.name}
</li>
`;
}
private handleTreeClickEvent() {
const event = new CustomEvent('click', {
detail: this.option.name,
});
this.dispatchEvent(event);
}
protected createRenderRoot(): Element | ShadowRoot {
return this;
}
}