Skip to main content
Glama
Kaiohz

Prospectio MCP API

profile.py864 B
from domain.entities.profile import Profile from domain.ports.profile_respository import ProfileRepositoryPort class ProfileUseCase: def __init__(self, repository: ProfileRepositoryPort): self.repository = repository async def upsert_profile( self, profile: Profile, ) -> dict: await self.repository.upsert_profile(profile) return {"result": "Profile upserted successfully"} async def get_profile(self) -> Profile: """ Retrieve the user profile from the database. Returns: Profile: The user profile entity. """ profile = await self.repository.get_profile() if not profile: raise ValueError( "Profile not found or incomplete. Please use upsert to create or update the profile." ) return profile

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/Kaiohz/prospectio-api-mcp'

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