Skip to main content

Palma AI SDK - Python client for MCP servers

Project description

Palma AI SDK

A Python client for interacting with MCP (Model Context Protocol) servers.

Installation

pip install palma-sdk

Usage

import asyncio
from palma_sdk import PalmaClient

async def main():
    client = PalmaClient(server_url="ws://localhost:3000")
    
    await client.connect()
    
    # List available tools
    tools = await client.list_tools()
    print(f"Available tools: {[tool.name for tool in tools]}")
    
    # Call a tool
    result = await client.call_tool("example-tool", {"input": "data"})
    print(f"Tool result: {result}")
    
    await client.disconnect()

if __name__ == "__main__":
    asyncio.run(main())

Features

  • Async/await support
  • Type hints throughout
  • Event-driven architecture
  • Tool calling
  • Resource management
  • Error handling

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

palma_sdk-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

palma_sdk-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file palma_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: palma_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for palma_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2691da48bf0b4b5595ca3ef333b240d6a5239760682813996c0feb8c2034991b
MD5 f67a975522d3996b56d09e41157c7b6c
BLAKE2b-256 abb603b1107133817d9297bbc3a959cb33c89d4ad6cb71ee499291cd80b8bd82

See more details on using hashes here.

File details

Details for the file palma_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: palma_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for palma_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96b366ed2d952f7bfc2ce7e9e8107c98dfe7f92f588ad89ba3da6a451dc78af1
MD5 eea40cda3ab97864f8fb0b9074c2cf3d
BLAKE2b-256 fe849e88911b9fd01469a7a23e471b9953675f1e94a941a6e8fcddbc50913bdb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page