Skip to main content
Glama
get_all.py796 B
import httpx import json from utils.config import JiraConfig async def get_all_projects(): try: async with httpx.AsyncClient() as client: response = await client.get( f"{JiraConfig.BASE_URL}/rest/api/3/project/search", headers={ "Accept": "application/json", "Content-Type": "application/json" }, auth=(JiraConfig.USER_EMAIL, JiraConfig.API_TOKEN) ) response.raise_for_status() data = response.json() projects = data.get('values', []) print("projects") print(projects) return projects except httpx.RequestError as e: print(f"Error fetching projects: {e}") raise

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/TusharShahi/mcp-jira'

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