1. Conduid
  2. Cloud
  3. Pharia Skill
MCP server · Cloud

Pharia Skill

Serverless AI powered by WebAssembly

39Low

Scored 6 months ago · breakdown

About Pharia Skill

Pharia Skill is an MCP server in the Cloud category: serverless AI powered by WebAssembly.

Install

From source
git clone https://github.com/Aleph-Alpha/pharia-skill

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Pharia Skill

Powered by Claude · Grounded in docs

I know everything about Pharia Skill. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

PhariaSkill

PhariaEngine is a serverless AI runtime that hosts AI code as isolated WebAssembly components called "Skills". With this SDK, you write Python functions (using simple decorators), compile them to WebAssembly, and push them to an OCI registry. The Engine then runs your code serverless-style, providing access to inference and tools hosted by MCP servers.

Documentation & Resources

Why WebAssembly?

  • Simpler deployment: No Dockerfiles, base images, or web servers
  • Faster cold starts: WebAssembly boots in milliseconds, not seconds
  • Reduced complexity: The runtime manages authentication, scaling, connection to MCP servers, etc.
  • Isolation of concerns: Skill code is focused on pure methodology
  • Observability: Because all interactions are mediated by the Engine, it can provide tracing and metrics.

The tradeoff is constraints - you can't install arbitrary (native) dependencies or make network calls directly. Everything goes through the interface offered by the Engine - the Cognitive System Interface (CSI).

Installation

uv add pharia-skill

In case you want to use changes in the SDK that have not been released yet, you can add the SDK as a git dependency:

uv add git+https://github.com/aleph-alpha/pharia-skill.git

Basic Example

from pydantic import BaseModel
from pharia_skill import skill, Csi, Message, ChatParams

class Input(BaseModel):
    topic: str

class Output(BaseModel):
    response: str

@skill
def generate_summary(csi: Csi, input: Input) -> Output:
    messages = [Message.user(f"Summarize this topic in 2 sentences: {input.topic}")]
    response = csi.chat("llama-3.1-8b-instruct", messages, ChatParams(max_tokens=100))
    return Output(response=response.message.content)

That's it. The Engine will inject the Csi interface and will deserialize the input from the HTTP request.

Streaming Agent

This example assumes that the Engine is configured with MCP servers that provide the search and fetch tools.

from pydantic import BaseModel
from pharia_skill import Csi, Message, MessageWriter, message_stream

class Input(BaseModel):
    messages: list[Message]

@message_stream
def web_search(csi: Csi, writer: MessageWriter[None], input: Input) -> None:
    model = "llama-3.3-70b-instruct"
    with csi.chat_stream(model, input.messages, tools=["search", "fetch"]) as response:
        writer.forward_response(response)

Development Workflow

Testing

If you have access to a PhariaEngine instance, you can test your Skill locally, as the CSI is also offered via HTTP via the DevCsi:

from pharia_skill import DevCsi
# Assuming you have a Skill called `my_skill` that takes an `Input` model
from my_skill import my_skill, Input

def test_my_skill():
    csi = DevCsi()
    test_input = Input(question="What is the capital of France?")
    result = my_skill(csi, test_input)
    assert result.answer == "Paris"

Building and Publishing

Once you are happy with your Skill, you can build it and publish it to an OCI registry.

# Build WebAssembly component
pharia-skill build my_skill.py

# Publish to an OCI registry
pharia-skill publish my-skill.wasm

Running

This SDK builds a WebAssembly component targeting the pharia:skill WIT world. That means a WebAssembly runtime offering this interface is required to run your Skill. The Engine is such a runtime. To deploy your Skill, add your Skill to the configuration file of your namespace. Then, you can invoke it via the HTTP API of the Engine. For example:

curl -X POST http://pharia-kernel.my-pharia-ai-cluster.com/v1/skills/{namespace}/my-skill/run \
     -H "Content-Type: application/json" \
     -d '{"question": "What is the capital of France?"}'

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Pharia Skill

How do I install Pharia Skill?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Pharia Skill safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Pharia Skill still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.