Skip to main content
Glama
kurdin

GitHub Repos Manager MCP Server

pull-requests.cjs757 B
// src/handlers/pull-requests.cjs const pullRequestFormatters = require("../formatters/pull-requests.cjs"); async function listPRs(args, apiService) { const { owner, repo, state = "open", per_page = 10 } = args; if (!owner || !repo) { throw new Error( "Owner and repository name are required for listPRs. Please provide them in arguments or ensure a default is set." ); } const params = new URLSearchParams({ state, per_page: per_page.toString(), sort: "updated", direction: "desc", }); const prs = await apiService.makeGitHubRequest( `/repos/${owner}/${repo}/pulls?${params.toString()}` ); return pullRequestFormatters.formatListPRsOutput(prs, owner, repo, state); } module.exports = { listPRs, };

Latest Blog Posts

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/kurdin/github-repos-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server