Skip to main content

A lightweight agentic AI framework with MCP tool serving

Project description

Agentic AI MCP

Lightweight agentic AI with MCP tools.

Install

pip install agentic-ai-mcp

Setup

Set your Anthropic API key in .env file:

ANTHROPIC_API_KEY=sk-...

Usage

from agentic_ai_mcp import AgenticAI

# 1. Define functions
def add(a: int, b: int) -> int:
    """Add two numbers."""
    return a + b

def greet(name: str, times: int = 1) -> str:
    """Greet someone."""
    return ("Hello, " + name + "! ") * times

# 2. Create AgenticAI and register tools
ai = AgenticAI()
ai.register_tool(add)
ai.register_tool(greet)

# 3. Run MCP server
ai.run_mcp_server()

# 4. Execute agentic workflow
result = await ai.run("Calculate 2+3 and greet Tom the result times")
print(result)

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

agentic_ai_mcp-0.4.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

agentic_ai_mcp-0.4.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file agentic_ai_mcp-0.4.1.tar.gz.

File metadata

  • Download URL: agentic_ai_mcp-0.4.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentic_ai_mcp-0.4.1.tar.gz
Algorithm Hash digest
SHA256 46063c05490a8ceae0a3fb906bd2bf214e0d4ef6402ff9a3091d9b222c073d23
MD5 3e52ceaf7e7d5c6aec9fa587fa9ad444
BLAKE2b-256 5f5ec8feeb55d67014ba29d8c92f8572d2a968e8e6b7fc99688086b92f967956

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_ai_mcp-0.4.1.tar.gz:

Publisher: cd.yml on hasanjawad001/agentic-ai-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentic_ai_mcp-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: agentic_ai_mcp-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentic_ai_mcp-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29ed3b1929c736af3f08e293d61445957c741ae737a9fc1af66a529e15001aa1
MD5 8661eaf130ae9a0436a7f261a22d096c
BLAKE2b-256 7171868df2aeaf424a24cfba04478ec5eb9fbf847cf2453d3a11e7e03fe537ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_ai_mcp-0.4.1-py3-none-any.whl:

Publisher: cd.yml on hasanjawad001/agentic-ai-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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