import { gql } from 'graphql-tag';
export const SEARCH_ISSUES_QUERY = gql`
query SearchIssues(
$filter: IssueFilter
$first: Int
$after: String
$orderBy: PaginationOrderBy
) {
issues(
filter: $filter
first: $first
after: $after
orderBy: $orderBy
) {
pageInfo {
hasNextPage
endCursor
}
nodes {
id
identifier
title
description
url
state {
id
name
type
color
}
assignee {
id
name
email
}
team {
id
name
key
},
project {
id
name
},
priority
labels {
nodes {
id
name
color
}
}
createdAt
updatedAt
}
}
}
`;
export const GET_TEAMS_QUERY = gql`
query GetTeams {
teams {
nodes {
id
name
key
description
states {
nodes {
id
name
type
color
}
}
labels {
nodes {
id
name
color
}
}
}
}
}
`;
export const GET_USER_QUERY = gql`
query GetUser {
viewer {
id
name
email
teams {
nodes {
id
name
key
}
}
}
}
`;
export const SEARCH_PROJECTS_QUERY = gql`
query SearchProjects($filter: ProjectFilter) {
projects(filter: $filter) {
nodes {
id
name
description
url
teams {
nodes {
id
name
}
}
}
}
}
`;
export const GET_PROJECT_QUERY = gql`
query GetProject($id: String!) {
project(id: $id) {
id
name
description
url
teams {
nodes {
id
name
}
}
}
}
`;
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cpropster/linear-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server