PHPackages                             waaseyaa/mcp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. waaseyaa/mcp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

waaseyaa/mcp
============

Remote MCP server endpoint for Waaseyaa

v0.1.0-alpha.188(1mo ago)05.6k↓84.6%2GPL-2.0-or-laterPHPPHP &gt;=8.5

Since Mar 14Pushed 1w agoCompare

[ Source](https://github.com/waaseyaa/mcp)[ Packagist](https://packagist.org/packages/waaseyaa/mcp)[ RSS](/packages/waaseyaa-mcp/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (21)Versions (185)Used By (2)

waaseyaa/mcp
============

[](#waaseyaamcp)

**Layer 6 — Interfaces**

Model Context Protocol (MCP) endpoint for Waaseyaa applications.

Exposes Waaseyaa's `#[AsAgentTool]`-registered tools to external MCP clients (Claude Code, Cursor, Claude Desktop, custom AI agents) over Streamable HTTP at `/mcp`. Authenticates requests via `McpAuthInterface`, then dispatches JSON-RPC payloads against a per-request `AgentToolRegistryBridge` constructed with the auth-resolved `AccountInterface`. Per-tool capability gating runs at the `AbstractAgentTool::requireCapability` boundary against the account's permissions.

Quick reference
---------------

[](#quick-reference)

- **Endpoint:** `POST /mcp` (JSON-RPC; methods: `initialize`, `ping`, `tools/list`, `tools/call`).
- **Server card:** `GET /.well-known/mcp.json` (MCP discovery).
- **Authentication:** `Authorization: Bearer ` validated by `McpAuthInterface::authenticate()`. Default binding: `BearerTokenAuth(tokens: [])` (empty-token map). Production applications override by re-binding `McpAuthInterface` on the kernel-services bus or in an application provider.
- **Tool surface:** every class carrying `#[AsAgentTool]` and implementing `AgentToolInterface` becomes a callable MCP tool with no per-tool MCP code.

Bimaaji tool family
-------------------

[](#bimaaji-tool-family)

The first first-party tool family surfaced through this package is [Bimaaji](../bimaaji/), exposed via five `#[AsAgentTool]` adapters in `packages/ai-agent/src/Tool/Bimaaji/`:

Tool nameCapabilityPurpose`bimaaji_introspect_graph``bimaaji.read`Full application graph (six default sections + version).`bimaaji_introspect_section``bimaaji.read`Single section (admin, entities, jsonapi, public\_surface, routing, sovereignty).`bimaaji_propose_mutation``bimaaji.mutate`Validate a proposed schema mutation against the application graph.`bimaaji_generate_patch``bimaaji.mutate`Generate a `PatchSet` from a validated mutation. **Never writes to disk** — the calling MCP client persists.`bimaaji_search_specs``bimaaji.read`Substring search over `docs/specs/*.md`; returns `{file, section_title, line_number, snippet}` per match.**Capability model.** `bimaaji.read` is intended to be broadly granted to authenticated MCP clients; `bimaaji.mutate` is opt-in per role/account. The framework does not grant either by default — the integrating application's permission stack does.

**Example claude\_desktop\_config.json fragment** (replace ``with the bearer token your `McpAuthInterface` implementation expects):

```
{
  "mcpServers": {
    "waaseyaa": {
      "url": "https://your-host.example/mcp",
      "headers": {
        "Authorization": "Bearer "
      }
    }
  }
}
```

Key classes
-----------

[](#key-classes)

- `McpEndpoint` — JSON-RPC dispatcher; constructs the per-request bridge with the auth-resolved account.
- `McpServerCard` — server-card route controller (`/.well-known/mcp.json`).
- `McpRouteProvider` — registers both routes through the package's `McpServiceProvider`.
- `McpServiceProvider` — binds the `McpAuthInterface` default (`BearerTokenAuth(tokens: [])`); production overrides via re-binding.
- `Bridge\AgentToolRegistryBridge` — adapts `Waaseyaa\AI\Tools\ToolRegistryInterface` to the MCP `ToolRegistryInterface` + `ToolExecutorInterface` contracts; constructed per-request by `McpEndpoint::dispatch()`.

Canonical spec
--------------

[](#canonical-spec)

See `docs/specs/mcp-endpoint.md` for the authoritative architecture documentation including the per-request bridge architecture, the Bimaaji MCP bridge section (shipped tool inventory, capability model, M-G → M3 transition rationale), and the post-WP01..WP03 file reference.

Legacy surface
--------------

[](#legacy-surface)

The pre-M3 `McpController` + `Tools/*` + `Cache/` + `Rpc/*` files remain in-place from the original `entity`/`discovery`/`traversal`/ `editorial` tool-class architecture, still test-covered via direct instantiation in `tests/Integration/Phase14/AiMcpIntegrationTest.php`. They are no longer reachable from HTTP routing (the foundation `McpRouter` was retired in M3 WP01). A future cleanup mission may delete them.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

184

Last Release

35d ago

PHP version history (3 changes)v0.1.0-alpha.3PHP &gt;=8.3

v0.1.0-alpha.9PHP &gt;=8.4

v0.1.0-alpha.176PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/25d0ff572e93e3461e5180a920725d65691fd1e15e2d914b254dbbc2d6c393bd?d=identicon)[jonesrussell](/maintainers/jonesrussell)

---

Top Contributors

[![jonesrussell](https://avatars.githubusercontent.com/u/499552?v=4)](https://github.com/jonesrussell "jonesrussell (67 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (44 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waaseyaa-mcp/health.svg)

```
[![Health](https://phpackages.com/badges/waaseyaa-mcp/health.svg)](https://phpackages.com/packages/waaseyaa-mcp)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
