Skip to main content
Glama
README.md
# Agent Governance MCP

A small, read-only Model Context Protocol (MCP) server that exposes a set of
general multi-agent governance principles as a tool. It is a reference skeleton
for exploring explicit scope, least privilege, evidence, independent review,
and human approval. It does not connect to external services or store user data.

## Architecture

The server uses the official MCP TypeScript server package and the local `stdio`
transport. An MCP host starts the process and exchanges JSON-RPC messages over
standard input and output. The server registers one read-only tool,
`list_governance_principles`, which returns the principles defined in
`src/governance.ts`. Protocol output stays on standard output; diagnostics use
standard error.

```text
MCP host  <->  stdio transport  <->  MCP server  <->  governance principles
```

## Features

- Read-only `list_governance_principles` tool with optional text filtering.
- General governance rules in `docs/governance-model.md`.
- No network calls, credentials, filesystem access, or external writes.
- Unit tests for principle listing and filtering.

## Requirements

- Node.js 20 or newer
- npm

## Install and run

```sh
npm install
npm test
npm run typecheck
npm start
```

`npm start` runs the stdio server and waits for an MCP host to connect. The
process is intentionally quiet on standard output so it does not corrupt the
protocol stream.

## Project layout

```text
src/                    MCP server and governance rules
tests/                  Unit tests
docs/                   Governance design notes
```

## Security boundaries

This project is an educational starting point, not a production authorization
system. The exposed tool only returns static public principles. It performs no
authentication, does not accept credentials, and cannot trigger agent actions
or external side effects.

## License

MIT. See [LICENSE](LICENSE).

TDQS

B3.2/5.0

Scored across 1 tool

Disambiguation5/5

There is only one tool, so there is no possibility of confusion or misselection. Its name and description clearly bound what it does.

Naming Consistency4/5

The single name uses a readable verb_noun snake_case convention, but with only one tool there is no pattern to verify consistency against.

Tool Count2/5

A single tool is very thin for a server whose scope is 'Agent Governance'. One read-only listing call does not justify a dedicated server surface.

Completeness2/5

The surface is read-only and provides only a general list; there is no way to fetch a specific principle, create or update principles, or evaluate agent compliance. For a governance domain this leaves significant gaps.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues